How can I Clear all the logs? Print

  • 0

You can clear the logs by doing the following:

cat /dev/null > /var/log/messages
cat /dev/null > /var/log/openwebmail.log
cat /dev/null > /var/log/maillog
cat /dev/null > /var/log/secure
cat /dev/null > /var/log/httpd/error_log
cat /dev/null > /var/log/httpd/ssl_error_log
cat /dev/null > /var/log/httpd/ssl_request_log
cat /dev/null > /var/log/httpd/ssl_access_log
cat /dev/null > /var/log/httpd/access_log
cat /dev/null > /var/log/btmp
cat /dev/null > /var/log/cron
cat /dev/null > /var/log/lastlog
cat /dev/null > /var/log/mysqld.log
cat /dev/null > /var/log/yum.log
cat /dev/null > /var/log/proftpd/auth.log
cat /dev/null > /var/log/proftpd/tls.log
cat /dev/null > /var/log/proftpd/xfer.log
cat /dev/null > /var/log/boot.log
cat /dev/null > /var/log/bfd_log
cat /dev/null > /var/log/apf_log
cat /dev/null > /var/log/wtmp

You can also rotate the logs by going to: Server > Settings and setting the values for:

Keep Daily Transfer Logs: 
Keep Daily Error Logs:

Was this answer helpful?

« Back