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.

Domlogs is so big

Discussion in 'General Discussion' started by burachat, Nov 15, 2004.

  1. burachat

    burachat Active Member

    Joined:
    Jun 9, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Thailand
    Hi guys ,

    Is there anyway to manage with Domlogs in /usr/local/apache/domlogs ?
    There is so many files and use a lot of dislk space , can we change the directory to the bigger one?
    Or can we delete it?

    Please advise

    George
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Go into WHM and Tweak Settings. Choose "Delete logs after stats run".
     
  3. damainman

    damainman Well-Known Member

    Joined:
    Nov 13, 2003
    Messages:
    515
    Likes Received:
    0
    Trophy Points:
    16
    Is there any downsides or negative affects for doing this?
     
  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
    There are a couple of downsides to this, but the benefits usually outweigh them:

    1. Users will only have access to raw apache logs within the last 24 hours

    2. It does make it more difficult to track back any PHP or Perl vulnerabilities as the web logs simply are no longer there to look back in
     
  5. DigiCrime

    DigiCrime Well-Known Member

    Joined:
    Nov 27, 2002
    Messages:
    399
    Likes Received:
    0
    Trophy Points:
    16

    Yep, #2 being the most disadvantage I can speak from experience
     
  6. burachat

    burachat Active Member

    Joined:
    Jun 9, 2004
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Thailand
    Hi Guys ,

    the "Delete each domain's access logs after stats run" is already ticked by default ,
    but my domlogs is still big. Can i delete it all ? IS there any side effect? Will i be able to use the stat after deleting it?

    Please advise ,
    Best Regards,
    George
     
  7. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    It's also impossible to trace http attacks on the site which sometimes send the bandwidth over the limit. But if the logs are too big, what can ya do?
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    If you've got a partitioning scheme that is causing you problems with this on /usr You could always try symlinking the directory from another partition, e.g:

    1. Stop chkservd process

    service chkservd stop

    2. Stop Apache

    service httpd stop

    3. Move the current directory (may take a while):

    mv /usr/local/apache/domlogs /home/.
    ln -s /home/domlogs /usr/local/apache/domlogs

    4. Restart services

    service httpd startssl
    service chkservd start

    Haven't tried it - should work ;)
     
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Just for a reassuring note, that will work. It's what I did on my setup. My log files are in a seperate logs folder, not in the home one, but that's what I did when I moved them. :)
     
  10. ttiger

    ttiger Member

    Joined:
    Sep 1, 2004
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I have that box checked in tweak setting but my domlogs never get deleted. They just continue growing until the eat up all the diskspace.
     
  11. chmod

    chmod Well-Known Member

    Joined:
    Apr 20, 2004
    Messages:
    45
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    London - UK
    me too

    After upgrading the other day to WHM 10.0.0 cPanel 10.0.0-R7 I seem to be having the same problem the logs get processed for webalizer and analog stats but the domlog (which used to get added to the domains zipped logs and then deleted each day) doesn`t happen any more and the domlogs are growing.

    I have in WHM: tweak settings
    Delete each domain's access logs after stats run (checked)

    and in cpanel for that domain in : Raw Log Manager
    Archive Logs in your home directory at the end of each stats run [every 1 day(s)] (checked)

    anyone have any ideas about this.

    Thanks chmod
     
  12. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    hi chmod

    What version of cpanel WERE u using when you made the above post ?

    I can find the Raw log manager but i dont find the one about the stats etc .. :eek:
    Thats the option Im really looking for.

    Please vote for this enhancement, Its got to do with stats and logrotate and sizes over 2 gig.
    http://bugzilla.cpanel.net/show_bug.cgi?id=3153

    cheers
    Andy
     
  13. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    please keep voting for this enhancement.

    it definitely makes sense... :D :D :D


    cheers
    Andy
     
Loading...

Share This Page