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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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