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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...