How to use Awstats to analyze web logs in Linux

Source: Internet
Author: User
Tags linux

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.