Guest User!

You are not Sophos Staff.

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

LOGS

/var/log filling up completely, bringing system down.
Firewall getting hit hard, many access attemtps, access.log and store.log causing /var/log to fill up and shut the FW down, have to go in a delete the large logs.

Need a way to change this otherwise I can't use this in production, any ideas?


This thread was automatically locked due to age.
Parents
  • I used this script to delete log file that older than 30 days. It's works well.

    /etc/cron.d/clean-log

    10 0 * * *    root    /bin/find /var/log -name \*.gz -atime +30 -exec rm -f {} \; 2> /dev/null
    15 0 * * *    root    /bin/find /var/log -name \DAY.* -type d -ctime +30 -exec rm -rf {} \; 2> /dev/null
Reply
  • I used this script to delete log file that older than 30 days. It's works well.

    /etc/cron.d/clean-log

    10 0 * * *    root    /bin/find /var/log -name \*.gz -atime +30 -exec rm -f {} \; 2> /dev/null
    15 0 * * *    root    /bin/find /var/log -name \DAY.* -type d -ctime +30 -exec rm -rf {} \; 2> /dev/null
Children