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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...