Hi All - I am new to Graylog and was looking for an option for log monitoring where I am unable to use Splunk. So far I really like it but I am having issues with timezone setup. I am deploying via Docker, everything is working fine, I can create a new user and set their timezone properly and it shows up on the search timeline correctly however the logs are still using a different timezone. Here is my docker-compose.yml file, I am in USA Central timezone but everything continues to show UTC.
version: β2β
services:
MongoDB:
mongodb:
image: mongo:4.2
networks:
- graylog
#DB in share for persistence
volumes:
- /mongo_data:/data/db
environment:
- TZ=America/Chicago
Elasticsearch:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2
#data folder in share for persistence
volumes:
- /es_data:/usr/share/elasticsearch/data
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- βES_JAVA_OPTS=-Xms512m -Xmx512mβ
- TZ=America/Chicago
ulimits:
memlock:
soft: -1
hard: -1
mem_limit: 1g
networks:
- graylog
Graylog:
graylog:
image: graylog/graylog:4.2
#journal and config directories in local NFS share for persistence
volumes:
- /graylog_journal:/usr/share/graylog/data/journal
environment:
# CHANGE ME (must be at least 16 characters)!
- GRAYLOG_PASSWORD_SECRET=xxxx
# Password: admin
- GRAYLOG_ROOT_PASSWORD_SHA2=xxxx
- GRAYLOG_HTTP_EXTERNAL_URI=http://192.168.1.12:9000/
- root_timezone=America/Chicago
- TZ=America/Chicago
- GRAYLOG_TIMEZONE=America/Chicago
entrypoint: /usr/bin/tini β wait-for-it elasticsearch:9200 β /docker-entrypoint.sh
networks:
- graylog
links:
- mongodb:mongo
- elasticsearch
restart: always
depends_on:
- mongodb
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
Any ideas? I thought adding the environment variables would work but so far no luck. The containers all have their timezones set properly and the devices feeding into the system have their timezones set correctly as well.
Thanks for any help!