Splunk Search

search by linecount last 1 million lines.

levent_kurt
Explorer

how can i search only last 1 million lines of 4 million lined total log file?

Tags (1)
0 Karma
1 Solution

Ayn
Legend

Assuming each line in the log file is treated as one event in Splunk:

source="yoursource" | head 1000000

View solution in original post

0 Karma

Ayn
Legend

Assuming each line in the log file is treated as one event in Splunk:

source="yoursource" | head 1000000
0 Karma
Get Updates on the Splunk Community!

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...

[Live Demo] Watch SOC transformation in action with the reimagined Splunk Enterprise ...

Overwhelmed SOC? Splunk ES Has Your Back Tool sprawl, alert fatigue, and endless context switching are making ...

What’s New & Next in Splunk SOAR

Security teams today are dealing with more alerts, more tools, and more pressure than ever.  Join us on ...