.
: http://www.arcetri.astro.it/manual/ja/mod/mod_log_config.html
: Mon Jan 21 19:44:30 2013 : Fri Feb 28 08:04:38 2014 : IBM-866 : |
Apache HTTP ²î î¦Á 2.2
: | ²îµÁ |
---|---|
µîµ: | Base |
¦î: | log_config_module |
îµ: | mod_log_config.c |
¦îÁµí µ¡íۦۦۇ ۦµ ɵۦۦ
¦î:
TransferLog
,
ۦ LogFormat
,
ۦ CustomLog
µՐ
TransferLog
CustomLog
Ր
LogFormat
CustomLog
ۦՐ
µ
ۦԵ C
ȴ "\n" "\t"
ǡµ§
µ§µî
µɵ "%
"
ۦۦ
"%"
:
î | |||||||
---|---|---|---|---|---|---|---|
%% |
î¨Áϧ | ||||||
%a |
î IP µ | ||||||
%A |
î IP µ | ||||||
%B |
µÁµՐHTTP | ||||||
%b |
µÁµՐHTTP CLF ۦ
1 0
'- ' | ||||||
%{Foobar}C |
²îµî Foobar | ||||||
%D |
µ | ||||||
%{FOOBAR}e |
ҐՐ FOOBAR | ||||||
%f |
|||||||
%h |
îµ | ||||||
%H |
µ | ||||||
%{Foobar}i |
²îµ Foobar:
| ||||||
%l |
(identd ) î
mod_ident ²î
IdentityCheck
On
- | ||||||
%m |
µ | ||||||
%{Foobar}n |
¦î Foobar | ||||||
%{Foobar}o |
Foobar: | ||||||
%p |
µɑ²îî | ||||||
%P |
µɑ¨µ¨µ ID | ||||||
%{format}P |
µɑî ID µ ID
format ʵ pid , tid ,
hextid hextid
APR 1.2.0
| ||||||
%q |
( ?
) | ||||||
%r |
µ | ||||||
%s |
µîµµ
µµîµ --- µîµ %>s
| ||||||
%t |
µȨ CLF Ȩۦ (ˑۦ) | ||||||
%{format}t |
format ۦȨformat
strftime (3)
ۦ(ܐí) | ||||||
%T |
µɑ | ||||||
%u |
îî´ (µîµ (%s )
401 сí)
| ||||||
%U |
µ URL µ | ||||||
%v |
µɑ²î ServerName | ||||||
%V |
UseCanonicalName ²î | ||||||
%X |
µîµ:
( Apache
1.3 î¦Á | ||||||
%I |
µՐ
0
mod_logio | ||||||
%O |
Ր0
mod_logio |
ɵ "%" ۇ HTTP µîµîÁ̡
ȴ
"%400,501{User-agent}i"
400 500 î User-agent
µîµî "-"
µîµîµ "!
"
:
"%!200,304,302{Referer}i"
3 îµ
Referer
"<" ">" µ
µµ
%
%s, %U, %T, %D, %r
µµ
µµîµ̒
%>s
îµ
µµî´̒
%<u
¨ԑ 2.0.46
%r
, %i
, %o
͐íɵ\xhh
µîhh
16
µ§µî "
\
C ٭ (\n
, \t
)
2.0.46 î¦Áµî
ɑ
httpd 2.0 1.3 Ր%b
%B
îÁՐ
HTTP µÁµՐ (Ր
§ÁSSL LJ)
mod_logio
%O
îîԑՐ
̒
î:
"%h %l %u %t \"%r\" %>s %b"
"%v %h %l %u %t \"%r\" %>s %b"
"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\""
"%{Referer}i -> %U"
"%{User-agent}i"
: | µۦǡÁ |
---|---|
: | BufferedLogs On|Off |
: | BufferedLogs Off |
Áµ: | ²î |
µîµ: | Base |
¦î: | mod_log_config |
: | 2.0.41 |
BufferedLogs
mod_log_config
Րۦǡµ
ۦǡ
µۦǡ
µ¨µʵ
îÁµ§µ
²î;
îµ
: | ÁÁ |
---|---|
: | CookieLog filename |
Áµ: | ²î, îµ |
µîµ: | Base |
¦î: | mod_log_config |
: |
CookieLog
îÁ
filename ServerRoot
ۦµ mod_cookies
: | ۦ |
---|---|
: | CustomLog file|pipe
format|nickname
[env=[!]environment-variable] |
Áµ: | ²î, îµ |
µîµ: | Base |
¦î: | mod_log_config |
CustomLog
²îµ
ۦ
ҐՐÁ
ۦՐ :
ServerRoot
ۦµ|
"
µ
httpd
î´²î
root root
Unix îµ îµ§ µ§ µ§ ֵ
Րۦ
LogFormat
nickname ۦ
format
ʵ:
# CustomLog with format nickname
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog logs/access_log common
# CustomLog with explicit format string
CustomLog logs/access_log "%h %l %u %t \"%r\" %>s %b"
Րí²îҐՐ
µȴ
ҐՐµ
('env=!name
'
)µ
ҐՐ mod_setenvif
¦î
mod_rewrite
¦îֵ
ֵµ
²î GIF Ԩµ
̒Á̒
:
SetEnvIf Request_URI \.gif$ gif-image
CustomLog gif-requests.log common env=gif-image
CustomLog nongif-requests.log common env=!gif-image
RefererIgnore :
SetEnvIf Referer example\.com localreferer
CustomLog referer.log referer env=!localreferer
: | ۦ |
---|---|
: | LogFormat format|nickname
[nickname] |
: | LogFormat "%h %l %u %t \"%r\" %>s %b" |
Áµ: | ²î, îµ |
µîµ: | Base |
¦î: | mod_log_config |
¨µۦ
LogFormat
Ր
TransferLog
ۦՐ
µۦ
format
LogFormat
ۦ nickname
LogFormat
format nickname
îۦ
nickname LogFormat
CustomLog
Nickname LogFormat
-- î
ۦ
TransferLog
߃
LogFormat
nickname
nickname Nickname
î¨Áϧ (%
)
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common