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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...