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!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...