After setting up a web server, the most concerned about the use of the system. This requires us to analyze the log files. A well-known day analysis tool is called "analog". This article will let the reader quickly construct its own analysis program through the configuration of the analog.
Because the time is only ten minutes, we won't talk about the configuration options of Analog. Here's a simple example:
DNS WRITE
DNSFILE /tmp/dnsfile.txt
HOSTNAME "FreeLAMP"
HOSTEXCLUDE mordell.ex.ac.uk
OUTFILE /home /albert/public_html/outputfile.html
The first two lines are used to improve the host name search speed, HOSTNAME is used to generate the title of the report, HOSTEXCLUDE ignores those hosts we are not interested in, and OUTFILE is the report write. file.
Next, you can view our report, what? Does the picture look problematic? That is the problem with the path of the image, very simple, modify httpd.conf, add:
Alias /doc/analog/images//usr/doc/analog/images/
Restart Apache, should Yes.
The next step is to make the program run every day, very simple, use:
# crontab -e
command to add a line:
0 3 * * * /usr/bin /analog +g/home/albert/analog.ini
Ok, ten minutes is over. what? Only five minutes? Congratulations, you are so great, Linux is simply a good way for you! Maybe you can still look down.
If you want to know which sites bring you traffic, you need to change the logging format in httpd.conf. Another trick is the -settings option, which will output the current configuration. Also, after using DNS WRITE and DNSFILE, the analog can process more than 1MB of logs in one second.
A more complicated example:
MONTHLY OFF
WEEKLY OFF
DAILY OFF
REFREPEXCLUDE http://www.freelamp.com/*
FILEEXCLUDE /ads /*
DNS WRITE
DNSFILE /tmp/dnsfile.txt
HOSTNAME "FreeLAMP"
DOMAINSFILE /root/alli
REFSITE ON
DOMAIN ON
REFERRER ON
There are also options such as MONTHLY OFF, WEEKLY OFF, and DAILY OFF. Of course, you can set it yourself.
The mail server is a device that is responsible for managing email delivery. E-ma
phenomenon: After installing mysql, mysql find phpmyadmin can not log in, return
The scale of modern enterprise networks is getting bigger and bigger.
Yesterday, Intel officially released its 6-core server-based Xeon server processor Xeon 5600 series,
How does the Apache server traverse the proxy server? The environment of the
Server dual network card settings
Iis 7 how to cancel the directory execution permission diagram
What prompted the blade server to die?
Prohibit PHP execution permission for a directory under Apache
Lenovo T168 G6 external PCI-E graphics card in the BIOS setting method
Linux system vps server entry level security configuration guide
Web server purchase considerations
Interpretation of NEC's X86 fault-tolerant server technology
Server Accessories Shopping Guide: Learn about Supermicro Server Motherboards
Avoid running out of servers Parsing virtualized capacity planning
Is bandwidth allocation selected in cloud mode shared or exclusive?
Win10 official version how to use the dism command to repair the system
Method of using cd command on WinXP system
How to solve Win7 system access URL 192.168.1.1 router setting password
Detailed steps to install SkyDrive on Win7 system
Windows 7 installation Apache service failed to do
Let vista Explorer no longer display public folder links