In linux, logs play a very important role. we can determine the status of a service based on the log recorded content, the user access status, and the log can also help us troubleshoot errors, find out the insecure factors in our system. Of course, there are many ways to manage logs. we can use shell scripts to manage logs. To implement more powerful log management functions, we have to use log analysis tools. The following describes how to use webalizer and awstat log analysis tools. Because I have installed the httpd server on my computer
In linux, logs play a very important role. we can determine the status of a service based on the log recorded content, the user access status, and the log can also help us troubleshoot errors, find out the insecure factors in our system. Of course, there are many ways to manage logs. we can use shell scripts to manage logs. To implement more powerful log management functions, we have to use log analysis tools. The following describes how to use webalizer and awstat log analysis tools.
Since the httpd service has been installed on my computer, we will take apache log analysis as an example to introduce the usage of these two tools:
WebalizerTools
: Http://www.webalizer.org
Features of Webalizer:
1. for programs written in C, it has a high operating efficiency. On a machine with a clock speed of 10000 MHz, webalizer can analyze records per second. Therefore, it takes only 15 seconds to analyze a 40 m log file.
2. webalizer supports the standard common log file Format (CommonLogfile Format). In addition, it also supports several combinations of log formats (Combined LogfileFormat) variants to collect statistics on the customer's situation and the customer's operating system type. Now webalizer supports the wu-ftpd xferlog format and squid log file format.
3. supports command line configuration and configuration files.
4. you can support multiple languages or perform localization on your own.
5. supports multiple platforms, such as UNIX, linux, NT, OS/2, and MacOS.
Specific use of Webalizer:
If you want to use a software tool without installing it, you must first install it. because the software is a source code package, you must unpack it before installation, then, you can configure, compile, and install and use the SDK.