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!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

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

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...