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!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...