Search code examples
traefik

How to enable logrotation for traefik?


How do I enable log rotation for log files e.g. access.log.

Is this built in ?

Docs only say "This allows the logs to be rotated and processed by an external program, such as logrotate"


Solution

  • Log Rotation

    Traefik will close and reopen its log files, assuming they're configured, on receipt of a USR1 signal. This allows the logs to be rotated and processed by an external program, such as logrotate.

    https://docs.traefik.io/v1.6/configuration/logs/#log-rotation