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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...