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.

Empty Domain log file

Discussion in 'General Discussion' started by PDM, Jan 3, 2006.

  1. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    One domain on my server stopped recording traffic to the Apache access log.

    /usr/local/apache/domlogs/domain.com

    How do I find out why traffic stopped recording?

    It seems to have stopped for this one domain on the first of this month.
     
    #1 PDM, Jan 3, 2006
    Last edited: Jan 3, 2006
  2. lloyd_tennison

    lloyd_tennison Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    698
    Likes Received:
    1
    Trophy Points:
    18
    Cannot really find out as all the records are gone. Try restarting apache and that should restart the logging.
     
  3. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    When a log file gets too big, (2GB I think), it stops being written to. When that happens the file has to be emptied and apache restarted to resume logging.
     
  4. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    This doesn't seem to be the case here.

    This is a very low traffic site, 100 or so visistors per day.

    The file just isn't being writte to when visitors hit the site and I'm not sure where to start looking as to why it's not.
     
  5. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    Doesn't seem to help.

    Deleted the domlog file via ssh but still not logging.

    Perms seem to be the same as all other domolg files.

    ???
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Does the VirtualHost entry in httpd.conf for that domain have a line like
    CustomLog domlogs/domain.com combined
     
  7. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    Yes it looks just like other 86

    Thanks
     
  8. wish

    wish Member

    Joined:
    Aug 14, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Did you resolve this problem? We're seeing the same thing on one domain only. Log sizes are OK, CustomLog entry in httpd.conf OK and unchanged, deleted existing file, checked permissions, restarted Apache. Apache recreates file, but a tail -f shows nothing is being written to it.

    Thanks.
     
  9. PDM

    PDM Active Member

    Joined:
    Jan 7, 2004
    Messages:
    43
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Angel Fire, NM
    My issue turned out to be DNS resolution hadn't pointed the domain to the new server.

    Once DNS resolved to the server the logs started getting traffic recorded.
     
Loading...

Share This Page