Splunk Search

timechart span starting at specified point

vaijpc
Communicator

I want to run a timechart 'overnight'... e.g. getting the minimum values of a field between midday and midday... 12-12

If I wanted minimum values between midnight and midnight, 0-24, it would be easy, just timechart foo span=1day. I don't know how to offset it by the 12 hours required though.

I guess I 'could' use span=12h and then manually look at the minimums of the 12-24,0-12 but that means then grouping those and taking the minimum... possibly manually...?

<>

Tags (1)
0 Karma

woodcock
Esteemed Legend

Run it at midnight for the last 36 hours and do this:

...  earliest = -36h@h latest -12h@h | timechart span=1h min(foo)
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...