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

Posted on 2011-10-12
Last Modified: 2012-05-12
Can someone explain me briefly and clearly how to setup AWstats for my application running on glassfish server?

Question by:Tolgar
    LVL 3

    Accepted Solution

    In brief:
    1. upload and extract awstats package
    3. Make sure that all pl files within awstats/ and awstats/cgi-bin folders have execute permissions.
    2. Edit local.awstats.conf configration file to add strings similar to the following:
      - This should be path to your log file
    LoadPlugin=“geoip GEOIP_STANDARD GeoIP.dat”

    The detailed instruction on installation and configuring is outlined at:

    Author Comment

    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 -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:
    This means each line in your web server log file need to have "combined log format" like this: - - [10/Jan/2001:02:14:14 +0200] "GET / HTTP/1.1" 200 1234 "" "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):
    "" "NULL-AUTH-USER" "08/Nov/2011:03:14:46 -0500" "GET /srcsearch/ 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


    Author Comment

    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 
    '{"":description, "":display-name, 
    "":icon, "":servlet-name}' is expected. 
    Error loading deploy...

    Open in new window

    Can you please help me?


    Author Comment

    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?



    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Join & Write a Comment

    Suggested Solutions

    In this tutorial I will show you with short command examples how to obtain a packet footprint of all traffic flowing thru your Juniper device running ScreenOS. I do not know the exact firmware requirement, but I think the fprofile command is availab…
    Introduction Many times we come across a slowness or instability between two hosts, and almost always we blame the poor networking guys, just because they're an easy target.  Sometimes we forget that other factors including disk bottlenecks, CPU …
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now