The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How do you manage domlogs ?

Discussion in 'General Discussion' started by iCARus, Feb 28, 2005.

  1. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    Hello.

    I'm very interested for any tip or info how you guys manage domlogs ? I got big problem with it because less that 100 domain o servers, domlog directory have 279852 files :eek:

    In WHM we allready have checked "Delete each domain's access logs after stats run" but files are allready in...

    So, we need to clean up this mess and stop big load at night when logrorate is runing.

    Thanks!
     
    #1 iCARus, Feb 28, 2005
    Last edited: Feb 28, 2005
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You have nearly 280,000 files in your domlog directory? Something must be very wrong there indeed. You should only have around 11 files per account, plus additional ones for sub/add-on domains. Has a customer done something silly and created thousands of subdomains?
     
  3. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    No, no toons subdomains... for one domain logs looks like this:

    This is from all begining, so i'm asking how the hell works WHM option "Delete each domain's access logs after stats run". It' like Cpanel doenst delete any log here ... we use WHM 10.0.0 cPanel 10.0.0-C138 & CentOS 3.x.
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    That's certainly odd. I'd definitely delete *.1* if I had that lot in there. You might want to log a ticket on bugzilla to get cPanel to fix it if it's a bug in their cleanup routine. Just check in the following to make sure that you haven't accidentally configured logrotate to touch the files in domlogs:

    /etc/logrotate.conf
    /etc/logrotate.d/*
     
  5. iCARus

    iCARus Well-Known Member

    Joined:
    Apr 8, 2003
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    No, no word for domlogs in logrotate configurations. So, is safe to cleanup this *.1.* ?
    I'm allready making ticket in Cpanel bugzilla.

    Thanks.
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Just make sure you're in that directory, then do rm -f *.1* and your file count will be a lot lower.
     
Loading...

Share This Page