dexjul

Active Member
Apr 24, 2006
25
0
151
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,
 

thewebhosting

Well-Known Member
May 9, 2008
1,199
1
68
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.
 

apscinsspl

Well-Known Member
Mar 15, 2008
112
0
66
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.
 

big_bull

Well-Known Member
Nov 19, 2006
150
0
166
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.
 

dotinc

Member
Jul 13, 2006
7
0
151
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.
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
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.


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.