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.

awstats stop running

Discussion in 'General Discussion' started by dexjul, Mar 3, 2008.

  1. dexjul

    dexjul Active Member

    Joined:
    Apr 24, 2006
    Messages:
    25
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    I got this error in awstats update now...

    Code:
    AWStats did not find any valid log lines that match your LogFormat parameter, in the 50th first non commented lines read of your log.
    Your log file /usr/local/apache/domlogs/domain.com must have a bad format or LogFormat parameter setup does not match this format.
    
    Your AWStats LogFormat parameter is: 1
    This means each line in your web server log file need to have "combined log format" like this:
    111.22.33.44 - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "http://www.fromserver.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
    
    And this is an example of records AWStats found in your log file (the record number 50 in your log):
    201.43.237.149 - - [03/Mar/2008:12:41:01 +0000] "GET /banners/erupt8.gif HTTP/1.1" 200 5589
    
    
    Setup ('/home/eruptco/tmp/awstats/awstats.domain.com.conf' file, web server or permissions) may be wrong.
    Check config file, permissions and AWStats documentation (in 'docs' directory).
    Regards,
     
  2. Aldweb

    Aldweb Well-Known Member

    Joined:
    Feb 18, 2004
    Messages:
    66
    Likes Received:
    0
    Trophy Points:
    6
    I'm having the same problem, anyone know any solution?

    Thanks
     
  3. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    I would suggest you to read the documentation which was provided with your Awstats. I think you will need to re-configure your awstats installation.
     
  4. apscinsspl

    apscinsspl Well-Known Member

    Joined:
    Mar 15, 2008
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    16
    Hello,

    The problem is as follows:

    The awstats is set for the format of logs called as combined logs. But your apache is not generating formats in combined format. For this issue login to server via ssh as root and do following thing.

    Edit the file:

    /etc/httpd/conf/httpd.conf

    Find the virtual host entry of the domain in issue and in that vhost entry there is line starting as:

    CustomLog

    the line should be as follows:

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

    Once this is done restart service httpd.

    Then wait for few hours for logs to get generate in combined format and after that check awstats, it should work fine. If after doing this you are still getting the error then you should empty the log file so that fresh logs in combined format will be in log file from the start so that Awstats dont generate errors.
     
  5. big_bull

    big_bull Well-Known Member

    Joined:
    Nov 19, 2006
    Messages:
    150
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    also make sure that the domlogs file is created in /usr/local/apache/domlogs by your domain name, also check /home/eruptco/tmp/awstats/awstats.domain.com.conf is created, if not copy the file from other domain, rename it to awstats.yourdomain.com.conf and edit it accordingly.

    then visit the site and update the stats by clicking "update now" button in awstats, this should show your stats.
     
  6. dotinc

    dotinc Member

    Joined:
    Jul 13, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    awstats stopped when we transferred accounts.

    Should there be a problem transferring an account from a server running:

    WHM 11.20.0 cPanel 11.22.3-C23899
    CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0

    Advanced Web Statistics 6.6 (build 1.887) - Created by awstats (plugins: geoipfree)

    TO:
    cPanel 11.24.1-C31729 - WHM 11.24.2 - X 3.9
    CENTOS 5.2 x86_64 on standard

    Advanced Web Statistics 6.7 (build 1.892) - Created by awstats (plugins: geoipfree)

    AWSTATS stopped on the day we moved them.

    The log file is not 2GB . the files mentioned above are all present and properly configured.

    Thanks in Advance.
    Mike Economopoulos
    Dot Internet Solutions Inc.
     
  7. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator


    The style/format is set in WHM using the Basic cPanel/WHM Setup interface. Editing httpd.conf directly is fine for troubleshooting, but for the long term the log format needs changed within WHM to ensure the proper setting is retained. Otherwise, when something triggers a regeneration of httpd.conf the custom edit will go bye-bye.
     
Loading...

Share This Page