Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    PDM
    PDM is offline
    Member
    Join Date
    Jan 2004
    Location
    Angel Fire, NM
    Posts
    43

    Default Empty Domain log file

    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.
    Last edited by PDM; 01-03-2006 at 10:27 PM.

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Cannot really find out as all the records are gone. Try restarting apache and that should restart the logging.
    Lloyd F Tennison

  3. #3
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    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.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  4. #4
    PDM
    PDM is offline
    Member
    Join Date
    Jan 2004
    Location
    Angel Fire, NM
    Posts
    43

    Default

    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. #5
    PDM
    PDM is offline
    Member
    Join Date
    Jan 2004
    Location
    Angel Fire, NM
    Posts
    43

    Default

    Try restarting apache and that should restart the logging
    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. #6
    Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,994

    Default

    Does the VirtualHost entry in httpd.conf for that domain have a line like
    CustomLog domlogs/domain.com combined
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  7. #7
    PDM
    PDM is offline
    Member
    Join Date
    Jan 2004
    Location
    Angel Fire, NM
    Posts
    43

    Default

    Yes it looks just like other 86

    Thanks

  8. #8
    Member
    Join Date
    Aug 2003
    Posts
    9

    Default

    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. #9
    PDM
    PDM is offline
    Member
    Join Date
    Jan 2004
    Location
    Angel Fire, NM
    Posts
    43

    Default

    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.

Similar Threads & Tags
Similar threads

  1. WHM cpup should include log file path and link to log file
    By lbeachmike in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 07-22-2011, 12:04 AM
  2. Domain log file rotation
    By hostsale in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-05-2010, 07:17 PM
  3. addon domain - empty .db file
    By walrus in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-16-2006, 11:56 AM
  4. log files are empty
    By iCARus in forum cPanel and WHM Discussions
    Replies: 20
    Last Post: 02-06-2006, 03:40 AM
  5. Domain log file > 1Gig.
    By Kaith Rustaz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-26-2005, 12:09 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube