thorsten
(Thorsten)
September 19, 2018, 1:15pm
1
Again I am not shure if this is a bug:
I collect more and more lets encrypt logfiles, one per day. Currently I am no No 107 (form the date I started to use lets encrypt certificates). Is there (no) log rotate / package routine for lets encrypt? If so, how should it work?
TIA
Thorsten
mrmarkuz
(Markus Neuberger)
September 19, 2018, 10:27pm
2
By default logs are rotated weekly and kept for 4 weeks.
http://docs.nethserver.org/projects/nethserver-devel/en/v7/nethserver-base.html#log-retention-and-rotation
Do you really have a new /var/log/letsencrypt/letsencrypt.log
every day? Are there errors in the logfile?
danb35
(Dan)
September 19, 2018, 10:47pm
3
Well, certbot renew
should run every day (though in my case it seems to be running a few times a day), and yes, a log file is created every time it runs. I’m up to 368 of them.
mrmarkuz
(Markus Neuberger)
September 20, 2018, 12:32am
4
You are right, there are a lot of logfiles:
By default certbot will begin rotating logs once there are 1000 logs in the log directory.
https://certbot.eff.org/docs/using.html#log-rotation
1 Like
danb35
(Dan)
September 20, 2018, 12:45am
5
That seems like a pretty high log limit, but it’s not like they’re taking a lot of space (my 368 logs consume 2.4 MB).
thorsten
(Thorsten)
September 23, 2018, 2:14pm
6
Yes, disk space is not a problem - I found it somehow confusing and 1000 files on the Nethserver Logfile view is not really nice, err?
giacomo
(Giacomo Sanchietti)
September 24, 2018, 12:36pm
7
We could change NS script to set a different default for --max-log-backups
option, but then we need to add a new logrotate configuration.
IMHO, I would not change anything if there is no real problem on disk space occupation.
1 Like