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!

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

Index This | When is October more than just the tenth month?

October 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...