User Tools

Site Tools


sermn_wiki:userpages:marta:awstats

This is an old revision of the document!


Estadístiques del servidor amb AwStats

Després de comparar diferents Web Statistics Tools, al final ens hem decidit pel programa awstats per consultar l'ús del difrents servidors virtuals del SeRMN.

Enllaços d'interès

Configuració de l'awstats

<note important> En construcción </note>

Amb la comanda perl awstats_configure.pl es realitza una configuració generica del programa.

# AWSTATS CONFIGURE FILE #—————————————————————————– # Copy this file into awstats.www.mydomain.conf and edit this new config file # to setup AWStats (See documentation in docs/ directory). # The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for # Unix/Linux)

#—————————————————————————–

#—————————————————————————– # MAIN SETUP SECTION (Required to make AWStats work) #—————————————————————————–

# “LogFile” contains the web, ftp or mail server log file to analyze. # Possible values: A full path, or a relative path from awstats.pl directory. # Example: “/var/log/apache/access.log” # Example: “../logs/mycombinedlog.log” LogFile=“/var/log/apache2/access.log”

# Enter the log file type you want to analyze. # Possible values: # W - For a web log file # S - For a streaming log file # M - For a mail log file # F - For a ftp log file # LogType=W

# Enter here your log format (Must match your web server config. See setup # instructions in documentation to know how to configure your web server to # have the required log format). # Possible values: 1,2,3,4 or “your_own_personalized_log_format” # 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format) # 2 - IIS or ISA format (IIS W3C log format). See FAQ-COM115 For ISA. # 3 - Webstar native log format. # 4 - Apache or Squid native common log format (NCSA common/CLF log format) # With LogFormat=4, some features (browsers, os, keywords…) can't work. LogFormat=1

# “SiteDomain” must contain the main domain name, or the main intranet web # server name, used to reach the web site. # If you share the same log file for several virtual web servers, this # parameter is used to tell AWStats to filter record that contains records for # this virtual host name only (So check that this virtual hostname can be # found in your log file and use a personalized log format that include the # %virtualname tag). # SiteDomain=“cie-58-175.uab.cat”

# Enter here all other possible domain names, addresses or virtual host # aliases someone can use to access your site. Try to keep only the minimum # number of possible names/addresses to have the best performances. # HostAliases=“localhost 127.0.0.1 cie-58-175.uab.es”

# When AWStats updates its statistics, it stores results of its analysis in # files (AWStats database). All those files are written in the directory # defined by the “DirData” parameter. Set this value to the directory where # you want AWStats to save its database and working files into. # Warning: If you want to be able to use the “AllowToUpdateStatsFromBrowser” # feature (see later), you need “Write” permissions by web server user on this # directory (and “Modify” for Windows NTFS file systems). # DirData=“/var/lib/awstats”

# Relative or absolute web URL of your awstats cgi-bin directory. # This parameter is used only when AWStats is run from command line # with -output option (to generate links in HTML reported page). # DirCgi=“/cgi-bin”

# Relative or absolute web URL of your awstats icon directory. # If you build static reports (“… -output > outputpath/output.html”), enter # path of icon directory relative to the output directory 'outputpath'. # DirIcons=“/awstats-icon”

#—————————————————————————– # OPTIONAL APPEARANCE SETUP SECTION (Not required but increase AWStats features) #—————————————————————————–

# You can set Logo and LogoLink to use your own logo. # Logo must be the name of image file (must be in $DirIcons/other directory). # LogoLink is the expected URL when clicking on Logo. # Default: “awstats_logo6.png” # Logo=“awstats_logo6.png” LogoLink=“http://awstats.sourceforge.net

# Value of maximum bar width/height for horizontal/vertical HTML graphics bar. # Default: 260/90 # BarWidth = 260 BarHeight = 90

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
sermn_wiki/userpages/marta/awstats.1226659450.txt.gz · Last modified: 2008/11/14 11:44 by marta