You are not logged in.
Pages: 1
Hi,
Sometimes my laptop freezes, and I have to shutdown with the power button. I would like to investigate the problem, but when I boot again the old /var/log/messages is replaced by the new one. Is there a way to keep old versions, just as it is for /var/log/boot.log?
Thanks.
edit: this is a harddisk install!
Offline
Previous messages file is saved as messages.0
Offline
You are right. But one level of backup is not enough, because /var/log/messages is flooded by those udev errors.
For example, today there remains only 19 lines of my previous session messages in messages.0 . The remaining 708 are from today (as well as all 700+ lines of /var/log/messages).
So I'd need either a means to keep more incremental backups, or a means to filter out udev errors before they reach the log. Or both!
Thanks in advance for any hint or solution.
Offline
sed -i 's/SYSLOGD_ROTATED_SIZE=.*/SYSLOGD_ROTATED_SIZE="4096 -b 50"/' /etc/rcS.conf
Offline
Thanks a lot! 50 might be too much though ;-)
Offline
Pages: 1
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.53 MiB (Peak: 1.77 MiB) ]