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!

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!

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

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...