This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

log files

My /var/log filesystem is filling up (due to the large number of .gz files from previous days activity).  Simple question is can i safely delete them from the console? (ie rm *.gz whilst in /var/log).

Any help much appreciated as I'm fast running out of disk space.

Ta very much in advance.


This thread was automatically locked due to age.
Parents
  • Yes.  It should not hurt the system if you delete anything in /var/log.

    If you are having ongoing problems with this, i would consider backing the firewall up and reinstalling on a bigger hd.  or have the firewall send its logs to another system and have a cronjob remove the .gz files on a regular basis.

    dhh
  • Many thanks for your courteous reply.  I need to get busy deleting then.

    I shall also take on board your valued comments.  Much appreciated.
  • It's better to reboot if you delete all logs.

    This because some daemons will "loose" their files, if u do a rm -f * , and them could complain or fill up your console with logs      
    So you must reload all the daemons that are running, in order to make them restar their own
    log files.

    Much cleaner if you reboot, so all logs are recreated from the respective daemon.
  • I would think that you could 
    rm *.gz 
    without annoying any of the daemons.

    Barry
Reply Children