免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 5780 | 回复: 17
打印 上一主题 下一主题

[Mail] AWSTATS,qmail日志统计工具安装过程(附图)! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-10-19 16:01 |只看该作者 |倒序浏览
这几天邮件发的太多,实在是没有办法很好的统计一下。所以安装了一下,这个希望能对大家也有所帮助
1、下载 AWSTATS这个就不多说了,到google里面找
2、解压awstats-6.1.tar到home下(个人习惯   :em11:  )
3、mv /home/awstats-6.1/wwwroot/cgi-bin /var/www/cgi-bin/awstats/
  4、mv /home/awstats-6.1/wwwroot/icon /var/www/html/icon/
  5、接下来./configure.pl 配置一下这个。按照要求来填写就OK了!
     主要是填写你的虚拟主机明,和日志文件的路径
6、 接着查看是不是在/etc/awstats/下面身成了一个awstats.你的虚拟主机.conf文件
7、修改这个文件,关键是修改这个文件,awstats可以分析几乎所有的日志文件,但是具体要分析哪个文件,就要修改这个文件了!
我得这个文件代码是
  1. # AWSTATS CONFIGURE FILE 6.0
  2. #-----------------------------------------------------------------------------
  3. # Copy this file into awstats.www.mydomain.conf and edit this new config file
  4. # to setup AWStats (See documentation in docs/ directory).
  5. # The config file must be in /etc/awstats, /usr/local/etc/awstats or /etc (for
  6. # Unix/Linux) or same directory than awstats.pl (Windows, Mac, Unix/Linux...)
  7. # To include an environment variable in any parameter (AWStats will replace
  8. # it with its value when reading it), follow the example:
  9. # Parameter="__ENVNAME__"
  10. # Note that environment variable AWSTATS_CURRENT_CONFIG is always defined with
  11. # the config value in an AWStats running session and can be used like others.
  12. #-----------------------------------------------------------------------------
  13. # $Revision: 1.283 $ - $Author: eldy $ - $Date: 2004/05/09 12:53:35 $



  14. #-----------------------------------------------------------------------------
  15. # MAIN SETUP SECTION (Required to make AWStats work)
  16. #-----------------------------------------------------------------------------

  17. # "LogFile" contains the web, ftp or mail server log file to analyze.
  18. # Possible values: A full path, or a relative path from awstats.pl directory.
  19. # Example: "/var/log/apache/access.log"
  20. # Example: "../logs/mycombinedlog.log"
  21. # You can also use tags in this filename if you need a dynamic file name
  22. # depending on date or time (Replacement is made by AWStats at the beginning
  23. # of its execution). This is available tags :
  24. #   %YYYY-n  is replaced with 4 digits year we were n hours ago
  25. #   %YY-n    is replaced with 2 digits year we were n hours ago
  26. #   %MM-n    is replaced with 2 digits month we were n hours ago
  27. #   %MO-n    is replaced with 3 letters month we were n hours ago
  28. #   %DD-n    is replaced with day we were n hours ago
  29. #   %HH-n    is replaced with hour we were n hours ago
  30. #   %NS-n    is replaced with number of seconds at 00:00 since 1970
  31. #   %WM-n    is replaced with the week number in month (1-5)
  32. #   %Wm-n    is replaced with the week number in month (0-4)
  33. #   %WY-n    is replaced with the week number in year (01-52)
  34. #   %Wy-n    is replaced with the week number in year (00-51)
  35. #   %DW-n    is replaced with the day number in week (1-7, 1=sunday)
  36. #                              use n=24 if you need (1-7, 1=monday)
  37. #   %Dw-n    is replaced with the day number in week (0-6, 0=sunday)
  38. #                              use n=24 if you need (0-6, 0=monday)
  39. #   Use 0 for n if you need current year, month, day, hour...
  40. # Example: "/var/log/access_log.%YYYY-0%MM-0%DD-0.log"
  41. # Example: "C:/WINNT/system32/LogFiles/W3SVC1/ex%YY-24%MM-24%DD-24.log"
  42. # You can also use a pipe if log file come from a pipe :
  43. # Example: "gzip -d </var/log/apache/access.log.gz |"
  44. # If there is several log files from load balancing servers :
  45. # Example: "/pathtotools/logresolvemerge.pl *.log |"
  46. #
  47. #LogFile="/var/log/httpd/mylog.log"
  48. #LogFile="/etc/httpd/logs/access_log"
  49. #LogFile="/var/log/maillog"
  50. LogFile="perl /home//awstats-6.1/tools/maillogconvert.pl standard < /var/log/Qmaillog |"



  51. # Enter the log file type you want to analyze.
  52. # Possible values:
  53. #  W - For a web log file
  54. #  S - For a streaming log file
  55. #  M - For a mail log file
  56. #  F - For a ftp log file
  57. # Example: W
  58. # Default: W
  59. #
  60. LogType=M


  61. # Enter here your log format (Must match your web server config. See setup
  62. # instructions in documentation know how to configure your web server to have
  63. # the required log format).
  64. # Possible values: 1,2,3,4,5 or "your_own_personalized_log_format"
  65. # 1 - Apache or Lotus Notes/Domino native combined log format (NCSA combined/XLF/ELF log format)
  66. # 2 - Old IIS log format (IIS W3C log format). See FAQ for IIS 6.x.
  67. # 3 - Webstar native log format.
  68. # 4 - Apache or Squid native common log format (NCSA common/CLF log format)
  69. #     With LogFormat=4, some features (browsers, os, keywords...) can't work.
  70. # "your_own_personalized_log_format" = If your log is ftp, mail or other format,
  71. #     you must use following keys to define the log format string (See FAQ
  72. #     for ftp, mail or exotic web log format examples):
  73. #   %host             Host client name or IP address
  74. #   %lognamequot      Authenticated login/user with format: "alex"
  75. #   %logname          Authenticated login/user with format: alex
  76. #   %time1            Date and time with format: [dd/mmm/yyyy:hh:mm:ss +0000] or [dd/mmm/yyyy:hh:mm:ss]
  77. #   %time2            Date and time with format: yyyy-mm-dd hh:mm:ss
  78. #   %time3            Date and time with format: Mon dd hh:mm:ss
  79. #   %time4            Date and time with format: dddddddddd
  80. #   %methodurl        Method and URL with format: "GET /index.html HTTP/x.x"
  81. #   %methodurlnoprot  Method and URL with format: "GET /index.html"
  82. #   %method           Method with format: GET
  83. #   %url              URL only with format: /index.html
  84. #   %query            Query string (used by URLWithQuery option)
  85. #   %code             Return code status (with format for web log: 999)
  86. #   %bytesd           Size of document in bytes
  87. #   %refererquot      Referer page with format: "http://from.com/from.htm"
  88. #   %referer          Referer page with format: http://from.com/from.htm
  89. #   %uaquot           User agent with format: "Mozilla/4.0 (compatible, ...)"
  90. #   %ua               User agent with format: Mozilla/4.0_(compatible...)
  91. #   %gzipin           mod_gzip compression input bytes: In:XXX
  92. #   %gzipout          mod_gzip compression output bytes & ratio: Out:YYY:ZZpct.
  93. #   %gzipratio        mod_gzip compression ratio: ZZpct.
  94. #   %deflateratio     mod_deflate compression ratio with format: (ZZ)
  95. #   %email            EMail sender (for mail log)
  96. #   %email_r          EMail receiver (for mail log)
  97. #   %virtualname      Web sever virtual hostname. Use this tag when same log
  98. #                     contains data of several virtual web servers. AWStats
  99. #                     will discard records not in SiteDomain nor HostAliases
  100. #   %cluster          If log file is provided from several computers (merged by
  101. #                     logresolvemerge.pl), this tag define field of cluster id.
  102. #   If your log format has some fields not included in this list, use:
  103. #   %other            Means another field not used
  104. #
  105. # Examples for Apache combined logs (following two examples are equivalent):
  106. # LogFormat = 1
  107. # LogFormat = "%host %other %logname %time1 %methodurl %code %bytesd %refererquot %uaquot"
  108. #
  109. #LogFormat=1
  110. LogFormat="%time2 %email %email_r %host %host_r %method %url %code %bytesd"


  111. # If your log field's separator is not a space, you can change this parameter.
  112. # This parameter is not used if LogFormat is a predefined value (1,2,3,4,5,6)
  113. # Example: " "
  114. # Example: "\t"
  115. # Example: "|"
  116. # Default: " "
  117. #
  118. LogSeparator=" "


  119. # "SiteDomain" must contain the main domain name, or the main intranet web
  120. # server name, used to reach the web site.
  121. # If you share the same log file for several virtual web servers, this
  122. # parameter is used to tell AWStats to filter record that contains records for
  123. # this virtual host name only (So check that this virtual hostname can be
  124. # found in your log file and use a personalized log format that include the
  125. # %virtualname tag).
  126. # But for multi hosting a better solution is to have one log file for each
  127. # virtual web server. In this case, this parameter is only used to generate
  128. # full URL's links when ShowLinksOnUrl option is set to 1.
  129. # If analysing mail log, enter here the domain name of mail server.
  130. # Example: "myintranetserver"
  131. # Example: "www.domain.com"
  132. # Example: "ftp.domain.com"
  133. # Example: "domain.com"
  134. #
  135. SiteDomain="[color=red]虚拟主机名[/color]"


  136. # Enter here all other possible domain names, addresses or virtual host
  137. # aliases someone can use to access your site. Try to keep only the minimum
  138. # number of possible names/addresses to have the best performances.
  139. # You can repeat the "SiteDomain" value in this list.
  140. # This parameter is used to analyze referer field in log file and to help
  141. # AWStats to know if a referer URL is a local URL of same site or an URL of
  142. # another site.
  143. # Note: Use space between each value.
  144. # Note: You can use regular expression values writing value with REGEX[value].
  145. # Example: "www.myserver.com localhost 127.0.0.1 REGEX[mydomain\.(net|org)$]"
  146. #
  147. HostAliases="[color=red]虚拟主机名[/color] www.[color=red]虚拟主机名[/color] 127.0.0.1 localhost"


  148. # If you want to have hosts reported by name instead of ip address, AWStats
  149. # need to make reverse DNS lookups (if not already done in your log file).
  150. # With DNSLookup to 0, all hosts will be reported by their IP addresses and
  151. # not by the full hostname of visitors (except if names are already available
  152. # in log file).
  153. # If you want/need to set DNSLookup to 1, don't forget that this will reduce
  154. # dramatically AWStats update process speed. Do not use on large web sites.
  155. # Note: Reverse DNS lookup is done on IPv4 only (Enable ipv6 plugin for IPv6).
  156. # Note: Result of DNS Lookup can be used to build the Country report. However
  157. # it is highly recommanded to enable the plugin 'geoipfree' or 'geoip' to
  158. # have an accurate Country report with no need of DNS Lookup.
  159. # Possible values:
  160. # 0 - No DNS Lookup
  161. # 1 - DNS Lookup is fully enabled
  162. # 2 - DNS Lookup is made only from static DNS cache file (if it exists)
  163. # Default: 2
  164. #
  165. DNSLookup=2


  166. # When AWStats updates its statistics, it stores results of its analysis in
  167. # files (AWStats database). All those files are written in the directory
  168. # defined by the "DirData" parameter. Set this value to the directory where
  169. # you want AWStats to save its database and working files into.
  170. # Warning: If you want to be able to use the "AllowToUpdateStatsFromBrowser"
  171. # feature (see later), you need "Write" permissions by web server user on this
  172. # directory (and "Modify" for Windows NTFS file systems).
  173. # Example: "/var/lib/awstats"
  174. # Example: "../data"
  175. # Example: "C:/awstats_data_dir"
  176. # Default: "."          (means same directory as awstats.pl)
  177. #
  178. DirData="/var/lib/awstats"


  179. # Relative or absolute web URL of your awstats cgi-bin directory.
  180. # This parameter is used only when AWStats is run from command line
  181. # with -output option (to generate links in HTML reported page).
  182. # Example: "/awstats"
  183. # Default: "/cgi-bin"   (means awstats.pl is in "/yourwwwroot/cgi-bin")
  184. #
  185. DirCgi="/awstats"


  186. # Relative or absolute web URL of your awstats icon directory.
  187. # If you build static reports ("... -output >; outputpath/output.html"), enter
  188. # path of icon directory relative to the output directory 'outputpath'.
  189. # Example: "/awstatsicon"
  190. # Example: "../icon"
  191. # Default: "/icon" (means you must copy icon directories in "/mywwwroot/icon")
  192. #
  193. DirIcons="/[color=red]awstatsicon[/color]"


  194. # When this parameter is set to 1, AWStats add a button on report page to
  195. # allow to "update" statistics from a web browser. Warning, when "update" is
  196. # made from a browser, AWStats is ran as a CGI by the web server user defined
  197. # in your web server (user "nobody" by default with Apache, "IUSR_XXX" with
  198. # IIS), so the "DirData" directory and all already existing history files
  199. # awstatsMMYYYY[.xxx].txt must be writable by this user. Change permissions if
  200. # necessary to "Read/Write" (and "Modify" for Windows NTFS file systems).
  201. # Warning: Update process can be long so you might experience "time out"
  202. # browser errors if you don't launch AWStats enough frequently.
  203. # When set to 0, update is only made when AWStats is ran from the command
  204. # line interface (or a task scheduler).
  205. # Possible values: 0 or 1
  206. # Default: 0
  207. #
  208. AllowToUpdateStatsFromBrowser=0


  209. # AWStats save and sort its database on a month basis, this allows to build
  210. # build a report quickly. However, if you choose the -month=all from command
  211. # line or value '-Year-' from CGI combo form to have a report for all year,
  212. # AWStats needs to reload all data for full year, and resort them completely,
  213. # requiring a large amount of time, memory and CPU. This might be a problem
  214. # for web hosting providers that offer AWStats for large sites, on shared
  215. # servers, to non CPU cautious customers.
  216. # For this reason, the 'full year' is only enabled on Command Line by default.
  217. # You can change this by setting this parameter to 0, 1, 2 or 3.
  218. # Possible values:
  219. #  0 - Never allowed
  220. #  1 - Allowed on CLI only, -Year- value in combo is not visible
  221. #  2 - Allowed on CLI only, -Year- value in combo is visible but not allowed
  222. #  3 - Possible on CLI and CGI
  223. # Default: 2
  224. #
  225. AllowFullYearView=2



  226. #-----------------------------------------------------------------------------
  227. # OPTIONAL SETUP SECTION (Not required but increase AWStats features)
  228. #-----------------------------------------------------------------------------

  229. # When the update process run, AWStats can set a lock file in TEMP or TMP
  230. # directory. This lock is to avoid to have 2 update processes running at the
  231. # same time to prevent unknown conflicts problems and avoid DoS attacks when
  232. # AllowToUpdateStatsFromBrowser is set to 1.
  233. # Because, when you use lock file, you can experience sometimes problems in
  234. # lock file not correctly removed (killed process for example requires that
  235. # you remove the file manualy), this option is not enabled by default (Do
  236. # not enable this option with no console server access).
  237. # Change : Effective immediatly
  238. # Possible values: 0 or 1
  239. # Default: 0
  240. #
  241. EnableLockForUpdate=0


  242. # AWStats can do reverse DNS lookups through a static DNS cache file that was
  243. # previously created manually. If no path is given in static DNS cache file
  244. # name, AWStats will search DirData directory. This file is never changed.
  245. # This option is not used if DNSLookup=0.
  246. # Note: DNS cache file format is 'minsince1970 ipaddress resolved_hostname'
  247. # or just 'ipaddress resolved_hostname'
  248. # Change : Effective for new updates only
  249. # Example: "/mydnscachedir/dnscache"
  250. # Default: "dnscache.txt"
  251. #
  252. DNSStaticCacheFile="dnscache.txt"


  253. # AWStats can do reverse DNS lookups through a DNS cache file that was created
  254. # by a previous run of AWStats. This file is erased and recreated after each
  255. # statistics update process. You don't need to create and/or edit it.
  256. # AWStats will read and save this file in DirData directory.
  257. # This option is used only if DNSLookup=1.
  258. # Note: If a DNSStaticCacheFile is available, AWStats will check for DNS
  259. # lookup in DNSLastUpdateCacheFile after checking into DNSStaticCacheFile.
  260. # Change : Effective for new updates only
  261. # Example: "/mydnscachedir/dnscachelastupdate"
  262. # Default: "dnscachelastupdate.txt"
  263. #
  264. DNSLastUpdateCacheFile="dnscachelastupdate.txt"


  265. # You can specify specific IP addresses that should NOT be looked up in DNS.
  266. # This option is used only if DNSLookup=1.
  267. # Note: Use space between each value.
  268. # Note: You can use regular expression values writing value with REGEX[value].
  269. # Change : Effective for new updates only
  270. # Example: "123.123.123.123 REGEX[^192\.168\.]"
  271. # Default: ""
  272. #
  273. SkipDNSLookupFor=""


  274. # The following two parameters allow you to protect a config file from being
  275. # read by AWStats when called from a browser if web user has not been
  276. # authenticated. Your AWStats program must be in a web protected "realm" (With
  277. # Apache, you can use .htaccess files to do so. With other web servers, see
  278. # your server setup manual).
  279. # Change : Effective immediatly
  280. # Possible values: 0 or 1
  281. # Default: 0
  282. #
  283. AllowAccessFromWebToAuthenticatedUsersOnly=0


  284. # This parameter give the list of all authorized authenticated users to view
  285. # statistics for this domain/config file. This parameter is used only if
  286. # AllowAccessFromWebToAuthenticatedUsersOnly is set to 1.
  287. # Change : Effective immediatly
  288. # Example: "user1 user2"
  289. # Example: "__REMOTE_USER__"
  290. # Default: ""
  291. #
  292. AllowAccessFromWebToFollowingAuthenticatedUsers=""


  293. # When this parameter is define to something, the IP address of the user that
  294. # read its statistics from a browser (when AWStats is used as a CGI) is
  295. # checked and must match one of the IP address values or ranges.
  296. # Change : Effective immediatly
  297. # Example: "127.0.0.1 123.123.123.1-123.123.123.255"
  298. # Default: ""
  299. #
  300. AllowAccessFromWebToFollowingIPAddresses=""


  301. # If the "DirData" directory (see above) does not exists, AWStats return an
  302. # error. However, you can ask AWStats to create it.
  303. # This option can be used by some Web Hosting Providers that has defined a
  304. # dynamic value for DirData (for example DirData="/home/__REMOTE_USER__") and
  305. # don't want to have to create a new directory each time they add a new user.
  306. # Change : Effective immediatly
  307. # Possible values: 0 or 1
  308. # Default: 0
  309. #
  310. CreateDirDataIfNotExists=0


  311. # You can choose in which format the Awstats history database is saved.
  312. # Note: Using "xml" format make AWStats building database files three times
  313. # larger than using "text" format.
  314. # Change : Database format is switched after next update
  315. # Possible values: text or xml
  316. # Default: text
  317. #
  318. BuildHistoryFormat=text


  319. # If you prefer having the report output pages be built as XML compliant pages
  320. # instead of simple HTML pages, you can set this to 'xhtml' (May not works
  321. # properly with old browsers).
  322. # Change : Effective immediatly
  323. # Possible values: html or xhtml
  324. # Default: html
  325. #
  326. BuildReportFormat=html


  327. # In most case, AWStats is used as a cgi program. So AWStats process is ran
  328. # by default web server user (nobody for Unix, IUSR_xxx for IIS/Windows,...).
  329. # To make use easier and avoid permission's problems between update process
  330. # (run by an admin user) and CGI process (ran by a low level user), AWStats
  331. # save its database files with read and write for everyone.
  332. # If you have experience on managing security policies (Web Hosting Provider),
  333. # you should set this parameter to 0. AWStats will keep default process user
  334. # permissions on its files.
  335. # Change : Effective for new updates only
  336. # Possible values: 0 or 1
  337. # Default: 1
  338. #
  339. SaveDatabaseFilesWithPermissionsForEveryone=1


  340. # AWStats can purge log file, after analyzing it. Note that AWStats is able
  341. # to detect new lines in a log file, to process only them, so you can launch
  342. # AWStats as often as you want, even with this parameter to 0.
  343. # With 0, no purge is made, so you must use a scheduled task or a web server
  344. # that make this purge frequently.
  345. # With 1, the purge of the log file is made each time AWStats update is ran.
  346. # This parameter doesn't work with IIS (This web server doesn't let its log
  347. # file to be purged).
  348. # Change : Effective for new updates only
  349. # Possible values: 0 or 1
  350. # Default: 0
  351. #
  352. PurgeLogFile=0


  353. # When PurgeLogFile is setup to 1, AWStats will clean your log file after
  354. # processing it. You can however keep an archive file (saved in "DirData") of
  355. # all processed log records by setting this to 1 (For example if you want to
  356. # use another log analyzer).
  357. # This parameter is not used if PurgeLogFile=0
  358. # Change : Effective for new updates only
  359. # Possible values: 0 or 1
  360. # Default: 0
  361. #
  362. ArchiveLogRecords=0


  363. # Each time you run the update process, AWStats overwrite the 'historic file'
  364. # for the month (awstatsMMYYYY[.*].txt) with the updated one.
  365. # When write errors occurs (IO, disk full,...), this historic file can be
  366. # corrupted and must be deleted. Because this file contains information of all
  367. # past processed log files, you will loose old stats if removed. So you can
  368. # ask AWStats to save last non corrupted file in a .bak file. This file is
  369. # stored in "DirData" directory with other 'historic files'.
  370. # Change : Effective for new updates only
  371. # Possible values: 0 or 1
  372. # Default: 0
  373. #
  374. KeepBackupOfHistoricFiles=0


  375. # Default index page name for your web server.
  376. # Change : Effective for new updates only
  377. # Example: "index.php index.html default.html"
  378. # Default: "index.html"
  379. #
  380. DefaultFile="index.html"


  381. # Do not include access from clients that match following criteria.
  382. # If your log file contains IP adresses in host field, you must enter here
  383. # matching IP adresses criteria.
  384. # If DNS lookup is already done in your log file, you must enter here hostname
  385. # criteria, else enter ip address criteria.
  386. # The opposite parameter of "SkipHosts" is "OnlyHosts".
  387. # Note: Use space between each value. This parameter is not case sensitive.
  388. # Note: You can use regular expression values writing value with REGEX[value].
  389. # Change : Effective for new updates only
  390. # Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
  391. # Example: "localhost REGEX[^.*\.localdomain$]"
  392. # Default: ""
  393. #
  394. SkipHosts=""


  395. # Do not include access from clients with a user agent that match following
  396. # criteria. If you want to exclude a robot, you should update the robots.pm
  397. # file instead of this parameter.
  398. # The opposite parameter of "SkipUserAgents" is "OnlyUserAgents".
  399. # Note: Use space between each value. This parameter is not case sensitive.
  400. # Note: You can use regular expression values writing value with REGEX[value].
  401. # Change : Effective for new updates only
  402. # Example: "konqueror REGEX[ua_test_v\d\.\d]"
  403. # Default: ""
  404. #
  405. SkipUserAgents=""


  406. # Use SkipFiles to ignore access to URLs that match one of following entries.
  407. # You can enter a list of not important URLs (like framed menus, hidden pages,
  408. # etc...) to exclude them from statistics. You must enter here exact relative
  409. # URL as found in log file, or a matching REGEX value.
  410. # For example, to ignore /badpage.html, just add "/badpage.html". To ignore
  411. # all pages in a particular directory, add "REGEX[^\/directorytoexclude]".
  412. # The opposite parameter of "SkipFiles" is "OnlyFiles".
  413. # Note: Use space between each value. This parameter is or not case sensitive
  414. # depending on URLNotCaseSensitive parameter.
  415. # Note: You can use regular expression values writing value with REGEX[value].
  416. # Change : Effective for new updates only
  417. # Example: "/badpage.html REGEX[^\/excludedirectory]"
  418. # Default: ""
  419. #
  420. SkipFiles=""


  421. # Include in stats, only accesses from hosts that match one of following
  422. # entries. For example, if you want AWStats to filter access to keep only
  423. # stats for visits from particular hosts, you can add those hosts names in
  424. # this parameter.
  425. # If DNS lookup is already done in your log file, you must enter here hostname
  426. # criteria, else enter ip address criteria.
  427. # The opposite parameter of "OnlyHosts" is "SkipHosts".
  428. # Note: Use space between each value. This parameter is not case sensitive.
  429. # Note: You can use regular expression values writing value with REGEX[value].
  430. # Change : Effective for new updates only
  431. # Example: "127.0.0.1 REGEX[^192\.168\.] REGEX[^10\.]"
  432. # Default: ""
  433. #
  434. OnlyHosts=""


  435. # Include in stats, only accesses from user agent that match one of following
  436. # entries. For example, if you want AWStats to filter access to keep only
  437. # stats for visits from particular browsers, you can add their user agents
  438. # string in this parameter.
  439. # The opposite parameter of "OnlyUserAgents" is "SkipUserAgents".
  440. # Note: Use space between each value. This parameter is not case sensitive.
  441. # Note: You can use regular expression values writing value with REGEX[value].
  442. # Change : Effective for new updates only
  443. # Example: "msie"
  444. # Default: ""
  445. #
  446. OnlyUserAgents=""


  447. # Include in stats, only accesses to URLs that match one of following entries.
  448. # For example, if you want AWStats to filter access to keep only stats that
  449. # match a particular string, like a particular directory, you can add this
  450. # directory name in this parameter.
  451. # The opposite parameter of "OnlyFiles" is "SkipFiles".
  452. # Note: Use space between each value. This parameter is or not case sensitive
  453. # depending on URLNotCaseSensitive parameter.
  454. # Note: You can use regular expression values writing value with REGEX[value].
  455. # Change : Effective for new updates only
  456. # Example: "REGEX[marketing_directory] REGEX[office\/.*\.(csv|sxw)$]"
  457. # Default: ""
  458. #
  459. OnlyFiles=""


  460. # Add here a list of kind of url (file extension) that must be counted as
  461. # "Hit only" and not as a "Hit" and "Page/Download". You can set here all
  462. # images extensions as they are hit downloaded that must be counted but they
  463. # are not viewed pages. URLs with such extensions are not included in the TOP
  464. # Pages/URL report.
  465. # Note: If you want to exclude particular URLs from stats (No Pages and no
  466. # Hits reported), you must use SkipFiles parameter.
  467. # Change : Effective for new updates only
  468. # Example: "css js class gif jpg jpeg png bmp ico zip arj gz z wav mp3 wma mpg"
  469. # Example: ""
  470. # Default: "css js class gif jpg jpeg png bmp ico"
  471. #
  472. NotPageList="css js class gif jpg jpeg png bmp ico"


  473. # By default, AWStats considers that records found in web log file are
  474. # successful hits if HTTP code returned by server is a valid HTTP code (200
  475. # and 304). Any other code are reported in HTTP status chart.
  476. # Note that HTTP 'control codes', like redirection (302, 305) are not added by
  477. # default in this list as they are not pages seen by a visitor but are
  478. # protocol exchange codes to tell the browser to ask another page. Because
  479. # this other page will be counted and seen with a 200 or 304 code, if you
  480. # add such codes, you will have 2 pages viewed reported for only one in facts.
  481. # Change : Effective for new updates only
  482. # Example: "200 304 302 305"
  483. # Default: "200 304"
  484. #
  485. ValidHTTPCodes="200 304"


  486. # By default, AWStats considers that records found in mail log file are
  487. # successful mail transfers if field that represent return code in analyzed
  488. # log file match values defined by this parameter.
  489. # Change : Effective for new updates only
  490. # Example: "1 250 200"
  491. # Default: "1 250"
  492. #
  493. ValidSMTPCodes="1 250"


  494. # Some web servers on some Operating systems (IIS-Windows) considers that a
  495. # login with same value but different case are the same login. To tell AWStats
  496. # to also considers them as one, set this parameter to 1.
  497. # Change : Effective for new updates only
  498. # Possible values: 0 or 1
  499. # Default: 0
  500. #
  501. AuthenticatedUsersNotCaseSensitive=0


  502. # Some web servers on some Operating systems (IIS-Windows) considers that two
  503. # URLs with same value but different case are the same URL. To tell AWStats to
  504. # also considers them as one, set this parameter to 1.
  505. # Change : Effective for new updates only
  506. # Possible values: 0 or 1
  507. # Default: 0
  508. #
  509. URLNotCaseSensitive=0


  510. # Keep or remove the anchor string you can find in some URLs.
  511. # Change : Effective for new updates only
  512. # Possible values: 0 or 1
  513. # Default: 0
  514. #
  515. URLWithAnchor=0


  516. # In URL links, "?" char is used to add parameter's list in URLs. Syntax is:
  517. # /mypage.html?param1=value1&m2=value2
  518. # However, some servers/sites use also others chars to isolate dynamic part of
  519. # their URLs. You can complete this list with all such characters.
  520. # Change : Effective for new updates only
  521. # Example: "?;,"
  522. # Default: "?;"
  523. #
  524. URLQuerySeparators="?;"


  525. # Keep or remove the query string to the URL in the statistics for individual
  526. # pages. This is primarily used to differentiate between the URLs of dynamic
  527. # pages. If set to 1, mypage.html?id=x and mypage.html?id=y are counted as two
  528. # different pages.
  529. # Warning, when set to 1, memory required to run AWStats is dramatically
  530. # increased if you have a lot of changing URLs (for example URLs with a random
  531. # id inside). Such web sites should not set this option to 1 or use seriously
  532. # the next parameter URLWithQueryWithOnlyFollowingParameters (or eventually
  533. # URLWithQueryWithoutFollowingParameters).
  534. # Change : Effective for new updates only
  535. # Possible values:
  536. # 0 - URLs are cleaned from the query string (ie: "/mypage.html")
  537. # 1 - Full URL with query string is used     (ie: "/mypage.html?p=x&q=y")
  538. # Default: 0
  539. #
  540. URLWithQuery=0


  541. # When URLWithQuery is on, you will get the full URL with all parameters in
  542. # URL reports. But among thoose parameters, sometimes you don't need a
  543. # particular parameter because it does not identify the page or because it's
  544. # a random ID changing for each access even if URL points to same page. In
  545. # such cases, it is higly recommanded to ask AWStats to keep only parameters
  546. # you need (if you know them) before counting, manipulating and storing URL.
  547. # Enter here list of wanted parameters. For example, with "param", one hit on
  548. # /mypage.cgi?param=abc&id=Yo4UomP9d  and  /mypage.cgi?param=abc&id=Mu8fdxl3r
  549. # will be reported as 2 hits on /mypage.cgi?param=abc
  550. # This parameter is not used when URLWithQuery is 0 and can't be used with
  551. # URLWithQueryWithoutFollowingParameters.
  552. # Change : Effective for new updates only
  553. # Example: "param"
  554. # Default: ""
  555. #
  556. URLWithQueryWithOnlyFollowingParameters=""


  557. # When URLWithQuery is on, you will get the full URL with all parameters in
  558. # URL reports. But among thoose parameters, sometimes you don't need a
  559. # particular parameter because it does not identify the page or because it's
  560. # a random ID changing for each access even if URL points to same page. In
  561. # such cases, it is higly recommanded to ask AWStats to remove such parameters
  562. # from the URL before counting, manipulating and storing URL. Enter here list
  563. # of all non wanted parameters. For example if you enter "id", one hit on
  564. # /mypage.cgi?param=abc&id=Yo4UomP9d  and  /mypage.cgi?param=abc&id=Mu8fdxl3r
  565. # will be reported as 2 hits on /mypage.cgi?param=abc
  566. # This parameter is not used when URLWithQuery is 0 and can't be used with
  567. # URLWithQueryWithOnlyFollowingParameters.
  568. # Change : Effective for new updates only
  569. # Example: "PHPSESSID jsessionid"
  570. # Default: ""
  571. #
  572. URLWithQueryWithoutFollowingParameters=""


  573. # Keep or remove the query string to the referrer URL in the statistics for
  574. # external referrer pages. This is used to differentiate between the URLs of
  575. # dynamic referrer pages. If set to 1, mypage.html?id=x and mypage.html?id=y
  576. # are counted as two different referrer pages.
  577. # Change : Effective for new updates only
  578. # Possible values:
  579. # 0 - Referrer URLs are cleaned from the query string (ie: "/mypage.html")
  580. # 1 - Full URL with query string is used      (ie: "/mypage.html?p=x&q=y")
  581. # Default: 0
  582. #
  583. URLReferrerWithQuery=0


  584. # AWStats can detect setup problems or show you important informations to have
  585. # a better use. Keep this to 1, except if AWStats says you can change it.
  586. # Change : Effective immediatly
  587. # Possible values: 0 or 1
  588. # Default: 1
  589. #
  590. WarningMessages=1


  591. # When an error occurs, AWStats output a message related to errors. If you
  592. # want (in most cases for security reasons) to have no error messages, you
  593. # can set this parameter to your personalized generic message.
  594. # Change : Effective immediatly
  595. # Example: "An error occured. Contact your Administrator"
  596. # Default: ""
  597. #
  598. ErrorMessages=""


  599. # AWStat can be run with debug=x parameter to ouput various informations
  600. # to help in debugging or solving troubles. If you want (in most cases for
  601. # security reasons) to disable debugging, set this parameter to 0.
  602. # Change : Effective immediatly
  603. # Possible values: 0 or 1
  604. # Default: 1
  605. #
  606. DebugMessages=1


  607. # To help you to detect if your log format is good, AWStats report an error
  608. # if all the first NbOfLinesForCorruptedLog lines have a format that does not
  609. # match the LogFormat parameter.
  610. # However, some worm virus attack on your web server can result in a very high
  611. # number of corrupted lines in your log. So if you experience awstats stop
  612. # because of bad virus records at the beginning of your log file, you can
  613. # increase this parameter (very rare).
  614. # Change : Effective for new updates only
  615. # Default: 50
  616. #
  617. NbOfLinesForCorruptedLog=50


  618. # For some particular integration needs, you may want to have CGI links to
  619. # point to another script than awstats.pl.
  620. # Use the name of this script in WrapperScript parameter.
  621. # Change : Effective immediatly
  622. # Example: "awstatslauncher.pl"
  623. # Default: ""
  624. #
  625. WrapperScript=""


  626. # DecodeUA must be set to 1 if you use Roxen web server. This server converts
  627. # all spaces in user agent field into %20. This make the AWStats robots, os
  628. # and browsers detection fail in some cases. Just change it to 1 if and only
  629. # if your web server is Roxen.
  630. # Change : Effective for new updates only
  631. # Possible values: 0 or 1
  632. # Default: 0
  633. #
  634. DecodeUA=0


  635. # MiscTrackerUrl can be used to make AWStats able to detect some miscellanous
  636. # things, that can not be tracked on other way like:
  637. # - Screen size
  638. # - Color depth
  639. # - Java enabled
  640. # - Macromedia Director plugin
  641. # - Macromedia Shockwave plugin
  642. # - Realplayer G2 plugin
  643. # - QuickTime plugin
  644. # - Mediaplayer plugin
  645. # - Acrobat PDF plugin
  646. # To enable all this features, you must copy the awstats_misc_tracker.js file
  647. # into a /js/ directory stored in your web document root and add the following
  648. # HTML code at the end of your index page (before </BODY>;) :
  649. # <script language=javascript src="/js/awstats_misc_tracker.js">;</script>;
  650. # If code is not added in index page, all this detection capabilities will be
  651. # disabled. You must also check that ShowScreenSizeStats and ShowMiscStats
  652. # parameters are set to 1 to make results appear in report page.
  653. # If you want to use another directory than /js/, you must also change the
  654. # awstatsmisctrackerurl variable into the awstats_misc_tracker.js file.
  655. # Change : Effective for new updates only.
  656. # Possible value: Full URL of javascript tracker file added in HTML code
  657. # Default: "/js/awstats_misc_tracker.js"
  658. #
  659. MiscTrackerUrl="/js/awstats_misc_tracker.js"



  660. #-----------------------------------------------------------------------------
  661. # OPTIONAL ACCURACY SETUP SECTION (Not required but increase AWStats features)
  662. #-----------------------------------------------------------------------------

  663. # Following values allows you to define accuracy of AWStats entities (robots,
  664. # browsers, os, referers, file types) detection.
  665. # It might be a good idea for large web sites or ISP that provides AWStats to
  666. # high number of customers, to set this parameter to 1 (or 0), instead of 2.
  667. # Possible values:
  668. #  0 = No detection,
  669. #  1 = Medium/Standard detection
  670. #  2 = Full detection
  671. # Change : Effective for new updates only
  672. # Default: 2 (0 for LevelForWormsDetection)
  673. #
  674. LevelForBrowsersDetection=0         # 0 disables Browsers detection.
  675.                                     # 2 reduces AWStats speed by 2%
  676. LevelForOSDetection=0               # 0 disables OS detection.
  677.                                     # 2 reduces AWStats speed by 3%
  678. LevelForRefererAnalyze=0            # 0 disables Origin detection.
  679.                                     # 2 reduces AWStats speed by 14%
  680. LevelForRobotsDetection=0           # 0 disables Robots detection.
  681.                                     # 2 reduces AWStats speed by 2.5%
  682. LevelForSearchEnginesDetection=0    # 0 disables Search engines detection.
  683.                                     # 2 reduces AWStats speed by 9%
  684. LevelForKeywordsDetection=2         # 0 disables Keyphrases/Keywords detection.
  685.                                     # 2 reduces AWStats speed by 1%
  686. LevelForFileTypesDetection=0       # 0 disables File types detection.
  687.                                     # 2 reduces AWStats speed by 1%
  688. LevelForWormsDetection=0            # 0 disables Worms detection.
  689.                                     # 2 reduces AWStats speed by 15%



  690. #-----------------------------------------------------------------------------
  691. # OPTIONAL APPEARANCE SETUP SECTION (Not required but increase AWStats features)
  692. #-----------------------------------------------------------------------------

  693. # When you use AWStats as a CGI, you can have the reports shown in HTML frames.
  694. # Frames are only available for report viewed dynamically. When you build
  695. # pages from command line, this option is not used and no frames are built.
  696. # Possible values: 0 or 1
  697. # Default: 1
  698. #
  699. UseFramesWhenCGI=1


  700. # This parameter ask your browser to open detailed reports into a different
  701. # window than the main page.
  702. # Possible values:
  703. # 0 - Open all in same browser window
  704. # 1 - Open detailed reports in another window except if using frames
  705. # 2 - Open always in a different window even if reports are framed
  706. # Default: 1
  707. #
  708. DetailedReportsOnNewWindows=1


  709. # You can add, in the HTML report page, a cache lifetime (in seconds) that
  710. # will be returned to browser in HTTP header answer by server.
  711. # This parameter is not used when report are built with -staticlinks option.
  712. # Example: 3600
  713. # Default: 0
  714. #
  715. Expires=0


  716. # To avoid too large web pages, you can ask AWStats to limit number of rows of
  717. # all reported charts to this number when no other limit apply.
  718. # Default: 1000
  719. #
  720. MaxRowsInHTMLOutput=1000


  721. # Set your primary language.
  722. # Possible value:
  723. #  Albanian=al, Bosnian=ba, Bulgarian=bg, Catalan=ca,
  724. #  Chinese (Taiwan)=tw, Chinese (Simpliefied)=cn, Czech=cz, Danish=dk,
  725. #  Dutch=nl, English=en, Estonian=et, Euskara=eu, Finnish=fi,
  726. #  French=fr, Galician=gl, German=de, Greek=gr, Hebrew=he, Hungarian=hu,
  727. #  Icelandic=is, Indonesian=id, Italian=it, Japanese=jp, Korean=kr,
  728. #  Latvian=lv, Norwegian (Nynorsk)=nn, Norwegian (Bokmal)=nb, Polish=pl,
  729. #  Portuguese=pt, Portuguese (Brazilian)=br, Romanian=ro, Russian=ru,
  730. #  Serbian=sr, Slovak=sk,  Spanish=es, Swedish=se, Turkish=tr, Ukrainian=ua,
  731. #  Welsh=wlk.
  732. #  First available language accepted by browser=auto
  733. # Default: "auto"
  734. #
  735. Lang="auto"


  736. # Set the location of language files.
  737. # Example: "/usr/share/awstats/lang"
  738. # Default: "./lang" (means lang directory is in same location than awstats.pl)
  739. #
  740. DirLang="./lang"


  741. # You choose here which reports you want to see in the main page and what you
  742. # want to see in those reports.
  743. # Possible values:
  744. #  0  - Topic is not shown at all
  745. #  1  - Report is shown with default informations
  746. # XYZ - Report is shown with only informations defined by code X,Y,Z...
  747. #       X,Y,Z... are code letters among the following:
  748. #        U = Unique visitors
  749. #        V = Visits
  750. #        P = Number of pages
  751. #        H = Number of hits (or mails)
  752. #        B = Bandwith (or total mail size for mail logs)
  753. #        L = Last access date
  754. #        E = Entry pages
  755. #        X = Exit pages
  756. #        C = Web compression (mod_gzip,mod_deflate)
  757. #        M = Average mail size (mail logs)
  758. #
  759. # Show menu header with report links
  760. # Default: 1, Possible codes: None
  761. ShowMenu=1                                       
  762. # Show monthly chart
  763. # Default: UVPHB, Possible codes: UVPHB
  764. ShowMonthStats=HB
  765. # Show days of month chart
  766. # Default: VPHB, Possible codes: VPHB
  767. ShowDaysOfMonthStats=HB
  768. # Show days of week chart
  769. # Default: PHB, Possible codes: PHB
  770. ShowDaysOfWeekStats=HB
  771. # Show hourly chart
  772. # Default: PHB, Possible codes: PHB
  773. ShowHoursStats=HB
  774. # Show domains/country chart
  775. # Default: PHB, Possible codes: PHB
  776. ShowDomainsStats=0
  777. # Show hosts chart
  778. # Default: PHBL, Possible codes: PHBL
  779. ShowHostsStats=HBL
  780. # Show authenticated users chart
  781. # Default: 0, Possible codes: PHBL
  782. ShowAuthenticatedUsers=0
  783. # Show robots chart
  784. # Default: HBL, Possible codes: HBL
  785. ShowRobotsStats=0
  786. # Show worms chart
  787. # Default: 0 (If set to 1, see also LevelForWormsDetection), Possible codes: HBL
  788. ShowWormsStats=0
  789. # Show email senders chart (For use when analyzing mail log files)
  790. # Default: 0, Possible codes: HBML
  791. ShowEMailSenders=HBML
  792. # Show email receivers chart (For use when analyzing mail log files)
  793. # Default: 0, Possible codes: HBML
  794. ShowEMailReceivers=HBML
  795. # Show session chart
  796. # Default: 1, Possible codes: None
  797. ShowSessionsStats=0
  798. # Show pages-url chart.
  799. # Default: PBEX, Possible codes: PBEX
  800. ShowPagesStats=0
  801. # Show file types chart.
  802. # Default: HB, Possible codes: HBC
  803. ShowFileTypesStats=0
  804. # Show file size chart (Not yet available)
  805. # Default: 1, Possible codes: None
  806. ShowFileSizesStats=0               
  807. # Show operating systems chart
  808. # Default: 1, Possible codes: None
  809. ShowOSStats=0
  810. # Show browsers chart
  811. # Default: 1, Possible codes: None
  812. ShowBrowsersStats=0
  813. # Show screen size chart
  814. # Default: 0 (If set to 1, see also MiscTrackerUrl), Possible codes: None
  815. ShowScreenSizeStats=0
  816. # Show origin chart
  817. # Default: PH, Possible codes: PH
  818. ShowOriginStats=0
  819. # Show keyphrases chart
  820. # Default: 1, Possible codes: None
  821. ShowKeyphrasesStats=0
  822. # Show keywords chart
  823. # Default: 1, Possible codes: None
  824. ShowKeywordsStats=0
  825. # Show misc chart
  826. # Default: a (See also MiscTrackerUrl parameter), Possible codes: ajdfrqwp
  827. ShowMiscStats=0
  828. # Show http errors chart
  829. # Default: 1, Possible codes: None
  830. ShowHTTPErrorsStats=0
  831. # Show smtp errors chart (For use when analyzing mail log files)
  832. # Default: 0, Possible codes: None
  833. ShowSMTPErrorsStats=1
  834. # Show the cluster report (Your LogFormat must contains the %cluster tag)
  835. # Default: 0, Possible codes: PHB
  836. ShowClusterStats=0


  837. # Some graphical reports are followed by the data array of values.
  838. # If you don't want this array (to reduce report size for example), you can
  839. # set thoose options to 0.
  840. # Possible values: 0 or 1
  841. # Default: 1
  842. #
  843. # Data array values for the ShowMonthStats report
  844. AddDataArrayMonthStats=1
  845. # Data array values for the ShowDaysOfMonthStats report
  846. AddDataArrayShowDaysOfMonthStats=1
  847. # Data array values for the ShowDaysOfWeekStats report
  848. AddDataArrayShowDaysOfWeekStats=1
  849. # Data array values for the ShowHoursStats report
  850. AddDataArrayShowHoursStats=1


  851. # In the Origin chart, you have stats on where your hits came from. You can
  852. # includes hits on pages that comes from pages of same sites in this chart.
  853. # Possible values: 0 or 1
  854. # Default: 0
  855. #
  856. IncludeInternalLinksInOriginSection=0


  857. # Following parameter can be used to choose maximum number of lines shown for
  858. # the particular following report.
  859. #
  860. # Stats by countries/domains
  861. MaxNbOfDomain = 10
  862. MinHitDomain  = 1
  863. # Stats by hosts
  864. MaxNbOfHostsShown = 10
  865. MinHitHost    = 1
  866. # Stats by authenticated users
  867. MaxNbOfLoginShown = 10
  868. MinHitLogin   = 1
  869. # Stats by robots
  870. MaxNbOfRobotShown = 10
  871. MinHitRobot   = 1
  872. # Stats by pages
  873. MaxNbOfPageShown = 10
  874. MinHitFile    = 1
  875. # Stats by OS
  876. MaxNbOfOsShown = 10
  877. MinHitOs      = 1
  878. # Stats by browsers
  879. MaxNbOfBrowsersShown = 10
  880. MinHitBrowser = 1
  881. # Stats by screen size
  882. MaxNbOfScreenSizesShown = 5
  883. MinHitScreenSize = 1
  884. # Stats by referers
  885. MaxNbOfRefererShown = 10
  886. MinHitRefer   = 1
  887. # Stats for keyphrases
  888. MaxNbOfKeyphrasesShown = 10
  889. MinHitKeyphrase = 1
  890. # Stats for keywords
  891. MaxNbOfKeywordsShown = 10
  892. MinHitKeyword = 1
  893. # Stats for sender or receiver emails
  894. MaxNbOfEMailsShown = 20
  895. MinHitEMail   = 1


  896. # Choose if you want the week report to start on sunday or monday
  897. # Possible values:
  898. # 0 - Week start on sunday
  899. # 1 - Week start on monday
  900. # Default: 1
  901. #
  902. FirstDayOfWeek=1


  903. # List of visible flags that links to other language translations.
  904. # See Lang parameter for list of allowed flag/language codes.
  905. # If you don't want any flag link, set ShowFlagLinks to "".
  906. # This parameter is used only if ShowMenu parameter is set to 1.
  907. # Possible values: "" or "language_codes_separated_by_space"
  908. # Example: "en es fr nl es"
  909. # Default: ""
  910. #
  911. ShowFlagLinks=""


  912. # Each URL, shown in stats report views, are links you can click.
  913. # Possible values: 0 or 1
  914. # Default: 1
  915. #
  916. ShowLinksOnUrl=1


  917. # When AWStats build HTML links in its report pages, it starts thoose link
  918. # with "http://". However some links might be HTTPS links, so you can enter
  919. # here the root of all your HTTPS links. If all your site is a SSL web site,
  920. # just enter "/".
  921. # This parameter is not used if ShowLinksOnUrl is 0.
  922. # Example: "/shopping"
  923. # Example: "/"
  924. # Default: ""
  925. #
  926. UseHTTPSLinkForUrl=""


  927. # Maximum length of URL part shown on stats page (number of characters).
  928. # This affects only URL visible text, link still work.
  929. # Default: 64
  930. #
  931. MaxLengthOfShownURL=64


  932. # You can enter HTML code that will be added at the top of AWStats reports.
  933. # Default: ""
  934. #
  935. HTMLHeadSection=""


  936. # You can enter HTML code that will be added at the end of AWStats reports.
  937. # Great to add advert ban.
  938. # Default: ""
  939. #
  940. HTMLEndSection=""


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


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


  953. # You can ask AWStats to use a particular CSS (Cascading Style Sheet) to
  954. # change its look. To create a style sheet, you can use samples provided with
  955. # AWStats in wwwroot/css directory.
  956. # Example: "/awstatscss/awstats_bw.css"
  957. # Example: "/css/awstats_bw.css"
  958. # Default: ""
  959. #
  960. StyleSheet=""


  961. # Those colors parameters can be used (if StyleSheet parameter is not used)
  962. # to change AWStats look.
  963. # Example: color_name="RRGGBB"        # RRGGBB is Red Green Blue components in Hex
  964. #
  965. color_Background="FFFFFF"                # Background color for main page (Default = "FFFFFF")
  966. color_TableBGTitle="CCCCDD"                # Background color for table title (Default = "CCCCDD")
  967. color_TableTitle="000000"                # Table title font color (Default = "000000")
  968. color_TableBG="CCCCDD"                        # Background color for table (Default = "CCCCDD")
  969. color_TableRowTitle="FFFFFF"        # Table row title font color (Default = "FFFFFF")
  970. color_TableBGRowTitle="ECECEC"        # Background color for row title (Default = "ECECEC")
  971. color_TableBorder="ECECEC"                # Table border color (Default = "ECECEC")
  972. color_text="000000"                                # Color of text (Default = "000000")
  973. color_textpercent="606060"                # Color of text for percent values (Default = "606060")
  974. color_titletext="000000"                # Color of text title within colored Title Rows (Default = "000000")
  975. color_weekend="EAEAEA"                        # Color for week-end days (Default = "EAEAEA")
  976. color_link="0011BB"                                # Color of HTML links (Default = "0011BB")
  977. color_hover="605040"                        # Color of HTML on-mouseover links (Default = "605040")
  978. color_u="FFAA66"                                # Background color for number of unique visitors (Default = "FFAA66")
  979. color_v="F4F090"                                # Background color for number of visites (Default = "F4F090")
  980. color_p="4477DD"                                # Background color for number of pages (Default = "4477DD")
  981. color_h="66DDEE"                                # Background color for number of hits (Default = "66DDEE")
  982. color_k="2EA495"                                # Background color for number of bytes (Default = "2EA495")
  983. color_s="8888DD"                                # Background color for number of search (Default = "8888DD")
  984. color_e="CEC2E8"                                # Background color for number of entry pages (Default = "CEC2E8")
  985. color_x="C1B2E2"                                # Background color for number of exit pages (Default = "C1B2E2")



  986. #-----------------------------------------------------------------------------
  987. # PLUGINS
  988. #-----------------------------------------------------------------------------

  989. # Add here all plugins file you want to load.
  990. # Plugin files must be .pm files stored in 'plugins' directory.
  991. # Uncomment LoadPlugin lines to enable a plugin after checking that perl
  992. # modules required by the plugin are installed.

  993. # Plugin: Tooltips
  994. # Perl modules required: None
  995. # Add some tooltips help on HTML report pages.
  996. # Note that enabled this kind of help will increased HTML report pages size,
  997. # so server load and bandwidth.
  998. #
  999. #LoadPlugin="tooltips"

  1000. # Plugin: DecodeUTFKeys
  1001. # Perl modules required: Encode and URI::Escape
  1002. # Allow AWStats to show correctly (in language charset) keywords/keyphrases
  1003. # strings even if they were UTF8 coded by the referer search engine.
  1004. #
  1005. #LoadPlugin="decodeutfkeys"

  1006. # Plugin: IPv6
  1007. # Perl modules required: Net::IP and Net::DNS
  1008. # This plugin gives AWStats capability to make reverse DNS lookup on IPv6
  1009. # addresses.
  1010. # Note: If you are interesting in having country report, you should use the
  1011. # geoipfree or geoip plugin instead of enabled reverse DNS lookup.
  1012. #
  1013. #LoadPlugin="ipv6"

  1014. # Plugin: HashFiles
  1015. # Perl modules required: Storable
  1016. # AWStats DNS cache files are read/saved as native hash files. This increase
  1017. # DNS cache files loading speed, above all for very large web sites.
  1018. #
  1019. #LoadPlugin="hashfiles"

  1020. # Plugin: GeoIPfree
  1021. # Perl modules required: Geo::IPfree version 0.2+ (from Graciliano M.P.)
  1022. # Country chart is built from an Internet IP-Country database.
  1023. # This plugin is useless for intranet only log files.
  1024. # Note: You must choose between using this plugin (need Perl Geo::IPfree module)
  1025. # or the GeoIP plugin (need Perl Geo::IP module from Maxmind).
  1026. # This plugin reduces AWStats speed of 10% !
  1027. #
  1028. #LoadPlugin="geoipfree"

  1029. # Plugin: GeoIP
  1030. # Perl modules required: Geo::IP or Geo::IP::PurePerl (from Maxmind)
  1031. # Country chart is built from an Internet IP-Country database.
  1032. # This plugin is useless for intranet only log files.
  1033. # Note: You must choose between using this plugin (need Perl Geo::IP module
  1034. # from Maxmind) or the GeoIPfree plugin (need Perl Geo::IPfree module).
  1035. # This plugin reduces AWStats speed of 10% !
  1036. #
  1037. #LoadPlugin="geoip"

  1038. # Plugin: UserInfo
  1039. # Perl modules required: None
  1040. # Add a text (Firtname, Lastname, Office Department, ...) in authenticated user
  1041. # reports for each login value.
  1042. # A text file called userinfo.myconfig.txt, with two fields (first is login,
  1043. # second is text to show, separated by a tab char) must be created in DirData
  1044. # directory.
  1045. #
  1046. #LoadPlugin="userinfo"

  1047. # Plugin: HostInfo
  1048. # Perl modules required: XWhois
  1049. # Add a column into host chart with a link to open a popup window that shows
  1050. # info on host (like whois records).
  1051. #
  1052. #LoadPlugin="hostinfo"

  1053. # Plugin: UrlAliases
  1054. # Perl modules required: None
  1055. # Add a text (Page title, description...) in URL reports before URL value.
  1056. # A text file called urlalias.myconfig.txt, with two fields (first is URL,
  1057. # second is text to show, separated by a tab char) must be created in DirData
  1058. # directory.
  1059. #
  1060. #LoadPlugin="urlalias"

  1061. # Plugin: TimeHiRes
  1062. # Perl modules required: Time::HiRes
  1063. # Time reported by -showsteps option is in millisecond. For debug purpose.
  1064. #
  1065. #LoadPlugin="timehires"               

  1066. # Plugin: TimeZone
  1067. # Perl modules required: Time::Local
  1068. # Allow AWStats to correct a bad timezone for user of some IIS that use
  1069. # GMT date in its log instead of local server time.
  1070. # This module is useless for Apache and most IIS version.
  1071. # This plugin reduces AWStats speed of 40% !!!!!!!
  1072. #
  1073. #LoadPlugin="timezone +2"

  1074. # Plugin: Rawlog
  1075. # Perl modules required: None
  1076. # This plugin adds a form in AWStats main page to allow users to see raw
  1077. # content of current log files. A filter is also available.
  1078. #
  1079. #LoadPlugin="rawlog"

  1080. # Plugin: GraphApplet
  1081. # Perl modules required: None
  1082. # Supported charts are built by a 3D graphic applet.
  1083. #
  1084. #LoadPlugin="graphapplet /awstatsclasses"                                # EXPERIMENTAL FEATURE



  1085. #-----------------------------------------------------------------------------
  1086. # EXTRA SECTIONS
  1087. #-----------------------------------------------------------------------------

  1088. # You can define your own charts, you choose here what are rows and columns
  1089. # keys. This feature is particularly usefull for marketing purpose, tracking
  1090. # products orders for example.
  1091. # For this, edit all parameters of Extra section. Each set of parameter is a
  1092. # different chart. For several charts, duplicate section changing the number.
  1093. # Note: Each Extra section reduces AWStats speed by 8%.
  1094. #
  1095. # WARNING: A wrong setup of Extra section might result in too large arrays
  1096. # that will consume all your memory, making AWStats unusable after several
  1097. # updates, so be sure to setup it correctly.
  1098. # In most cases, you don't need this feature.
  1099. #
  1100. # ExtraSectionNameX is title of your personalized chart.
  1101. # ExtraSectionCodeFilterX is list of codes the record code field must match.
  1102. #   Put an empty string for no test on code.
  1103. # ExtraSectionConditionX are conditions you can use to count or not the hit,
  1104. #   Use one of the field condition (URL,QUERY_STRING,REFERER,UA,HOST)
  1105. #   and a regex to match, after a coma. Use "|" for "OR".
  1106. # ExtraSectionFirstColumnTitleX is the first column title of the chart.
  1107. # ExtraSectionFirstColumnValuesX is a Regex string to tell AWStats in which
  1108. #   field to extract value from (URL,QUERY_STRING,REFERER,UA,HOST)
  1109. #   and how to extract the value (using regex syntax). Each different value
  1110. #   found will appear in first column of report on a different row. Be sure
  1111. #   that list of different possible values will not grow indefinitely.
  1112. # ExtraSectionFirstColumnFormatX is the string used to write value.
  1113. # ExtraSectionStatTypesX are things you want to count. You can use standard
  1114. #   code letters (P for pages,H for hits,B for bandwidth,L for last access).
  1115. # ExtraSectionAddAverageRowX add a row at bottom of chart with average values.
  1116. # ExtraSectionAddSumRowX add a row at bottom of chart with sum values.
  1117. # MaxNbOfExtraX is maximum number of rows shown in chart.
  1118. # MinHitExtraX is minimum number of hits required to be shown in chart.
  1119. #

  1120. # Example to report the 20 products the most ordered by "order.cgi" script
  1121. #ExtraSectionName1="Product orders"
  1122. #ExtraSectionCodeFilter1="200 304"
  1123. #ExtraSectionCondition1="URL,\/cgi\-bin\/order\.cgi|URL,\/cgi\-bin\/order2\.cgi"
  1124. #ExtraSectionFirstColumnTitle1="Product ID"
  1125. #ExtraSectionFirstColumnValues1="QUERY_STRING,productid=([^&]+)"
  1126. #ExtraSectionFirstColumnFormat1="%s"
  1127. #ExtraSectionStatTypes1=PL
  1128. #ExtraSectionAddAverageRow1=0
  1129. #ExtraSectionAddSumRow1=1
  1130. #MaxNbOfExtra1=20
  1131. #MinHitExtra1=1



  1132. #-----------------------------------------------------------------------------
  1133. # INCLUDES
  1134. #-----------------------------------------------------------------------------

  1135. # You can include other config files using the directive with the name of the
  1136. # config file.
  1137. # This is particularly usefull for users who have a lot of virtual servers, so
  1138. # a lot of config files and want to maintain common values in only one file.
  1139. # Note that when a variable is defined both in a config file and in an
  1140. # included file, AWStats will use the last value read for parameters that
  1141. # contains one value and AWStats will concat all values from both files for
  1142. # parameters that are lists of value.
  1143. #

  1144. #Include ""

