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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...