Splunk Search

How to search two events that occurred right before a specific event showing a certain error to analyze what happened?

chris1
Explorer

Hello,

When I search for some events (i.e index=main *password fail), I want to get the events with two lines before and after from source. In this way, it will help me to analyze why it happened. I know the way to go to > then Event action > show source option. But I want to get those details in my search result itself?

Tags (1)
0 Karma

martin_mueller
SplunkTrust
SplunkTrust
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...