Link to home
Start Free TrialLog in
Avatar of Tolgar
Tolgar

asked on

How to setup Awstats for my application running on glassfish server?

Hi,
Can someone explain me briefly and clearly how to setup AWstats for my application running on glassfish server?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of trackstudio10
trackstudio10
Flag of Ukraine image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Tolgar
Tolgar

ASKER

Hi,
I set up AWStats for my web application. I made the changes as you recommended.

But I got this error.

How can I fix it?


# perl awstats.pl -update -config=productionCodeSearch
Create/Update database for config "/etc/awstats/awstats.productionCodeSearch.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/opt/glassfish/domains/domain1/logs/access/server_access_log.2011-11-08.txt"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
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 /opt/glassfish/domains/domain1/logs/access/server_access_log.2011-11-08.txt 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):
"xxx.xx.xx.xxx" "NULL-AUTH-USER" "08/Nov/2011:03:14:46 -0500" "GET /srcsearch/Preview.do?file=toolbox%2Fdistcomp%2Fsrc%2Fbuiltins%2Fgpu%2Fscripts%2FCUTypes.pm&searchString=%22int8+cplx+t%22&caseSensitive=false&indexId=1&indexDir= HTTP/1.1" 200 0
Setup ('/etc/awstats/awstats.productionCodeSearch.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

Open in new window



Thanks,
Avatar of Tolgar

ASKER

and in the 5th step of the instructions in the blog, I got this error while deploying:
Deploying application in domain failed; Error loading deployment descriptors for module [wwwroot] 
Line 7 Column 16 -- Deployment descriptor file WEB-INF/web.xml in archive [wwwroot]. cvc-complex-
type.2.4.a: Invalid content was found starting with element 'servlet-class'. One of 
'{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, 
"http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":servlet-name}' is expected. 
Error loading deploy...

Open in new window



Can you please help me?

Thanks,
Avatar of Tolgar

ASKER

Note: I changed the acces log format in glassfish server as recommended in the blog. I think this will solve the my first question.

But the problem that I had in deployment has not been solved yet.

Any idea?

Thanks,