In the HTTPD service's access log file Access_log, a large number of client access information is logged, and by analyzing this information, the Web site's access can be understood in a timely manner.
For experienced administrators, you can write the shell script to the information in the Access_log file on demand statistics, simpler way is to use the current more mature log analysis program, complete automated log analysis and statistical work.
Here we recommend an open source log analysis tool Awstats.
Here's his procedure for adding the Awstats Log Analysis page
1. Extract and release the Awstats software package, execute the awstats_configure.pl script in the directory to install
After executing the awstats_configure.pl script, an interactive process is entered.
In this procedure, you will check the Awstats installation directory, the configuration file path for the httpd service, the logging format, and other system environments. The following setup procedure is for informational purposes only.
1. Select "Y" to change the logging format of the HTTPD service to "combined" to record more details
This article URL address: http://www.bianceng.cn/OS/Linux/201410/45502.htm
2. Select "Y" to create a new configuration file.
3. Define the target Web site name for the log analysis (for example, benet.com)
4). Defines the Awstats configuration file's storage directory (default is/etc/awstats)
5. Add Cron Scheduled Task (cannot be added automatically when the script is installed, press ENTER to continue)