Splunk Search

To get the greatest value for each day and graph it for a week

dinumayu
Observer

Hi,

Can you please assist with the query to get the greatest value (for one field) on that day and graph the data for the week 

I am currently using the below one and it gives me only the greatest value for the week in the graph

index="index_name" | search STATS_NAME=BIRTHDAY | chart values(STATS_COUNT) by _time  

Labels (1)
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Assuming that you want the highest value of STATS_COUNT for each day

index="index_name" | search STATS_NAME=BIRTHDAY
| bin span=1d _time
| chart max(STATS_COUNT) by _time  
0 Karma
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...