Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 16
  1. #1
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default No log files?

    I need to download the log files for my site so that my stats program can analyze them. The problem is, my log files are not being kept! Here are my settings:

    CPANEL
    Archive logs in home director: CHECKED
    Remove the previous month's logs: UNCHECKED

    WHM
    Delete each domain's access logs after stats run: UNCHECKED
    Keep log files at the end of the month : CHECKED


    What am I missing? Is there a setting I am missing?

  2. #2
    Member adept2003's Avatar
    Join Date
    Aug 2003
    Location
    ~ "/(extra|special)/data"
    Posts
    283

    Default

    Might work if you download the log file using WHM -> Account Functions -> Raw Apache Log Download
    Chad
    Adept Hosting Ltd
    UK Web Hosting

  3. #3
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    Nope, I get a 404 error :/ Any other suggestions? Any other settings I need to set?

  4. #4
    Member adept2003's Avatar
    Join Date
    Aug 2003
    Location
    ~ "/(extra|special)/data"
    Posts
    283

    Default

    You shouldn't be getting a 404 error, even if the log file contains no data.

    Try right-clicking on the download link and selecting "Save Target As". If that still doesn't work, then I'd suggest you check /usr/local/apache/domlogs to see if the log for that domain even exists.
    Chad
    Adept Hosting Ltd
    UK Web Hosting

  5. #5
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    It actually is not a 404... It isays "Cannot find server or DNS Error"

    I do not understand that since the site is hosted on the server?

  6. #6
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    I checked the domlogs and the logs do exist.

    When I try to download them through WHM I get a DNS error


    They are not located in /home/user/logs/ which is where I need them.

    Any advice?

  7. #7
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    Anyone at all?

  8. #8
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Logs are not kept there.
    Lloyd F Tennison

  9. #9
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    Why were they kept there on my other cpanel server? And, how do I get them to be archived there (after every stats run) once again?

  10. #10
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    This issue is still unresolved

  11. #11
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    Still looking for an answer

  12. #12
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    Quote Originally Posted by xaze
    They are not located in /home/user/logs/ which is where I need them. Any advice?
    A couple of thoughts:

    1) You could always copy the log file from /usr/local/apache/domlogs/domainname to /home/user/logs/ if that's where you need them to access via FTP.

    2) By default, the domain logs are stored under that apache directory so they can be accessed in the cPanel interface. The directive that controls this is stored in the httpd.conf file. If you want them written to /home/user/logs/, you would have to edit /usr/local/apache/conf/httpd.conf and change the CustomLog directory (or create another entry so apache writes the logs to both places) within the VirtualHost container for that domain. Possibly this had been adjusted on your prior server.

    I don't know why you are receiving the DNS error ... sounds like something is not configured correctly.

    Hope this is a start -

  13. #13
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    You have not aid how you are downlaoding them and what is giving you that error.

    Also, make sure you restart apache after moving the logs otherwise all kinds of problems will happen.
    Lloyd F Tennison

  14. #14
    Member
    Join Date
    Jul 2003
    Posts
    50

    Default

    What happened with the last server is that archived logs (up to the last stats run) were stored in /home/[user]/logs. Not the active logs that apache is writing to, but gzipped logs. So, it would have a log for october, november, and december. This file would be written to after cpanel ran its stats cycle... This allowed me to download the gzip file into my stats program and delete the logs. Then it would be recreated in a few hours with any new data (I have the stats updating every 4 hours). Absolutely nothing was configured outside of the whm / cpanel interface with the last server or this server

    How do I get this behavior back?

  15. #15
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    Did you ever figure out who to do this? It would certainly solve the 2 gig problem with the logs.
    Lloyd F Tennison

Similar Threads & Tags
Similar threads

  1. No Log Files?
    By xaze in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-06-2005, 01:15 PM
  2. log files
    By Inovica in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-16-2004, 12:16 PM
  3. log files
    By ramorse in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-23-2004, 01:18 PM
  4. Log files
    By kiwiguys in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2003, 06:10 AM
  5. log files
    By anand in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 12-18-2002, 07:21 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube