is it safe to delete the following types of domlogs?
Hi
My server has 53 G of domlogs (/var/log/apache2/domlogs)
/dev/sdb2 is at 90%
WHM > Tweak Settings > Stats and Logs > is set to "Delete each domain"s access logs after statistics are gathered"
WHM > Statistics Software Configuration the log rotations is set to 25mb
What is strange is that when I go to
cd /var/log/apache2
du
the total MG of the individual log files is way less that the actual total of all of the files.
Is it safe to delete domlogs for a user?
will domlogs recreate themselves?
for example - is it OK to delete the following domlogs?
cd /var/log/apache2
cd domlogs/USERNAME
ls
DOMAIN.com DOMAIN.com-ssl_log
DOMAIN.com-ssl_log PARKED_DOMAIN.DOMAIN.com
PARKED_DOMAIN.DOMAIN.com PARKED_DOMAIN.DOMAIN.com-ssl_log
Thanks for your help
Lauren
-
Hey hey! You probably don't want to delete the logs, but you could run an echo statement to empty the file.
echo "" > /path/to/logfile/you/want/to/clear
0 -
Thanks cPRex for your great advice and for the echo statement to empty the file.
The echo statement cleared the first file that I tried
I will clear out all of the bigger files in
cd /var/log/apache2
cd domlogs/USERNAMEHave a wonderful rest of your day
Take Care
Lauren0 -
You as well!
0
Please sign in to leave a comment.
Comments
3 comments