Getting Data In

Splunk displaying events with the correct timezone

Ant1D
Motivator

Hi,

I have some data in an index where the events all begin with a UTC timestamp. My Splunk indexer server is in the UK and I would like the timestamps for these events to be interpreted as being in the Splunk indexer timezone (UK) instead of the UTC.

How can I do this?

At present, if a new event arrives at 11AM UK time, the timestamp will say 10AM which is the UTC time so it means that any searches that I do over the last 60 minutes or less will return no results which should not be the case.

Thanks in advance for your help.

1 Solution

Ant1D
Motivator

The solution is to make the following addition to your props.conf file:

[the_sourcetype_name]
TZ = the_timezone_that_your_timestamps_are_in

For this question, you would need to add TZ = UTC

View solution in original post

0 Karma

Ant1D
Motivator

The solution is to make the following addition to your props.conf file:

[the_sourcetype_name]
TZ = the_timezone_that_your_timestamps_are_in

For this question, you would need to add TZ = UTC

0 Karma

whitewool
Splunk Employee
Splunk Employee
0 Karma

Ant1D
Motivator

thanks for the link

0 Karma

Ant1D
Motivator

I tried using the TZ = value attribute before and it didn't work. I guess I can try this again

0 Karma

MuS
Legend

Hi Ant1D

have you check the docs on how to set different timezones?

cheers,

MuS

0 Karma

Ant1D
Motivator

thanks for the link

0 Karma

Ant1D
Motivator

Looks to be working now

0 Karma

Ant1D
Motivator

I tried using the TZ = value attribute before and it didn't work. I guess I can try this again

0 Karma
Get Updates on the Splunk Community!

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

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

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