# Traefik 2.2 access log not showing up

**URL:** <https://community.traefik.io/t/traefik-2-2-access-log-not-showing-up/7072>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [July 25, 2020, 7:25am UTC](https://community.traefik.io/t/traefik-2-2-access-log-not-showing-up/7072 "2020-07-25T07:25:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rubbo898](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/rubbo898/32/2372_2.png) [@rubbo898](https://community.traefik.io/u/rubbo898)\
**Post date:** [July 25, 2020, 7:25am UTC](https://community.traefik.io/t/traefik-2-2-access-log-not-showing-up/7072/1 "2020-07-25T07:25:05Z")

</div>

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 😅

2nd point before describing my "issue", thanks for the amazing job you've done with Traefik ...it'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

Configurations:

- **Docker RUN command:**

```auto
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 'traefik.http.routers.traefik-rtr.tls.domains.main'='jimmyproject.tech' -l 'traefik.http.routers.traefik-rtr.tls.domains[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' 
6c8a82abfc0328275856eb3363abf2292ca31c185e939ead7b00aa7bf2bece69

```

- **Traefik static configuration (traefik.toml):**

```auto
[global]
  checkNewVersion = true
  sendAnonymousUsage = true

[serversTransport]
  insecureSkipVerify = false

[entryPoints]
  [entryPoints.http]
    address = ":80"
  [entryPoints.https]
    address = ":443"
    [entryPoints.https.forwardedHeaders]
      trustedIPs = [<CLOUDFLARE_PUBLIC_IPS>]

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

[api]
  insecure = false
  dashboard = true
  debug = true

[log]
  level = "INFO"

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

[certificatesResolvers]
  [certificatesResolvers.dns-cloudflare]
    [certificatesResolvers.dns-cloudflare.acme]
      email = "EXAMPLE@EXAMPLE.COM"
      storage = "/acme.json"
      [certificatesResolvers.dns-cloudflare.acme.dnsChallenge]
        provider = "cloudflare"
        delayBeforeCheck = 90
        resolvers = ["1.1.1.1:53", "1.0.0.1:53"]

[metrics]
  [metrics.influxDB]
    address = "EXAMPLE:8086"	
    protocol = "http"
    database = "EXAMPLE"
    username = "EXAMPLE"
    password = "EXAMPLE"

```

**Checks already performed:**

1. /log/traefik.log correctly mapped with congruent permissions:

```auto
-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:

 ![2020-07-25 08_40_02-Window](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/7/7836d2b648512ac74f0c8f3ebe266d8268daae05.png)

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!

Gianmarco
