Deploying the Awstats Log Analysis system on Linux systems

Source: Internet
Author: User

Awstats is an open-source log analysis system developed in the Perl language that can be used not only to analyze the access logs of Apache Web servers, but also to analyze log information for services such as Samba Vsftpd IIS. Integrated Crond and other scheduled task services, you can analyze the growing log content on a regular basis.

Experimental environment: A Linux6.5 virtual machine with an IP address of 192.168.100.222

A Windows virtual machine with the address 192.168.100.30

Awstats Package Link: Https://pan.baidu.com/s/1HWLiZuVEl9JSPGzPqT8OOQ Password: K2ZM


First, install the Apache software package, if it is already available directly to the master configuration file configuration

1) Locate the ServerName (server name) under the main profile/etc/httpd/conf/httpd.conf, define the website domain name

2) also found under the main configuration file Listen (listening) this option to change the listening address to its own server address

3) Turn on the httpd service while shutting down the firewall and Setenforce 0


Second, configure DNS resolution

1) Install BIND package

2) Make changes to master profile, zone Profile, zone data profile, respectively

3) When the configuration is complete, turn on the DNS service #注意DNS配置完成后, you need to specify a DNS address on another Windows system, or you will not be able to resolve


Third, then need to install the Awstats software package, the link of the package I have provided on the above, there is a need to download a friend can download

1) Create a mount directory and attach the package to this directory

2) Unpack the package, put the extracted files into the/usr/local/awstats directory, so that the subsequent operation of our convenience

3) CD to /usr/local/awstats/tools directory, you can see a bunch of executable files

4) Execute the file in the red box, after the execution of this file will be entered into a configuration mode

5) The absolute path of the input file needs to be entered here

6) as shown, enter Y to create a new directory

7) Enter the domain name of the website

8) There is no option to enter directly

9) Here can also directly enter, but here to pay attention to the above site address, this is the Log tool access address, when the visit here localhost need to change the domain name of their own, my domain name is www.benet.com


10) When the file is downloaded, a file will be generated in the/etc/awstats directory, and a message will be generated under the HTTPD master profile.

11) Add the log file path of the server under the generated file, and create a data file directory named Awstats under the file's specified directory, because there is no such directory under the original path.

12) Restart Service

13) Access this log tool in Windows system, the interface will appear when the access is successful.


Four, the log analysis system at this time can not be updated, because there is still a missing update program

1) in/usr/local/awstats/tools This directory has a name awstats_updateall.pl this executable file, the execution of this file can be updated to the log system, you can see, the access interface has an access information

2) in order to avoid the trouble of manual updating, here can set up a recurring scheduled task, the specific time can be determined by their own


Five, for the log file for security reasons we can also prohibit some unrelated users to access

1) At the end of the httpd's main configuration file can control the user's access rights, deny,allow the first refusal, allow,deny means first allow

2) Restart the HTTPD service, you can see that after limiting the 100 segment of the address to access, I have no access to the Log Analysis system interface

Deploying the Awstats Log Analysis system on Linux systems

Related Article

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.