Splunk Search

How to get events after error occured.

Mondaya13
Explorer

Hello everyone, I am trying to get the queue or event counts with status=“spooling” that happened after the very first error(status=“*error*”) occurred. How could I do this? Thank you in advance. 


this is for our company’s printer server. 

Labels (4)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Please share some anonymised but representative events that you are dealing with, preferably in a code block to preserve any formatting data.

0 Karma

Mondaya13
Explorer

So I have events with:

sourcetype=winprintmon host=bartender2020
type=PrintJob
printer="*"(gets all printer) ex: zebra1065
could have status of "printing"/"printing,error"/"spooling"


so what I wanted to do is if a printer has error(status="printing,error") at 6am, get the events of that printer that has status="spooling"(which is the queue) that occurred after 6am and count them. 

Desired result format:

printer name      |          Counts of spooling(queue)         |

Hope this explains better, been dealing with this for days 
Thank you so much in advance! 

0 Karma
Get Updates on the Splunk Community!

Strengthen Your Future: A Look Back at Splunk 10 Innovations and .conf25 Highlights!

The Big One: Splunk 10 is Here!  The moment many of you have been waiting for has arrived! We are thrilled to ...

Now Offering the AI Assistant Usage Dashboard in Cloud Monitoring Console

Today, we’re excited to announce the release of a brand new AI assistant usage dashboard in Cloud Monitoring ...

Stay Connected: Your Guide to October Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...