Splunk Search

jump to first event

rstanonik
Engager

A search returned 7000 events within one second.
By default splunk shows me the most recent events and allows me to next backward in time.
I want to see the first events.
How can I jump to the first events?
Thanks.

Tags (1)
0 Karma

BobM
Builder

As far as I know, you can not tell splunk to start at the earliest time and work forward. The search sequence is hard coded but you can improve on the reverse command if you do not want later events.
The tail command will always show you the last x events in a list so this will show the last 3 (which equates to earliest as time is descending in our results.)

search | tail 3

This is marginally quicker as splunk just throws away earlier events rather than sort them.

0 Karma

AlessandroMagno
Engager

Hi,

can I insert a command faster than "search | reverse"?

I would known the date about the first event.

Thanks

0 Karma

BobM
Builder

if you add "| reverse" to the end of your search it will reverse the order and show you the oldest ones on the first page.

0 Karma
Get Updates on the Splunk Community!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...