Today, I found that the disk D on my server is out of space. It's strange that there is no space of GB and I have installed an apache. How can I find that there is an access in the principle. the log file has a memory GB, Baidu access. log is an apache log File and is delete
are redirected to other locations for different reasons, status Code starting with 4 indicates that the client has an error. Status Code starting with 5 indicates that the server has encountered an error ).
(7) The seventh log record indicates the total number of bytes sent to the client. It indicates whether the transmission is interrupted (that is, whether the value is the same as the file size)
2. configure access logs
In the
1. Apache Access LogEnter command cat/usr/local/apache2.4/conf/extra/httpd-vhosts.conf, enter, see,The access log for this virtual machine is inside the/logs/111.com-access_log, enter the command ls/usr/local/apache2.4/logs/, you can see the access log file, see,You can use the command Cat/usr/local/apache2.4/logs/111.com-access_log to view the contents, enter, s
/httpd.conf)404 page does not exist
11.21 Apache Access Log• Access logs record each user's request[Email protected] ~]# cat/usr/local/apache2.4/logs/111.com-access_log abc.com-access_log access_log httpd.pid 111.com-error_log abc.com-error_log error_log[[email protected] ~]# Cat/usr/local/apache2.4/logs/111.com-access_log(Get is not add-i)• Define the form
are redirected to other locations for different reasons, status Code starting with 4 indicates that the client has an error. Status Code starting with 5 indicates that the server has encountered an error ).
(7) The seventh log record indicates the total number of bytes sent to the client. It indicates whether the transmission is interrupted (that is, whether the value is the same as the file size)2. configure access logs
In the
Rotatelogs is the pipe logger that came with Apache 2.2.
Grammar
Copy code code as follows:Rotatelogs [-l] logfile [rotationtime [offset]] | [Filesizem]
Options-LUse local time instead of GMT time as a time benchmark. Note: using-l in an environment that changes the GMT offset (such as daylight saving time) can lead to unpredictable results.
LogFileIt plus the reference name is the log file name. If logfil
* Access Log
* Transfer Log
*cookie Log
Where the transfer log and the cookie log were canceled at apache2.0, only error logs and access logs were discussed;
2, log-related configuration instructions;
The following 4
Overview:Rotatelogs Log Segmentation: Apache uses its own log split module Rotatelogs split log, Rotatelogs is the Apache in the pipeline log program.Awstats Log Analysis: is an open-so
statistics system plays an important role in site user behavior analysis, especially for keyword access statistics from search engines: it is a very effective data source for user behavior analysis. With the development of the Internet over the years, Web Log statistics tools have become more and more mature and feature-rich. Many of them are openSource codeAWStats is an outstanding one. AWStats: advanced web statistics
AWStats is a fast-growing Per
=chedong
Based on Perl: and solves the cross-platform problem well, the system itself can run on Gnu/linux or Windows (after installing ActivePerl ), and the parsed log directly supports the Apache format (combined) and the IIS format ( Need to be modified). Webalizer Al
Rotatelogs is the pipe logger that came with Apache 2.2.
Grammar
Copy Code code as follows:
Rotatelogs [-l] logfile [rotationtime [offset]] | [Filesizem]
Options-LUse local time instead of GMT time as a time benchmark. Note: using-l in an environment that changes the GMT offset (such as daylight saving time) can lead to unpredictable results.
LogFileIt plus the reference name is the log
SourceCodeThe log analysis tool Webalizer and AWStats has the following advantages:
User-friendly: You can directly call the corresponding language interface (Simplified Chinese Version) based on your browser)Reference output sample: http://www.chedong.com/cgi-bin/awstats/awstats.pl? Config = chedong
Perl-based: the system can run on GNU/Linux or Windows (after ActivePerl is installed), and the log
sample: http://www.chedong.com/cgi-bin/awstats/awstats.pl? Config = chedong
Perl-based: the system can run on GNU/Linux or Windows (after ActivePerl is installed), and the log analysis directly supports the Apache format (combined) and IIS format (need to be modified ). Al
By default, Apache runs two log files: access_log (access log) and error_log (error log. Take a look at a typical acce
By default, Apache runs two log files: access_log (access log) and
access statistics from search engines: it is a very effective data source for user behavior analysis. With the development of the Internet over the years, WEB Log statistics tools have become more and more mature and feature-rich. Many of them are open source code, and AWStats is an excellent one.AWStats: Advanced Web Statistics
AWStats is a fast-growing Perl-based WEB log analysis tool on Sourceforge. Com
One, Apache access logs do not log static filesMost of the site elements are static files, tablets, CSS, JS, etc., these elements can not be recordedvim/usr/local/apache2.4/conf/extra/httpd-vhosts.conf//Change to the followingChange the virtual host configuration file to the following:DocumentRoot "/data/wwwroot/www.123.com"ServerName www.111.comServeralias 111.comSetenvif Request_uri ". *\.gif$" imgSetenvi
Overview:
in distributed systems, it is often necessary to collect the logs of each node and then unify the analysis.
This article provides a simple solution, this article uses the Open source log project + the unified database structure way, In each development environment, provide a unified configuration and invocation methods, all logs are recorded in the log server, you can trace the query on any one
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.