Update logfile configurations.

This commit is contained in:
Darren 'Tadgy' Austin 2026-03-30 14:55:19 +00:00
commit 44b93b9422
17 changed files with 287 additions and 127 deletions

25
etc/logrotate.conf Normal file
View file

@ -0,0 +1,25 @@
# Rotate log files on a monthly basis.
monthly
# Name files based upon the year/month they are rotated.
dateext
dateformat -%Y-%m
dateyesterday
# Compress rotated logs.
compress
# Keep 5 years of old logs (just to be sure).
rotate 60
# Move rotated logs to this directory.
olddir /var/log/Archived
# After rotating, create new (empty) files with the same owner/perms.
create
# E-mail logs which are about to be deleted to this address.
mail sysadmin@slackware.uk
# Read log specific configurations.
include /etc/logrotate.d