Splunk Search

How can I return subsequent lines following an event?

dlespron
Path Finder

I am using Splunk to pull logs from one of my systems and I do this by searching for a particular timestamp that will then return the event. However, sometimes the information I need is not found in that particular event, but instead in the following lines of logs. How can I tell splunk to return the event as well as the following 20-30 lines or so? Please help!

Thanks!

Tags (1)
0 Karma
1 Solution

dlespron
Path Finder

never mind, I figured this out using the transaction command, sorry!

this worked, where 100 is the amount of lines requested.

transaction startswith=() maxevents=100

View solution in original post

0 Karma

dlespron
Path Finder

never mind, I figured this out using the transaction command, sorry!

this worked, where 100 is the amount of lines requested.

transaction startswith=() maxevents=100

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...