Page 1 of 1
Disk Full Digitalocean vestacp var/log/httpd
Posted: Sat Sep 24, 2016 2:39 pm
by zxcbew321
I use a backup domain admin level auto-Saturday.
But there are some built-in web domain, but only 100mb log (keep 90 days) 3-4Gb any size (she asked, adding that Web traffic only. Over a thousand people per day, making it a very big log).
We can not have the backup of a log vestacp it.
Thank you
Re: Disk Full Digitalocean vestacp var/log/httpd
Posted: Mon Sep 26, 2016 6:57 am
by tjebbeke
If your logs are to big you can change your log rotation settings.
Re: Disk Full Digitalocean vestacp var/log/httpd
Posted: Mon Sep 26, 2016 7:28 am
by mehargags
Big logs are an alarm, and you should focus on the CAUSE rather than rotating/deleting logs.
You also may have Verbose logging on your sites/apache/nginx so the logs are more detailed. Once one of my client updated his CakePHP based web app with "
Debug mode on" which you usually do in Development mode. The log grew @ 10mb per second and filled the entire server drive in 10-12 hours.
Investigate your logs
# This will list logs greater than 20MB
Code: Select all
find /var/log -type f -size +20M -exec ls -lh {} \; | awk '{ print $NF ": " $5 }'
Then
tail -f the
biggest log to find what the logs are saying to identify the issue
# Delete logs older than 180 days
Code: Select all
find /var/log/ -type f -mtime +180 -delete
# Delete all .gz and rotated LOG files
Code: Select all
find /var/log -type f -regex ".*\.gz$" -delete
find /var/log -type f -regex ".*\.[0-9]$" -delete
Re: Disk Full Digitalocean vestacp var/log/httpd
Posted: Mon Sep 26, 2016 2:16 pm
by zxcbew321
thank you very much for your kind support