Traefik 2.2 access log not showing up

Hello everyone!

First of all I'm a casual-domestic-noob kind of user, please be patient if (I will 100%) I'll write stupid things and question :sweat_smile:

2nd point before describing my "issue", thanks for the amazing job you've done with Traefik's awsome and a perfect proxy solution also for people like me who can't handle complex environment configurations.

Now to the point, starting from the end of it: I'm struggling trying to setup access logs!

Here my environment:

  • OS: Unraid 6.8.3
  • Docker version: 19.03.5
  • Traefik version: 2.2.7


  • Docker RUN command:
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='traefik' --net='EXAMPLE' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'CF_API_EMAIL'='EXAMPLE' -e 'CF_API_KEY'='EXAMPLE' -l 'traefik.http.routers.http-catchall.entrypoints'='http' -l 'traefik.enable'='true' -l 'traefik.http.routers.http-catchall.rule'='HostRegexp(`{host:.+}`)' -l 'traefik.http.routers.http-catchall.middlewares'='redirect-to-https' -l 'traefik.http.middlewares.redirect-to-https.redirectscheme.scheme'='https' -l 'traefik.http.routers.traefik-rtr.entrypoints'='https' -l 'traefik.http.routers.traefik-rtr.rule'='Host(`traefik.EXAMPLE.COM`)' -l 'traefik.http.routers.traefik-rtr.tls'='true' -l ''='' -l '[0].sans'='*EXAMPLE.COM' -l 'traefik.http.routers.traefik-rtr.service'='api@internal' -l 'traefik.http.routers.traefik-rtr.middlewares'='chain-oauth@file' -p 'xxx:80/tcp' -p 'xxx:443/tcp' -p 'xxxx:8080/tcp' -v '/mnt/user/appdata/traefik/rules':'/rules':'rw' -v '/mnt/user/appdata/traefik/acme/acme.json':'/acme.json':'rw' -v '/mnt/user/shared/':'/shared':'rw' -v '/mnt/user/appdata/traefik/log/traefik.log':'/log/traefik.log ':'rw' -v '/mnt/user/appdata/traefik/':'/etc/traefik':'rw' -v '/var/run/docker.sock':'/var/run/docker.sock':'ro' 'traefik:chevrotin' 
  • Traefik static configuration (traefik.toml):
  checkNewVersion = true
  sendAnonymousUsage = true

  insecureSkipVerify = false

    address = ":80"
    address = ":443"
      trustedIPs = [<CLOUDFLARE_PUBLIC_IPS>]

  providersThrottleDuration = 42
    endpoint = "unix:///var/run/docker.sock"
    defaultRule = "Host(`{{ .Name }}.EXAMPLE.COM`)"
    exposedByDefault = false
    swarmMode = false
    network = "EXAMPLE"
    directory = "/rules"
    watch = true

  insecure = false
  dashboard = true
  debug = true

  level = "INFO"

  filePath = "/log/traefik.log"
  format = "json"
  #bufferingSize = 100
    #statusCodes = ["400-499", "500-599"]
    #retryAttempts = true
    #minDuration = "10ms"

      email = "EXAMPLE@EXAMPLE.COM"
      storage = "/acme.json"
        provider = "cloudflare"
        delayBeforeCheck = 90
        resolvers = ["", ""]

    address = "EXAMPLE:8086"	
    protocol = "http"
    database = "EXAMPLE"
    username = "EXAMPLE"
    password = "EXAMPLE"

Checks already performed:

  1. /log/traefik.log correctly mapped with congruent permissions:
-rw-rw-rw- 1 root root  0 Jul 18 00:23 traefik.log

  1. Tried different configurations eg adding parameters (see static configuration), default configuration to stdout and so on.

  2. From Traefik Dashboard, the "Features" section shows the access log correctly enabled:

  1. Logs show no errorr or anything else related to access log feature

My real questions are: it's normal that access logs are not written at all? What should I expect in term of occurences and content? Did i miss any configuration or there is some issue on my setup?

Thanks in advance for your support!