Letsencrypt.log overwritten it instead of appended with every command

certbot 0.19

It looks like every certbot command overwrites letsencrypt.log instead of appending output to it.

I think it should append new content. A bug?

@schoen @bmw - Do you know whether this is a Certbot bug or is there a configuration parameter that needs to be used for log rotation?

Do you have any hooks deployed that may cause this behaviour?

Are there other log files in Certbot’s log directory (which is /var/log/letsencrypt by default)?

By default, Certbot rotates its logs keeping one log for each run (up to 1000 logs) where letsencrypt.log is the log from the most recent run and other log files have a number appended to the end of the file name. This behavior is described at https://certbot.eff.org/docs/using.html#log-rotation and can be disabled/modified through the command line flag --max-log-backups.


ah ok, every certbot run produces a different log. OK

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.