Splunk Search

does snap-to mean snap forward or snap back?

alexl1
Path Finder

For example, if the time is 8:55 and I look for events -h@h, does that mean 7:00 (8:55-1=7:55, then to @h is 7) or 8:00? (8:55-1=7:55 but closest @h is 8:00)

thanks

0 Karma
1 Solution

jkat54
SplunkTrust
SplunkTrust

Hi,

-1h@h and -h@h are the exact same. They'll snap to the previous hour. Same logic applies for the rest of the possibilities such as -1d@d, etc.

To snap to the current hour, use @h instead.

Cheers,
JKat54

View solution in original post

jkat54
SplunkTrust
SplunkTrust

Hi,

-1h@h and -h@h are the exact same. They'll snap to the previous hour. Same logic applies for the rest of the possibilities such as -1d@d, etc.

To snap to the current hour, use @h instead.

Cheers,
JKat54

alexl1
Path Finder

thanks -----

0 Karma

jkat54
SplunkTrust
SplunkTrust

You're most welcome alexl1! Many thanks for accepting the answer!

0 Karma

alexl1
Path Finder

also not sure the difference between -h@h and -1h@h

thanks

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