Getting Data In

Log time differs from time on splunk host

suhprano
Path Finder

I'm running splunk in windows where the time is in PST.

I read logs in GMT time, so when I search for most recent, it yields 0 results because all my data is indexed in GMT time (technically in the future).

Example:
IIS log

2011-08-02 23:42:01 W3SVC1...

But current time on system is 4:42 PM PST.

So when I issue a search for the current time, it searches and returns for data at 4:442PM PST, not 4:42PM GMT.

Is there a work around for this?

Tags (1)
0 Karma

MartinHarper
Path Finder

This page explains how to set up Splunk’s props.conf to convert data sources from a specified time format: Specify Timezones of Timestamps

Example: to set all IIS sources to be imported from UTC, add:

[sourcetype::iis]
TZ = Etc/UTC

This assumes that your IIS logs have a sourcetype of "iis" - adjust appropriately for your system.

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...