Logs filling disk

wpw

Verified User
Joined
Sep 9, 2014
Messages
18
Hi guys,

I noticed my server stumbling and went to invesitigate. I couldn't get into DirectAdmin so went for SSH.
The /dev/sda3 partition is filled up to 100%, after looking further I found /var/log/httpd/domains being 150Gb en filled with these files:
domain.eu.bytes
domain.eu.bytes.1
domain.eu.bytes.2
domain.eu.bytes.3
domain.eu.bytes.4
domain.eu.bytes.5
domain.eu.log

can I delete these at once???
 
Logrotate should take care of rotating the log-files, and I guess your main file is domain.eu.log, taking the most space. It might be full of PHP errors/warnings (if log_errors is On in php.ini). Please check the following to solve and prevent the issue from appearing (alternative solution is to just turn "display_errors = On", "log_errors = Off" in php.ini file):
Code:
tail /var/log/httpd/domains/domain.eu.log
 
Thank you for your quick reply, I'll have to turn logging off for now I guess, I can see the directory growing by the minute
In the mean time I'll research how to configure logrotate...
 
okay, I've set "size 100M" in logrotate and it seemed to have stopped. I started 6 hours ago, now let's find the cause...
 
Back
Top