Splunk Search

Time modifiers for Search and Time zones


Hi All,

The timezone in my splunk setup is IST (UTC + 5.30)

From the examples at

if the current time is Jul 4, 2013 8:11:56.000 PM

Then -1h@h = Jul 4, 2013 7:00:00.000 PM

But in my setup, when the current time is

Jul 4, 2013 8:11:56.000 PM

-1h@h returns Jul 4, 2013 6:30:00.000 PM

Taking into account the conversion of time between UTC and IST, is this behavior correct?

0 Karma

Splunk Employee
Splunk Employee

Well, the definition of the @h "snap-to" times is not specified whether it's snapped to UTC or to local time. But I would expect that it would snap to local time, to be consistent with @d and @m snap-to times.. I would open a case with Splunk support about this, as it's probably an oversight. What may be worse is that snap-to @d or @m may also snap to incorrect times, which would clearly be a bug.

Get Updates on the Splunk Community!

Splunk Lantern | Spotlight on Security: Adoption Motions, War Stories, and More

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

Splunk Cloud | Empowering Splunk Administrators with Admin Config Service (ACS)

Greetings, Splunk Cloud Admins and Splunk enthusiasts! The Admin Configuration Service (ACS) team is excited ...

Tech Talk | One Log to Rule Them All

One log to rule them all: how you can centralize your troubleshooting with Splunk logs We know how important ...