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!

Introducing Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...