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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...