Hello,
I’ve been running influxdb in docker and when i want to debug issues with data ingestion, the docker logs with minimal information are barely helpful for me
EX:
influxb | [httpd] 172.21.0.1 - - [31/May/2019:18:46:36 +0000] "POST /write?db=test&precision=ms&rp=autogen HTTP/1.1" 204 0 "-" "Ruby" 6b450f3d-83d4-11e9-8065-0242ac150002 2712
Is there any way i can view more verbose logs like what data it is saving and i remember reading that if influxdb fails to execute something it fails silently without throwing errors. How can i see the errors if there are any ?
Aren’t the logs enabled by default ? I haven’t set any env variables in my docker file to enable it specifically
This is the config file in my container :
[logging]
format = "auto"
level = "debug"
suppress-logo = false
[meta]
dir = "/var/lib/influxdb/meta"
[data]
dir = "/var/lib/influxdb/data"
engine = "tsm1"
wal-dir = "/var/lib/influxdb/wal"
[admin]
enabled = true
bind-address = ":8083"
and this is the docker-compose i am using:
influxdb:
container_name: influxb
restart: on-failure
image: influxdb:1.0
volumes:
- influxdb_data:/var/lib/influxdb
- /tmp/influxdb.conf:/etc/influxdb/influxdb.conf
ports:
- 8086:8086
environment:
- INFLUXDB_HTTP_LOG_ENABLED=true
I see you are working on this issue on another thread. Trying to run influxdb in debug mode using docker. I’m going to go ahead and close this one.