Notifications
Clear all
Maintenance
1
Posts
1
Users
0
Reactions
14
Views
Topic starter
Logs
Identify Log Files
cd /var/log
Empty Logs
sudo sh -c 'echo > /var/log/syslog'
Logrotate
Install Tool
sudo apt-get install logrotate
Create Init.D File
sudo nano /etc/logrotate.d/my_logs.conf
Paste
/var/log/syslog /var/log/auth.log { su root root daily rotate 7 compress delaycompress missingok notifempty create 640 root adm }
Verify
sudo logrotate --debug /etc/logrotate.d/my_logs.conf
Posted : 14/11/2024 11:39 am