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!

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...

Fun with Regular Expression - multiples of nine

Fun with Regular Expression - multiples of nineThis challenge was first posted on Slack #regex channel ...