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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...