Enhancement #515

Orfeo: increase log retention

Added by Pierre-Louis Bonicoli over 5 years ago. Updated over 2 years ago.

In Progress
System :: Base
Start date:
Due date:
% Done:


Estimated time:
Patch Available:
Help Needed:


Filesystem               Size  Used Avail Use% Mounted on
/dev/sdb7                2.7G  2.2G  588M  79% /var/log
The current log retention delays are:
  • 7 days
    • /var/log/syslog 223 Mo
  • 14 days
    • /var/log/apache2 11 Mo
  • 4 weeks
    • /var/log/mail.* 1.5 Go
    • /var/log/auth.log* 58 Mo
    • /var/log/user.log* 248 Ko
    • /var/log/daemon.log* 23 Mo
    • /var/log/fail2ban 5 Mo
  • 7 months
    • /var/log/vmail_clamdscan.log* 28 Ko
  • 1 year
    • /var/log/roundcube/ 1.6 Mo
  • Not using logrotate:
    • /var/log/named 204Mo
  • either rotate /var/log/mail.log everyday or compress /var/log/mail.log.1 (it would use ~120 Mo instead of 800 Mo)
  • /var/log/apache2: increase log retention to 2 months
  • compress /var/log/syslog.log.1

Associated revisions

Revision 26af9b47 (diff)
Added by Marc Dequènes over 2 years ago

dc-web: add logrotate for apache2

Also change retention, refs #515.



Updated by Marc Dequènes over 5 years ago

Ok to increase Apache logs. It's not very costly for this host and if it helps debugging, it's fine.

All '.1' files could be compressed, on all hosts in fact.

Bind log is custom, but the directory was in the package IIRC, so that's strange there's no rules. Anyway we should add them.

We should probably investigate what we can do we journald, because it would maybe be easier to handle per-service retention.


Updated by Marc Dequènes about 5 years ago

  • Category set to System :: Base

Updated by Marc Dequènes over 2 years ago

  • Status changed from New to In Progress
  • Assignee set to Marc Dequènes
  • % Done changed from 0 to 90

I finally got to change the Apache retention. I did it for all hosts. To avoid having a host of files and since the size is reasonable, I switched to a weekly rotation. We would need to cleanup the old files now out of rotation at some point, thus keeping this ticket opened.

In the past I also removed generation in rsyslog since it does not bring anything interesting and mail.log is sufficient.

Currently logs are taking way less space:
  • syslog.1: 3.6MB on Orfeo, 6.1MB on Toushirou
  • mail.log.1: 22MB on Orfeo, 26MB on Toushirou
    So I guess there is no need for further actions at the moment.

Also available in: Atom PDF