Results 1 to 4 of 4

Thread: Logs filling disk

  1. #1
    Join Date
    Sep 2014
    Posts
    18

    Logs filling disk

    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???

  2. #2
    Join Date
    Aug 2006
    Location
    LT, EU
    Posts
    7,489
    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
    Martynas Bendorius
    MB Martynas IT. Professional server management company. Official DirectAdmin, CloudLinux, LiteSpeed and Comodo partners.

  3. #3
    Join Date
    Sep 2014
    Posts
    18
    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...

  4. #4
    Join Date
    Sep 2014
    Posts
    18
    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...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •