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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

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