Splunk Search

Opposite of "head" ?

the_wolverine
Champion

I'm trying to find out what the oldest occurrence of an event was - as in, opposite of head. Is there such a command?

I've tried using " * | reverse | head 1 " which works but is very slow and inefficient.

Tags (1)
1 Solution

the_wolverine
Champion

w00t!!!!!!!!!!!

0 Karma

Genti
Splunk Employee
Splunk Employee

awesome awesome awesome!!!

0 Karma

araitz
Splunk Employee
Splunk Employee

tail fail tail fail

0 Karma

fk319
Builder

Genti
Splunk Employee
Splunk Employee

| sort _time, that is, no - sign...

0 Karma

Genti
Splunk Employee
Splunk Employee

i tried that, and then i tried * | sort -_time and this seems to be faster. I am unaware of a command that is the opposite of head...

0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...