You are not logged in.
Pages: 1
this may be a dumb question but can I delete some of my old logs in /var/log folder with the .# ending? If so is there a utility to automactically clean them up after a while?
Offline
Does the logrotate command help you? I believe its installed by default in arch and is run from /etc/cron.daily/ and is configured in /etc/logrotate.conf.
Dusty
Offline
ah..ok, In my config I have:
# Logs are moved into directory for rotation
# olddir /var/log/archive
I dont have and 'archive' directory. Should I uncomment this and create one or use the 'old' dir instead?
Offline
@ Penquin
I was searching the forums on this topic and was curious what you eventually setup in logrotate.conf.
/path/to/Truth
Offline
@ Penquin
I was searching the forums on this topic and was curious what you eventually setup in logrotate.conf.
Well logrotate was working for me I just didn't know anything about it at the time. I just saw 4 log files for each and thought it would continue.
I tried setting up the archive directory as I posted above but eventualy removed and went back to the default setup because it didn't matter.
Logrotate should work for everyone unless you are not running the system when the cronjob executes logrotate at midnight(?).
Offline
I dont have and 'archive' directory. Should I uncomment this and create one or use the 'old' dir instead?
Yes, you should. I've tunded on this option in my Arch, and it works fine. You have all yours previous logs and /var/log directory is clean. A compress option in /etc/logrotate.conf is also very useful.
Offline
Pages: 1