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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...