Splunk Search

Time modifiers for Search and Time zones

spiketide
Engager

Hi All,

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

From the examples at
http://docs.splunk.com/Documentation/Splunk/5.0.3/Search/Specifytimemodifiersinyoursearch

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

gkanapathy
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!

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

A Guide To Cloud Migration Success

As enterprises’ rapid expansion to the cloud continues, IT leaders are continuously looking for ways to focus ...

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...