The next step is to manually lay out the log format, but the log itself doesnt really label its data in a way thats obvious to noobie me. The advantage of running this manually is we can see if settings are proper and that awstats can read the log file and that log file is in proper format etc. In my, I have changed formats to try both apache log options given. If we want to test the configuration after we have setup awstats for new server, we can process the logs manually using command: Lot of changes get reflected immediately without requiring reloading of apache web server.Īwstats processes logs every hour by cron script in ' /etc/cron.hourly' folder. The name of configuration file is of format ' nf' and present in /etc/awstats directory. This makes sure that only administrators of site can see the statistics and not everyone. This will create a set of pages in /var/. and provide more information - we need to change the logging format to a more Apache style log. These are the addresses which can see awstats output for particular domain / awstats configuration file. The next step is to change the format of the Squid logs.
AllowAccessFromWebToFollowingIPAddresses.These are other aliases of server like ' sbarjatiya.in ' etc. This is the main domain of website like ' If we use ' common' format for logging then we have to modify the awstats configuration file appropriately to expect different set of values in log file. This log file must be in ' combined' format and not in ' common' format. This is name of apache ' VirtualHost CustomLog' file. The parameters that are likely to be changed are: We can copy the file and change parameters for apache VirtualHosts hosted on current system. There is usually a sample configuration file in ' /etc/awstats' folder for localhost. Reports can be run from the operating system command line and from a web browser as a CGI (common.
AWSTATS APACHE LOG FORMAT INSTALL
We can install awstats using ' yum' or similar package management tool in any standard Linux distribution. AWStats can analyze: Apache NCSA combined (XLF/ELF) or common (CLF) log files, Microsoft IIS log files (W3C), WebStar native log files and other web, proxy, wap, streaming media, ftp and mail server log files.