Getting Data In

Search Results With Surrounding Text

charlestips
Explorer

Anyone know of a way to search for something and show results for that along with just a few lines around that result?

That way I can do a very specific search for something but also see the events right before and right after?

I am wanting this for searching Cisco firewall logs to see a specific deny but also see the immediate teardown after that deny.

Tags (2)

dwaddle
SplunkTrust
SplunkTrust

You can use the "show source" option to see the first event in context. You can only show the source of one event at a time though - it's not something where you can do a search for "all of these denies, then the line following them"

Alternately, you can possibly build a transaction that pulls the two events together. http://www.splunk.com/base/Documentation/latest/SearchReference/Transaction

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...