Get the App
SLTechnology News&Howtos  ›  Servers  › 

Awstart log analysis

Shulou Source: shulou.com Published: 2022-06-02 17:54:41 09月22日 Update

Awstart log analysis AWStats log analysis system

(1) an open source log analysis system developed by Perl language

(2) it can be used to analyze the access logs of Apache, Samba, Vsftpd, IIS and other servers.

(3) Information combined with crond and other scheduled task services, the log content can be analyzed regularly.

1. Configure the basic Apache website

Install DNS and Apache services

[root@localhost ~] # yum install bind httpd-y1.1, configure DNS service

Configure the master profile

[root@localhost ~] # vim / etc/named.conf

Configure area profile

[root@localhost ~] # vim / etc/named.rfc1912.zoneszone "kgc.com" IN {type master; file "kgc.com.zone"; allow-update {none;};}

Configure area data profile

[root@localhost ~] # cd / var/named/ [root@localhost named] # cp-p named.localhost kgc.com.zone [root@localhost named] # vim kgc.com.zone

Start the DNS service

[root@localhost named] # systemctl start named2, configure Apache service 2.1 enter Apache configuration file configuration [root@localhost named] # vim / etc/httpd/conf/httpd.conf

2.2. Disable the firewall, enable the Apache service [root@localhost named] # systemctl stop firewalld.service [root@localhost named] # setenforce 0 [root@localhost named] # systemctl start httpd3, and open a windows 10 host for testing.

First configure win 10 with a static DNS parsing service

You can see that we can access the web page we just created on the virtual machine

4. Install the Awstar mount shared folder LAMP-C7 [root@localhost httpd] # mkdir / abc [root@localhost httpd] # mount.cifs / / 192.168.100.3/LAMP-C7 / abcPassword for root@//192.168.100.3/LAMP-C7: [root@localhost httpd] #

Install Awstar

[root@localhost abc] # tar zxvf awstats-7.6.tar.gz-C / opt/

Move the installed Awstart to / usr/local/

[root@localhost abc] # cd / opt/ [root@localhost opt] # lsawstats-7.6 rh [root@localhost opt] # mv awstats-7.6/ / usr/local/awstat [root@localhost opt] # cd / usr/local/ [root@localhost local] # lsawstat bin etc games include lib lib64 libexec sbin share src

Configure configure

[root@localhost local] # cd awstat/ [root@localhost awstat] # lsdocs README.md tools wwwroot [root@localhost awstat] # cd tools/ [root@localhost tools] # lsawstats_buildstaticpages.pl dolibarr maillogconvert.pl xsltawstats_configure.pl geoip_generator.pl nginxawstats_exportlib.pl httpd_conf urlaliasbuilder.plawstats_updateall.pl logresolvemerge.pl webmin [root@localhost tools] #. / awstats_configure.pl

View configuration

[root@localhost tools] # cd / etc/httpd/conf [root@localhost conf] # vim httpd.conf

Modify permissions inside to allow installation

Enter the awstart file you just created and configure

[root@localhost conf] # cd / etc/awstats/ [root@localhost awstats] # lsawstats.www.kgc.com.conf [root@localhost awstats] # vim awstats.www.kgc.com.conf

[root@localhost awstats] # cd / var/lib/ enter / var/lib/ directory [root@localhost lib] # mkdir awstats / / create awstats file [root@localhost lib] # systemctl restart httpd / / restart httpd service 5, return win 10 for testing

Open a browser in win10 to search for http://www.kgc.com/awstats/awstats.pl?config=www.kgc.com to view

Tags: Configuration services files logs analysis regions systems tests hosts tasks information content data folders servers service configurations permissions browsers directories websites Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Shulou Technology NVidia Shulou Tech Info