Getting Data In

Set Time Zone for IIS logs - 4.2.3

RaudeWoods
New Member

I have added TZ=GMT to the props.conf under [iis] and restarted splunk. The Server is CST.
From what I have read the new indexed data will reference the new time. How do you reference the existing index data to the new time. I am having to adjust searches with "latest=+360m" to get current results.

Tags (4)
0 Karma

Simeon
Splunk Employee
Splunk Employee

You cannot fix/change the already indexed data. However, you could use the eval command to manipulate the old _time value so it is offset. So add to the search for the old data:

| eval _time=_time-3600

The above would offset the time by -1 hour. You could programatically use if/case statements and the eval command to force a new time value for the older data.

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

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 ...