Koozali.org: home of the SME Server

Help Deleting Logs

Black

Help Deleting Logs
« on: July 21, 2005, 05:54:39 PM »
Hello all a few days ago I posted an issue with Logrotate locking up and running to long and the only advice was to follow the man page and figure it out..

my crontab has Logrotate running daily and everytime it runs it runs FOREVER and has my CPU time past 90%.

I want to Manual delete log files in /var/log but dont know which ones I can safely delete and would appreciate some help.


Thanks

Offline Appesteijn

  • ***
  • 62
  • +0/-0
Help Deleting Logs
« Reply #1 on: July 25, 2005, 08:13:37 AM »
You can delete all the files in /var/log/ But be careful to create new 'empty' files with the same filename and permissions. (like owner eg.)

I once did a rm -rf * in /var/log and it took me hours to get rid of all the error messages from processes who couldn't find their logfile....
............

Black

Help Deleting Logs
« Reply #2 on: July 26, 2005, 09:04:08 PM »
Yea I managed to figure it out, Thanks