复制代码

8、修改红色字体部分为你自己的实际配置,配置完成后不要忘记更新一下
  ./awstats.pl -update -config=主机虚拟名 -lang=cn

9、http://IP/cgi-bin/awstats/awstats.pl?config=主机虚拟名

演示地址:偶没有公网IP,只能界图大家看看了,是不是很不错?
最后不要忘记定期更新一下,执行这个就可以了
$ crontab -e
  ./awstats.pl -update -config=主机虚拟名 -lang=cn
如果大家安装有遇到了问题,欢迎讨论!

test2.jpg (31.15 KB, 下载次数: 23)

test2.jpg

test1.jpg (41.5 KB, 下载次数: 14)

awstats的截图

awstats的截图

论坛徽章:
0
2 [报告]
发表于 2004-10-19 16:12 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

LogFile="perl /home//awstats-6.1/tools/maillogconvert.pl standard < /var/log/Qmaillog |"


应该对 supervise 产生的日志无法统计

论坛徽章:
0
3 [报告]
发表于 2004-10-19 21:47 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

原帖由 "海鹰" 发表:


应该对 supervise 产生的日志无法统计


这个主要是用来统计Apache、IIS、Realmedia 、Ftp、Qmail、Sendmail、Postfix等等的。
必要的日志分析还是很重要的!   

