Splunk Search

Pick latest event

aleem
SplunkTrust
SplunkTrust

Hi,
I want only return the latest event

The following seems to work so far. It is correct? No entirely sure what the sort criteria for Top is

Top limit=1 Color,TimeStamp,Bank,DX | table Color

Be the best version of you
Tags (1)
0 Karma
1 Solution

Stephen_Sorkin
Splunk Employee
Splunk Employee

No. The "top" command is used to find the most frequent value of the field specified, here you specify 4 fields, so we return the most common combination of these four fields.

You are looking for the "head" command: ... | head 1 | ...

View solution in original post

0 Karma

Stephen_Sorkin
Splunk Employee
Splunk Employee

No. The "top" command is used to find the most frequent value of the field specified, here you specify 4 fields, so we return the most common combination of these four fields.

You are looking for the "head" command: ... | head 1 | ...

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 ...