Reporting

Scheduling search - how to snap to current hour for now?

the_wolverine
Champion

I'm scheduling a search that spans -1h@h and ends -@h, however the UI doesn't like my syntax:

Cannot parse time argument 'dispatch.latest_time': '-@h'

0 Karma
1 Solution

DaveO35
Explorer

This would give you the previous hour snapped back to current hour (ie. if current time is 10:15, this would be 9:00 - 10:00):
earliest=-1h@h latest=@h

This would give you the previous hour from now (if current time is 10:15, 9:15 to 10:15):
earliest=-1h latest=now

View solution in original post

DaveO35
Explorer

This would give you the previous hour snapped back to current hour (ie. if current time is 10:15, this would be 9:00 - 10:00):
earliest=-1h@h latest=@h

This would give you the previous hour from now (if current time is 10:15, 9:15 to 10:15):
earliest=-1h latest=now

alacercogitatus
SplunkTrust
SplunkTrust

The argument for latest_time should work by using -h without the @.

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