I’ve setup graylog (community) with docker compose and having some issues with the in vs out message ratio.
My average in is 149 and out is 1, and have noticed that the internal log messages counter is increasing rapidly. I’ve had to set the ‘Subsystem: Graylog’ logging to ‘Fatal’ or the server will run out of storage space…
How can I read these log messages?
The FAQ suggests checking “/var/log/graylog-server/server.log” or “/var/log/graylog//current”, but the paths don’t exist in the graylog docker container.
Not sure if you need the docker compose yml-file, but here it is:
version: '3'
services:
# MongoDB: https://hub.docker.com/_/mongo/
mongo:
image: mongo:3
networks:
- graylog
# Elasticsearch: https://www.elastic.co/guide/en/elasticsearch/reference/6.x/docker.html
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.5
environment:
- http.host=0.0.0.0
- transport.host=localhost
- network.host=0.0.0.0
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
ulimits:
memlock:
soft: -1
hard: -1
deploy:
resources:
limits:
memory: 1g
networks:
- graylog
# Graylog: https://hub.docker.com/r/graylog/graylog/
graylog:
image: graylog/graylog:3.3.2
environment:
- GRAYLOG_PASSWORD_SECRET=<redacted>
- GRAYLOG_ROOT_PASSWORD_SHA2=<redacted>
- GRAYLOG_HTTP_EXTERNAL_URI=http://<redacted>:9000/
- root_timezone = <redacted>
networks:
- graylog
depends_on:
- mongo
- elasticsearch
ports:
# Graylog web interface and REST API
- 9000:9000
# Syslog TCP
- 1514:1514
# Syslog UDP
- 1514:1514/udp
# GELF TCP
- 12201:12201
# GELF UDP
- 12201:12201/udp
networks:
graylog:
driver: bridge
sudo docker-compose -f graylog.config.yml up -d