论坛徽章:
0
4 [报告]
发表于 2004-10-19 23:21 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

原帖由 "海鹰" 发表:


应该对 supervise 产生的日志无法统计


multilog产生的日志应该不能直接统计
不过可以用tai64nlocal转换timestamps后应该可以统计

我觉得不需要awstats
qmailanalog就很好呀
专为qmail设计




--

论坛徽章:
0
5 [报告]
发表于 2004-10-20 07:36 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

目前能直接支持 supervise 日志的,就只有这个

http://www.dmail-x.com/maillog/

论坛徽章:
0
6 [报告]
发表于 2004-10-20 09:47 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

其实用哪种工具只是个人爱好问题,不过我觉得这个界面风格很不错!挺喜欢的。

论坛徽章:
0
7 [报告]
发表于 2004-10-21 12:25 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

有没有人是用isoqlog分析每天有多少邮件的发送和接受,这个应该可以统计每天具体的每个人的发送和接受邮件的数量吧!

论坛徽章:
6
数据库技术版块每日发帖之星
日期:2015-10-11 06:20:00数据库技术版块每日发帖之星
日期:2015-10-12 06:20:00数据库技术版块每日发帖之星
日期:2015-10-15 06:20:00数据库技术版块每日发帖之星
日期:2015-10-30 06:20:00综合交流区版块每月发帖之星
日期:2015-12-02 14:59:01数据库技术版块每日发帖之星
日期:2015-12-15 06:20:00
8 [报告]
发表于 2004-10-21 16:41 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

不错,顶一下!

论坛徽章:
0
9 [报告]
发表于 2004-10-21 16:49 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

原帖由 "海鹰" 发表:
目前能直接支持 supervise 日志的,就只有这个

http://www.dmail-x.com/maillog/


要支持楼上的,改参数就可以了!没有问题的把 standard 改成 vadmin就可以支持multlog了!还有isoqlog为什么总是把不同天数的邮件计算在同一天?
例如:1号有2封,2号有3封,3号有5封,但是显示的时候变成了1号2封,2号4封,3号10封了!总之,就是不能区分maillog里面不同天数的邮件!

论坛徽章:
0
10 [报告]
发表于 2004-10-21 17:34 |只看该作者

AWSTATS,qmail日志统计工具安装过程(附图)!

唉。免费的东西就是这样的啦
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP