Splunk Search

searching for specific errors

jonathanjw
New Member

Possible Duplicate:
searching for specific errors

For starters this app is amazing. I am trying to search a ton of log files for a certain error and its definitely doing its job but i'd like it to grab the very next line after the specified error is found. Is it possible to do so? Thanks, Jonathan

Tags (1)
0 Karma

woodcock
Esteemed Legend

This will do it:

... | streamstats current=f last(_raw) AS prevEvent | <your search here> | fields _raw prevEvent
0 Karma

ftk
Motivator

Duplicate question

0 Karma
Get Updates on the Splunk Community!

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...

What’s New & Next in Splunk SOAR

 Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us for an ...