Traefik access.log is growing and not log rotating. #1512

Closed
opened 2026-04-05 19:32:15 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @LeonvanHeerden on 5/8/2025

While going through all the folders in my running installation, I found that the config/traefik/logs/access.log was already over 2 gig and has never been log-rotated.

  • Restarting didn't make a difference.
  • I renamed the log, but since the file was still open with Traefik, it kept writing to the renamed file.
  • Then restarting, allowed a new file to be created.
  • The Pangolin logs in config/logs/ are rotating as expected.

I checked inside the running containers', /etc/logrotate* configs for Traefik and Pangolin and neither has any configs that refers to logs. So am not sure how the rotate is currently working.

What is the correct way to address this to properly create daily logs?

*Originally created by @LeonvanHeerden on 5/8/2025* While going through all the folders in my running installation, I found that the `config/traefik/logs/access.log` was already over 2 gig and has never been log-rotated. * Restarting didn't make a difference. * I renamed the log, but since the file was still open with Traefik, it kept writing to the renamed file. * Then restarting, allowed a new file to be created. * The Pangolin logs in `config/logs/` are rotating as expected. I checked inside the running containers', `/etc/logrotate*` configs for Traefik and Pangolin and neither has any configs that refers to logs. So am not sure how the rotate is currently working. What is the correct way to address this to properly create daily logs?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/pangolin#1512