Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 297
- Log:
Updated to AWStats 7.0.
- Author:
- rool
- Date:
- Fri Mar 18 13:33:29 +0000 2011
- Size:
- 14536 Bytes
- Properties:
- Property svn:executable is set
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
2 | <html><head> |
3 | <meta name="description" content="AWStats Documentation - Other tools"> |
4 | <meta name="keywords" content="awstats, awstat, tools, utilities, awstats_buildstaticpages, logresolvemerge, common2combined"> |
5 | <meta name="robots" content="index,follow"> |
6 | <meta name="title" content="AWStats Documentation - Other tools"> |
7 | |
8 | <title>AWStats Documentation - Other tools</title><link rel="stylesheet" href="styles.css" type="text/css"><!-- $Revision: 1.49 $ - $Author: eldy $ - $Date: 2010/06/22 21:35:24 $ --></head> |
9 | |
10 | <body topmargin="10" leftmargin="5"> |
11 | |
12 | |
13 | <table style="font-family: arial,helvetica,verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" width="100%"> |
14 | |
15 | <!-- Large --> |
16 | <tbody><tr style="font-family: arial,helvetica,verdana; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: normal;"> |
17 | <td align="center" bgcolor="#9999cc"><a href="/"><img src="images/awstats_logo4.png" border="0"></a></td> |
18 | <td align="center" bgcolor="#9999cc"> |
19 | <br> |
20 | <font style="font-family: arial,helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 16pt; line-height: normal; font-size-adjust: none; font-stretch: normal;" color="#eeeeff"><b>AWStats logfile analyzer 7.0 Documentation</b></font><br> |
21 | <br> |
22 | </td> |
23 | <td align="center" bgcolor="#9999cc"> |
24 | |
25 | </td> |
26 | </tr> |
27 | |
28 | </tbody></table> |
29 | |
30 | |
31 | <br><br><h1 style="font-family: arial,helvetica,sans-serif; font-style: normal; font-variant: normal; font-weight: normal; font-size: 26px; line-height: normal; font-size-adjust: none; font-stretch: normal;">Other utilities</h1> |
32 | |
33 | <br> |
34 | This is a list of other tools provided with AWStats.<br> |
35 | All those tools are available in <b>tools</b> directory of AWStats distribution.<br> |
36 | <br><br> |
37 | |
38 | <!-- |
39 | <br> |
40 | <br><a name="awstats_configure"><H2 style="font: 18px arial,helvetica,sans-serif color: #606060"><u>awstats_configure.pl</u></H2></a> |
41 | <br>This script creates one config file for each web servers provided by Apache. |
42 | <br>After running this tool, AWStats can immediatly be used.<br> |
43 | <br> |
44 | <br> This tool is not yet available... |
45 | |
46 | <br> |
47 | <br> |
48 | --> |
49 | |
50 | <br> |
51 | <br><a name="awstats_updateall"><h2 style=""><u>awstats_updateall.pl</u></h2></a> |
52 | <br>awstats_updateall launches update process for all AWStats config files (except |
53 | <br>awstats.model.conf) found in a particular directory, so you can easily setup a |
54 | <br>cron/scheduler job. The scanned directory is by default /etc/awstats. |
55 | <br> |
56 | <br>Usage: awstats_updateall.pl now [options] |
57 | <br> |
58 | <br>Where options are: |
59 | <br> -awstatsprog=pathtoawstatspl |
60 | <br> -configdir=confdirtoscan |
61 | |
62 | <br> |
63 | <br> |
64 | |
65 | <br> |
66 | <br><a name="awstats_buildstaticpages"><h2 style=""><u>awstats_buildstaticpages.pl</u></h2></a> |
67 | <br>awstats_buildstaticpages allows you to launch AWStats with -staticlinks option |
68 | <br>to build all possible pages allowed by AWStats -output option. |
69 | <br> |
70 | <br>Usage: |
71 | <br>awstats_buildstaticpages.pl (awstats_options) [awstatsbuildstaticpages_options] |
72 | <br> |
73 | <br> where awstats_options are any option known by AWStats |
74 | <br> -config=configvalue is value for -config parameter (REQUIRED) |
75 | <br> -update option used to update statistics before to generate pages |
76 | <br> -lang=LL to output a HTML report in language LL (en,de,es,fr,...) |
77 | <br> -month=MM to output a HTML report for an old month=MM |
78 | <br> -year=YYYY to output a HTML report for an old year=YYYY |
79 | <br> |
80 | <br> and awstatsbuildstaticpages_options can be |
81 | <br> -awstatsprog=pathtoawstatspl gives AWStats software (awstats.pl) path |
82 | <br> -dir=outputdir to set output directory for generated pages |
83 | <br> -builddate=%YY%MM%DD Used to add build date in built pages filenames |
84 | <br> -staticlinksext=xxx For pages with .xxx extension instead of .html |
85 | <br> -buildpdf[=pathtohtmldoc] Build a PDF file after building HTML pages. |
86 | <br> Output directory must contains icon directory |
87 | <br> when this option is used (need 'htmldoc'). |
88 | <br> |
89 | <br>New versions and FAQ at http://awstats.sourceforge.net |
90 | |
91 | <br> |
92 | <br> |
93 | |
94 | <br> |
95 | <br><a name="logresolvemerge"><h2 style=""><u>logresolvemerge.pl</u></h2></a> |
96 | logresolvemerge allows you to get one unique output log file, sorted on date,<br>built from particular sources:<br> - It can read several input log files,<br> - It can read .gz/.bz2 log files,<br> - It can also makes a fast reverse DNS lookup to replace<br> all IP addresses into host names in resulting log file.<br>logresolvemerge comes with ABSOLUTELY NO WARRANTY. It's a free software<br>distributed with a GNU General Public License (See COPYING.txt file).<br>logresolvemerge is part of AWStats but can be used alone as a log merger<br>or resolver before using any other log analyzer.<br><br>Usage:<br> logresolvemerge.pl [options] file<br> logresolvemerge.pl [options] file1 ... filen<br> logresolvemerge.pl [options] *.*<br> perl logresolvemerge.pl [options] *.* > newfile<br>Options:<br> -dnslookup make a reverse DNS lookup on IP adresses<br> -dnslookup=n same with a n parallel threads instead of serial requests<br> -dnscache=file make DNS lookup from cache file first before network lookup<br> -showsteps print on stderr benchmark information every 8192 lines<br> -addfilenum if used with several files, file number can be added in first<br> -addfilename if used with several files, file name can be added in first<br> |
97 | field of output file. This can be used to add a cluster id<br> |
98 | when log files come from several load balanced computers.<br> -stoponfirsteof Stop processing when any logfile reaches end-of-file.<br> -printfields For IIS or W3C logs, prints the latest field header for<br> |
99 | the currentlog file when switching between log file entries<br> |
100 | so that the parsercan automatically determine which fields<br> are avaiable.<br> -ignoremissing will not fail if a log file is missing<br><br>This runs logresolvemerge in command line to open one or several<br>server log files to merge them (sorted on date) and/or to make a reverse<br>DNS lookup (if asked). The result log file is sent on standard output.<br>Note: logresolvemerge is not a 'sort' tool to sort one file. It's a<br>software able to output sorted log records (with a reverse DNS lookup<br>included or not) even if log records are dispatched in several files.<br>Each of thoose files must be already independently sorted itself<br>(but that is the case in all web server log files). So you can use it<br>for load balanced log files or to group several old log files.<br><br>Don't forget that the main goal of logresolvemerge is to send log records to<br>a log analyzer in a sorted order without merging files on disk (NO NEED<br>OF DISK SPACE AT ALL) and without loading files into memory (NO NEED<br>OF MORE MEMORY). Choose of output records is done on the fly.<br><br>So logresolvemerge is particularly usefull when you want to output several<br>and/or large log files in a fast process, with no use of disk or<br>more memory, and in a chronological order through a pipe (to be used by a log<br>analyzer).<br><br>Note: If input records are not 'exactly' sorted but 'nearly' sorted (this<br>occurs with heavy servers), this is not a problem, the output will also<br>be 'nearly' sorted but a few log analyzers (like AWStats) knowns how to deal<br>with such logs.<br><br>WARNING: If log files are old MAC text files (lines ended with CR char), you<br>can't run this tool on Win or Unix platforms.<br><br>WARNING: Because of memory holes in ActiveState Perl version, use another<br>Perl interpreter if you need to process large log files.<br><br>Now supports/detects:<br> Automatic detection of log format<br> Files can be .gz/.bz2 files if zcat/bzcat tools are available in PATH.<br> Multithreaded reverse DNS lookup (several parallel requests) with Perl 5.8+.<br>New versions and FAQ at http://awstats.sourceforge.net<br> |
101 | <br> |
102 | |
103 | <br> |
104 | <br><a name="maillogconvert"><h2 style=""><u>maillogconvert.pl</u></h2></a> |
105 | <br>maillogconvert is mail log preprocessor that convert a mail log file (from |
106 | <br>postfix, sendmail or qmail servers) into a human readable format. |
107 | <br>The output format is also ready to be used by a log analyzer, like AWStats. |
108 | <br> |
109 | <br>Usage: |
110 | <br> perl maillogconvert.pl [standard|vadmin] [year] < logfile > output |
111 | <br> |
112 | <br>The first parameter specifies what format the mail logfile is : |
113 | <br> standard - logfile is standard postfix,sendmail,qmail or mdaemon log format |
114 | <br> vadmin - logfile is qmail log format with vadmin multi-host support |
115 | <br> |
116 | <br>The second parameter specifies what year to timestamp logfile with, if current |
117 | <br>year is not the correct one (ie. 2002). Always use 4 digits. If not specified, |
118 | <br>current year is used. |
119 | <br> |
120 | <br>If no output is specified, it goes to the console (stdout). |
121 | |
122 | <br>For example, the following sample from postfix mail log server: |
123 | <br> |
124 | <i> |
125 | <br># 1 Mail fromuser@aol.com -> touser@toserver.com, forward touser@toserver.com -> touser@mainserver.com |
126 | <br>Jan 01 07:27:31 apollon postfix/smtpd[1684]: connect from remt30.cluster1.charter.net[209.225.8.40] |
127 | <br>Jan 01 07:27:32 apollon postfix/smtpd[1684]: 2BC793B8A4: client=remt30.cluster1.charter.net[209.225.8.40] |
128 | <br>Jan 01 07:27:32 apollon postfix/cleanup[1687]: 2BC793B8A4: message-id=<36027278@vneka> |
129 | <br>Jan 01 07:27:32 apollon postfix/qmgr[13860]: 2BC793B8A4: from=<fromuser @aol.com="">, size=2130, nrcpt=1 (queue active) |
130 | <br>Jan 01 07:27:32 apollon postfix/smtpd[1684]: disconnect from remt30.cluster1.charter.net[209.225.8.40] |
131 | <br>Jan 01 07:27:38 apollon postfix/local[1689]: 2BC793B8A4: to=<touser @mainserver.com="">, orig_to=<touser @toserver.com="">, relay=local, delay=6, status=sent ("|/usr/bin/procmail") |
132 | <br># 2 Reject: 450 |
133 | <br>Jan 01 14:05:44 apollon postfix/smtpd[2114]: connect from baby.mainframe.nl[81.29.4.2] |
134 | <br>Jan 01 14:05:44 apollon postfix/smtpd[2114]: E0C9D3BD9A: client=baby.mainframe.nl[81.29.4.2] |
135 | <br>Jan 01 14:05:44 apollon postfix/smtpd[2114]: E0C9D3BD9A: reject: RCPT from baby.mainframe.nl[81.29.4.2]: 450 <touser2 @toserver.com="">: User unknown in local recipient table; from=<> to=<touser2 @toserver.com=""> proto=ESMTP helo=<baby.mainframe.nl> |
136 | <br>Jan 01 14:10:16 juni postfix/smtpd[2568]: C34ED1432B: reject: RCPT from relay2.tp2rc.edu.tw[163.28.32.177]: 450 <unknownuser @unknownserver.com="">: User unknown in local recipient table; from=<> proto=ESMTP helo=<rmail.nccu.edu.tw> |
137 | <br># 1 From unknown |
138 | <br>Jan 01 15:17:05 apollon postfix/smtpd[29866]: connect from tomts12.bellnexxia.net[209.226.175.56] |
139 | <br>Jan 01 15:17:05 apollon postfix/smtpd[29866]: 578093B8B5: client=tomts12.bellnexxia.net[209.226.175.56] |
140 | <br>Jan 01 15:17:05 apollon postfix/cleanup[28931]: 578093B8B5: |
141 | message-id=<20030905131913.EOVH11393.tomts12-srv.bellnexxia.net@tomts12-srv> |
142 | <br>Jan 01 15:17:06 apollon postfix/qmgr[965]: 578093B8B5: from=<>, size=109367, nrcpt=1 (queue active) |
143 | <br>Jan 01 15:17:06 apollon postfix/local[32432]: 578093B8B5: to=<touser @mainserver.com="">, orig_to=<touser @toserver.com="">, relay=local, delay=1, status=sent ("|/usr/bin/procmail") |
144 | <br>Jan 01 15:17:06 apollon postfix/smtpd[29866]: disconnect from tomts12.bellnexxia.net[209.226.175.56] |
145 | </touser></touser></rmail.nccu.edu.tw></unknownuser></baby.mainframe.nl></touser2></touser2></touser></touser></fromuser></i> |
146 | <br> |
147 | <br>will give a file that looks like this: |
148 | <br> |
149 | <i> |
150 | <br>2004-01-01 07:27:38 fromuser@aol.com touser@toserver.com remt30.cluster1.charter.net localhost SMTP - 1 2130 |
151 | <br>2004-01-01 14:05:44 <> touser2@toserver.com baby.mainframe.nl - SMTP - 450 0 |
152 | <br>2004-01-01 14:10:16 <> unknownuser@unknownserver.com relay2.tp2rc.edu.tw - SMTP - 450 0 |
153 | <br>2004-01-01 15:17:06 <> touser@toserver.com tomts12.bellnexxia.net localhost SMTP - 1 109367 |
154 | </i> |
155 | <br> |
156 | <br>See <a href="awstats_faq.html#MAIL">FAQ-COM100</a> to see how to use maillogconvert.pl with AWStats to analyze mail log files. |
157 | <br> |
158 | |
159 | <br> |
160 | <br> |
161 | |
162 | <br> |
163 | <br><a name="urlaliasbuilder"><h2 style=""><u>urlaliasbuilder.pl</u></h2></a> |
164 | <br>Urlaliasbuilder generates an 'urlalias' file from an input file (an urlalias file |
165 | <br>is a file with two columns: url and clear title of url). |
166 | <br>The input file must contain a list of URLs (It can be an AWStats history file). |
167 | <br>For each of thoose URLs, the script get the corresponding HTML page and catch the |
168 | <br>header information (title), then it writes an output file that contains one line |
169 | <br>for each URLs and several fields: |
170 | <br>- The first field is the URL, |
171 | <br>- The second is title caught from web page. |
172 | <br>This resulting file can be used by AWStats urlalias plugin. |
173 | <br> |
174 | <br>Usage: urlaliasbuilder.pl -site=www.myserver.com [options] |
175 | <br> |
176 | <br>The site parameter contains the web server to get the page from. |
177 | <br>Where options are: |
178 | <br> -urllistfile=Input urllist file |
179 | <br> If this file is an AWStats history file then urlaliasbuilder will use the |
180 | <br> SIDER section of this file as its input URL's list. |
181 | <br> -urlaliasfile=Output urlalias file to build |
182 | <br> -overwrite Overwrite output file if exists (by default appends to file). |
183 | <br> -secure Use https protocol |
184 | <br> |
185 | <br>Example: urlaliasbuilder.pl -site=www.someotherhost.com |
186 | <br> |
187 | <br>New versions and FAQ at http://awstats.sourceforge.net |
188 | <br> |
189 | <br>This script was written from Simon Waight original works title-grabber.pl. |
190 | <br> |
191 | <br> |
192 | |
193 | <br> |
194 | <hr> |
195 | |
196 | <script language="javascript"> |
197 | var date='$Date: 2010/06/22 21:35:24 $'; |
198 | document.writeln("Last revision: "+date); |
199 | </script> |
200 | |
201 | </body></html> |