How to look at debug or verbose logs for influxdb when running in docker


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

influxb | [httpd] - - [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 ?

Hey Naveen,

Are your logs enabled in your config?

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 :

  format = "auto"
  level = "debug"
  suppress-logo = false

    dir = "/var/lib/influxdb/meta"

    dir = "/var/lib/influxdb/data"
    engine = "tsm1"
    wal-dir = "/var/lib/influxdb/wal"
  enabled = true
  bind-address = ":8083"

and this is the docker-compose i am using:

    container_name: influxb
    restart: on-failure
    image: influxdb:1.0
      - influxdb_data:/var/lib/influxdb
      - /tmp/influxdb.conf:/etc/influxdb/influxdb.conf
      - 8086:8086

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.