From: eldy <>
Date: Fri, 25 Jan 2002 23:56:40 +0000 (+0000)
Subject: Added FAQ "SETUP FOR FTP SERVERS"
X-Git-Tag: AWSTATS_4_0_BETA~128
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=df96fcb0e2371f28e8e2e869fd9e05c0bd6735fe;p=thirdparty%2FAWStats.git
Added FAQ "SETUP FOR FTP SERVERS"
---
diff --git a/docs/awstats_faq.html b/docs/awstats_faq.html
index 8fbe0141..3f081a55 100644
--- a/docs/awstats_faq.html
+++ b/docs/awstats_faq.html
@@ -48,13 +48,14 @@ FAQ-ABO250 Can AWStats be integrated with PHP Nuke ?
Here, you can find the most common questions and answers users have to install/setup AWStats.
FAQ-SET050 Error "Missing $ on loop variable ..."
-FAQ-SET100 I see Perl script's source instead of its execution in my browser
-FAQ-SET150 Error "... couldn't spawn child process..." with Apache for windows
-FAQ-SET200 "Internal Server Error" in a browser connecting to Apache
-FAQ-SET250 "Internal Server Error" after a long time in my browser (See FAQ-COM100 "AWStats speed/timeout problems")
+FAQ-SET100 I see Perl script's source instead of its execution in my browser.
+FAQ-SET150 Error "... couldn't spawn child process..." with Apache for windows.
+FAQ-SET200 "Internal Server Error" in a browser connecting to Apache.
+FAQ-SET250 "Internal Server Error" after a long time in my browser (See FAQ-COM100 "AWStats speed/timeout problems").
FAQ-SET300 Error "Couldn't open file ..."
FAQ-SET350 Empty or null statistics reported.
-FAQ-SET400 Log format setup or errors
+FAQ-SET400 Log format setup or errors.
+FAQ-SET420 Setup for FTP server log files.
FAQ-SET450 No pictures/graphics shown.
FAQ-SET500 Frequency to launch AWStats to update statistics (See FAQ-COM150 "Benchmark question").
FAQ-SET550 How can i run AWStats frequently ?
@@ -109,14 +110,15 @@ Examples of used platforms (bold means 'tested by author', others were reported
FAQ-ABO150 : WHICH LOG FORMAT CAN AWSTATS ANALYZE ?
AWStats setup knows predefined log format you can use to make AWStats config easier. However,
-you can define your own log format, that's the reason why AWStats can analyze nearly all web
-servers or proxies log files.
+you can define your own log format, that's the reason why AWStats can analyze nearly all web, wap
+and proxies server log files. Some FTP servers are also supported.
The only requirement is "Your log file must contains required information".
This is example of possible log format:
-Apache combined log format (known as NCSA combined log format or XLF or ELF format)
+Apache combined log format (known as NCSA combined log format or XLF or ELF format) (See FAQ for this format)
IIS 5.0+ log format (known as W3C format)
Webstar native log format
+ProFTP server
...
Apache common log format (AWStats can now analyse such log files but such log files does not contain all information
AWStats is looking for. The problem is in the content, not in the format). I think analysing common log files is not
@@ -249,28 +251,29 @@ to log files format.
FAQ-SET400 : LOG FORMAT SETUP OR ERRORS
PROBLEM: Which value do I have to put in the LogFile
parameter to make AWStats working with my log file format ?
-SOLUTION: The AWStats config file give you all
-possible values for LogFile. To help you this is some common case of log file format and
+SOLUTION:
+The AWStats config file give you all possible values for LogFile.
+To help you, this is some common case of log file format and
the corresponding value of LogFile you must use in your AWStats config file:
-If your log records are EXACTLY like this (NCSA combined/XLF/ELF log format):
+If your log records are EXACTLY like this (NCSA combined/XLF/ELF log format):
62.161.78.73 - - [dd/mmm/yyyy:hh:mm:ss +0x00] "GET /page.html HTTP/1.1" 200 1234 "http://www.from.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
You must use : LogFile=1
|
-If your log records are EXACTLY like this (NCSA combined with Apache using mod_gzip):
+If your log records are EXACTLY like this (NCSA combined with Apache using mod_gzip):
62.161.78.73 - - [dd/mmm/yyyy:hh:mm:ss +0x00] "GET /page.html HTTP/1.1" 200 1234 "http://www.from.com/from.htm" "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)" mod_gzip: DECHUNK:OK In:11393 Out:3904:66pct.
You must use : LogFile="%host %other %other %time1 %methodurl %code %bytesd %refererquot %uaquot %other %gzipres %gzipin %gzipout"
-If your log records are EXACTLY like this (NCSA common CLF log format):
+If your log records are EXACTLY like this (NCSA common CLF log format):
62.161.78.73 - - [dd/mmm/yyyy:hh:mm:ss +0x00] "GET /page.html HTTP/1.1" 200 1234
You must use : LogFile=4
Note: Browsers, OS's, Keywords and Referers features are not available with a such format.
|
-If your log records are EXACTLY like this (IIS W3C log format):
+If your log records are EXACTLY like this (IIS W3C log format):
yyyy-mm-dd hh:mm:ss 62.161.78.73 - GET /page.html 200 1234 HTTP/1.1 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0) http://www.from.com/from.htm
You must use : LogFile=2
@@ -281,15 +284,38 @@ You must use : LogFile="%host %logname %other %time1 %methodurl %other %code
Note: Browsers, OS's, Keywords and Referers features are not available with a such format.
-If your log records are EXACTLY like this (Webstar native log format):
+If your log records are EXACTLY like this (Webstar native log format):
05/21/00 00:17:31 OK 200 212.242.30.6 Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt) http://www.cover.dk/ "www.cover.dk" :Documentation:graphics:starninelogo.white.gif 1133
You must use : LogFile=3
+If you use ProFTP server:
+See Next FAQ.
+ |
+
There is a lot of other possible log formats.
You must use a personalised log format LogFile ="..." as described in config file to
support other various log format.
-
+
+
+
+FAQ-SET420 : SETUP FOR FTP SERVER LOG FILES
+PROBLEM: What do I have to do to use Awstats to analyze some FTP server log files.
+SOLUTION:
+AWStats was built to analyze web,wap or proxy servers log files. However it can be used with some FTP server log files.
+This is example for ProFTP:
+Modify the proftpd.conf file. At the very top add two new defines.
+LogFormat awstats "%t %h %u GET %f 200 %b"
+ExtendedLog /var/log/xferlog read,write awstats
+Turn off Transfer log (optional)
+TransferLog none
+Copy config awstats.conf file to "awstats.proftp.conf".
+Modify this new config file:
+LogFile="/var/log/xferlog"
+LogFormat="%time1 %host %logname %method %url %code %bytesd"
+DNSLookup=0
+ShowLinksOnUrl=0
+ShowAuthenticatedUsers=1