cpan-testers / cpantesters-project

A meta-project for tracking CPAN Testers project goals
6 stars 1 forks source link

Logrotate all the things #2

Closed preaction closed 8 years ago

preaction commented 8 years ago

There are quite a few logs that are not being rotated properly. For those that are, they are likely being done manually, instead of using a log rotation system like logrotate.

We need a logrotate conf, and we will run logrotate in cron nightly. Logs should rotate daily, should be zipped after 3 days, and should be maintained for at least 2 weeks.

This configuration should be kept in a git repository.

preaction commented 8 years ago

We can track the files to rotate here:

/opt/projects/cpantesters/release/logs/release.log

The logrotate.conf file is located in the deploy repo: https://github.com/cpan-testers/cpantesters-deploy

preaction commented 8 years ago

This has been started as cpantesters-deploy@84b2251d77ef4f50576a3fae73ff1e67e63145e4. Besides that file, I've also added rotation for the regular cron jobs (cpantesters-deploy@4fc0fd1f9e35e2e448a20eccc78bd4773a100505). Any other logs we'll get to as we get to now that we have a base to start from.