·  AWStats – Scripts – awstats.pl

 

- Info:

  - awstats.pl is used to create DB files in text or xml format as defined with BuildHistoryFormat parameter.

  - awstats.pl is used to create specific static HTML or XHTML report from DB files.

  - awstats.pl can be called from Web Application Server when it acts as interactive Web Application.

    In this case no report files are created, they are generated on the fly as requested and displayed in the browser.

  - awstats_buildstaticpages.pl is used to create multiple static reports by multiple calls to awstats.pl.

    It can also call HTMLDOC to convert generated reports to PDF.

 

- Parameters:

  - config=test               – Defines configuration file awstats.test.conf

 

  - update                    – Create or update DB files.

  - showcorrupted             – Show corrupted records and info about corrupted column.

 

  - staticlinks>Reports.html  – Save created report in a file Reports.html

  - month  = all              – Create report for all months of year defined with -year.

  - month  = 01               – Create report only for first month of year defined with -year.

  - year   = 2010             – Create report for months defined with -month of year 2010.

  - output                    – Create all reports. If -staticlinks is not used reports are displayed on the screen.

  - output = alldomains       – Only create report on domains 

            = allhosts     

            = lasthosts    

            = unknownip    

            = alllogins    

            = lastlogins   

            = allrobots    

            = lastrobots   

            = urldetail    

            = urlentry     

            = urlexit      

            = browserdetail

            = osdetail     

            = unknownbrowser

            = unknownos    

            = refererse    

            = refererpages 

            = keyphrases   

            = keywords     

            = errors404       

  - output = urldetail:/news    – Only create report on urldetails and only for URLs starting with /news 

  - output = urlentry:/news     – Only create report on domains 

  - output = urlexit:/news      – Only create report on domains 

  - output = allhosts:/news     – Only create report on domains 

  - output = refererpages:/news – Only create report on domains 

  - output = alldomains:/news   – Only create report on domains 

 

- Examples:

 

  - Update DB using awstats.test.conf configuration file:

    perl awstats.pl -config=test -update

 

  - Create all reports for specified month as static web page:

    perl awstats.pl -config=test -output -month=01 -year=2010 -staticlinks > awstats.test.201001.htm

 

  - Display urldetail report on the screen:

    perl awstats.pl -config=test -output=urldetail:/news