" commonCustomlog has a very important role, reflected in the following points1:seo and website optimization. Through log to see the dead chain, as well as visiting spiders, so as to optimize the site targeted. : 22: Identify potential security issues. Because this log records the HTTP request header, there is a request address, which helps us to find some illegal requests constructed by the attackers, espe
(24-hour system)%I 2-digit hours (12-hour system)%j 3-digit number of days in a year%M 2-digit number of minutes %m 2-digit number of months %p AM/PM12 hours of the afternoon (local) %s 2-digit number of seconds %u 2-digit number of weeks in the year (Sunday is the first day of the week) %W 2-digit number of weeks in the year (Monday is the first day of the week) %w 1-digit days of the week (Sunday is the first day of the week) %x time (local) %x Date (local) %Y 4-digit year %y 2-digit year %Z
Apache log records, records for later check, part excerpt from Apache Chinese manual, translation Jin BuA typical record format is as follows:LogFormat "%h %l %u %t \"%r\" %>s %b" commonCustomLog logs/access_log commonIt defines a particular record format string and gives it
pictures.Agent IP and real client IP are recorded in Apache logBy default, the log log format is:Logformat "%h%l%u%t \"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "" combined, where%h is the IP of the record visitor, if there is a layer of proxy in the front of the web, th
difference is 480 minutes. 86400 indicates a day.
Appendix rotatelogs description
Rotatelogs logfile [rotationtime [offset] | [filesizeM]
OptionLogfileThe reference name is the log file name. If logfile contains '%', it is considered as a string in strftime (3) format; otherwise, it is automatically added with the. nnnnnnnnnn suffix in seconds. Both formats indicate the start time of the new log.Rotationti
\"%r\ "%>s%b \"%{referer}i\ "\"%{user-agent}i\ "%I%O" CombinedioIfmodule># # The location and format of the access logfile (Common logfile format). # If You don't define any access logfiles within aVirtualHost># container, they'll be logged here. Contrariwise, if you *do* # define per-VirtualHost>access LogFiles, transactions'll be # logged therein and *not* in the this file. # customlog "E:/wamp/logs/acce
:
0 * * */usr/bin/webalizer-c/etc/webalizer/webalizer.conf
Network traffic log analysis is important for network administrators. Through the system record of traffic log, the administrator can clearly see the user's use of the network server, can dig and discover the network security problems.There are many
can run on GNU/Linux or after ActivePerl is installed on Windows. The log analysis directly supports the Apache format (combined) and IIS format (need to be modified ). Although Webalizer has a Windows platform version, it lacks maintenance;AWStats allows you to use a syste
A brief introduction to apache log analysis is provided. For more information, see LogFiles on the apache official website...
Apache Log analysis is briefly introduced, mainly refer to the apache official website
string in strftime (3) format; otherwise, it is automatically added with the. nnnnnnnnnn Suffix in seconds. Both formats indicate the start time of the new log.RotationtimeInterval of Log File rollback in secondsOffsetThe number of minutes relative to the UTC time difference. If it is omitted, it is assumed that it is 0 and UTC time is used. For example, to specify the local time of the area with the UTC t
• Add Customlog "|/usr/local/apache2/bin/rotatelogs-l/usr/local/apache2/logs/access_%y%m%d.log 86400" to the virtual host configuration file Combined First paragraph: Rotatelog tool path The second paragraph: Log storage path and naming (by month and day name) Third paragraph: Call the log format in httpd.conf to
how much data the server sends in a day, week, or month. Summary: The log Name field represents the content: 1. Remote host, 2. Blank (e-mail), 3. Blank (login name), 4. Request time, 5. Method + Resource + protocol, 6. Status code, 7. Send bytes Configure access logThe decision to place the log is in the following statement in httpd.confCustomlog "Logs/access_log" commonCUSTOMLOG specifies the exact loca
Apache Log analysis is briefly introduced, mainly refer to the apache official website Log Files, manual reference http://httpd.apache.org/docs/2.2/logs.html
I. Log Analysis
If the default configuration is used during apache inst
%d.log"Customlog "|/usr/sbin/rotatelogs-l/usr/local/apache/logs/www.test.com-access%y%m%d.log 86400" combined// Defines the access log format, where 86400 means one day, a new log file is generated daily
Note: Rotatelogs-l uses local time instead of GMT as the time datu
= 5 HTTP/1.1 "301 5629"-"" YisouSpider"220.181.108.121--[22/Nov/2013: 13: 42: 03 + 0800] "GET/so/in http/1.1" 200 7223 "-" "Mozilla/5.0 (compatible; baiduspider/2.0; + http://www.baidu.com/search/spider.html )"42.120.161.81--[22/Nov/2013: 13: 42: 03 + 0800] "GET/list-103-5/HTTP/1.1" 200 5616 "-" "YisouSpider" After reading the parameters for half a day, I found some parameters about the LogFormat record format
192.168.1.6] file does not exist:
/Usr/local/Apache/bugletdocs/img/south-korea.gif
As you can see, just like the access log access_log file, the error log records are also divided into multiple items.
The error records start with the date/time mark. Note that their format is different from the date/time
Apache log does not log the specified format elementApache does not record the logs that point to the elements of the site, why this is required, and under what circumstances it is necessary to do so:When calculating the log PV, generally do not need to statistics picture el
file httpd. conf. The following section describes how to modify the log records of the configuration file of an Apache server:SetEnvIf Request_URI \. gif image-requestSetEnvIf Request_URI \. jpg image-requestSetEnvIf Request_URI \. png image-requestSetEnvIf Request_URI \. js image-requestSetEnvIf Request_URI \. css image-requestSetEnvIf Request_URI \. swf image-requestErrorLog/var/
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.