Tech note FS1406
Description
Does FlashStats support Apache log formats?
Answer
Yes; the level of support depends upon which version of Apache you are using.
Older versions of Apache generate four separate log files:
- access_log
- error_log
- agent_log
- referer_log
FlashStats will only parse the access_log file. This means that you will not get any of the reports that depend upon extended information, such as the Search Phrases report.
If you are using this verison of Apache, be sure to specify only the access_log (and any rotated copies) in your logs= and accesslog= parameters. Do not specify the other log files, as they will not be properly parsed by FlashStats.
Apache 1.2 (and later) can use the Configurable Logging Module, which is included by default. This allows Apache to log in the "Extended" (sometimes called "Combined") log format. For FlashStats users who would like to see the Referer, Search Phrases, Bad Referers, and Browser reports, we recommend that they use this log format if they are running Apache.
The configuration line in an Apache config file should look something like:
CustomLog access_log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
The Apache web site has more information about the mod_log_config module.