Splunk Search

Dockerized Splunk Time Zone Forced to UTC

raidercom
Communicator

I'm having an issue with dockerized splunk post 8.1.3 free. The timezone in the web interface remains as UTC. With 8.1.3, I could get around the timezone issue by running:
docker exec -ti splunk sudo microdnf -y --nodocs update tzdata on startup of the container
Post 8.1.3, the time within the container remains as UTC, even with tzdata installed. Is this expected behaviour?


Sample from the docker compose that brings up splunk:
Docker compose:
splunk:
container_name: splunk
image: splunk/splunk:latest
#image: splunk/splunk:8.1.3
environment:
- TZ=America/Toronto
#- TZ=Canada/Eastern

With 8.1.3
Pulling splunk (splunk/splunk:8.1.3)...
8.1.3: Pulling from splunk/splunk
Digest: sha256:fd7dfb17323ee093ca36b71befa71e5074f8a6dc592475407927a0d443022a03
Status: Downloaded newer image for splunk/splunk:8.1.3

date
Wed Jun 2 17:19:41 EDT 2021


With Latest:
latest: Pulling from splunk/splunk

date
Wed Jun 2 21:36:34 America 2021

Does anyone have any suggestions of things I could try?
Thanks
-Jeff

1 Solution

raidercom
Communicator

Figured out the issue.

Was able to fix it with:

docker exec -ti splunk sudo microdnf -y --nodocs reinstall tzdata

rather than the original:

docker exec -ti splunk sudo microdnf -y --nodocs update tzdata

 

Not sure why the docker image acts differently, especially since the Linux version used is the same between 8.1.3 and >8.1.3

View solution in original post

0 Karma

raidercom
Communicator

Figured out the issue.

Was able to fix it with:

docker exec -ti splunk sudo microdnf -y --nodocs reinstall tzdata

rather than the original:

docker exec -ti splunk sudo microdnf -y --nodocs update tzdata

 

Not sure why the docker image acts differently, especially since the Linux version used is the same between 8.1.3 and >8.1.3

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...