Splunk Search

How can I search the 10 highest values per day?

HeinzWaescher
Motivator

Hi,

I would like to find out the 10 highest values per day.

... | bucket span=1d 
| stats sum(xyz) AS values BY _time, user

I expected the | head command to work here, but this does not accept by _time.

BR Heinz

Tags (3)
0 Karma
1 Solution

pradeepkumarg
Influencer

This should work


... | bucket span=1d
| stats sum(xyz) AS values BY _time, user | sort -_time -values | dedup 10 _time

View solution in original post

pradeepkumarg
Influencer

This should work


... | bucket span=1d
| stats sum(xyz) AS values BY _time, user | sort -_time -values | dedup 10 _time

HeinzWaescher
Motivator

This works fine, thanks a lot!

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