Skip to main content
844-777-0017/Contact Us
FreePBX

FreePBX Log file cleanup

\rm -R /var/log/asterisk/fail2ban*
\rm -R /var/log/asterisk/full*
\rm -R /var/log/a2billing/a2billing_epayment.log
\rm -R /var/log/a2billing/test.log
\rm -R /var/log/httpd/ssl_error_log
\rm -R /var/log/httpd/ssl_access_log
\rm -R /var/log/httpd/ssl_request_log
\rm -R /var/log/httpd/error_log
\rm -R /var/log/httpd/access_log
cat /dev/null > /var/log/messages
cat /dev/null > /var/log/maillog
cat /dev/null >/var/spool/mail/deidt
cat /dev/null >/var/spool/mail/asterisk
> /var/log/btmp
> /var/log/secure
> /var/log/fail2ban.log
> /var/www/error.log
> /var/www/requests.log

\rm -R /var/spool/asterisk/monitor/2017


du -ks /var/* | sort -nr | head

> test.log


df -h

Comments(0)

Copyright © 2018 Secure-Server.ca