<
p class="apache">Apache HTTP $B%5!<%
P(
B $
B%
P!<%8%g%s(B 2.1</
p>
<
div class="up"><
a href="./"><
img title="<-" alt="<-" src="/images/left.gif" /></
a></
div>
<
div id="preamble"><
h1>Apache $B%b%8%e!<%
k(
B mod_log_config</h1>
<
p><
span>Available Languages: </
span><
a href="/en/mod/mod_log_config.html" hreflang="en" rel="alternate" title="English"> en </
a> |
<
div class="outofdate">This translation may be out of date. Check the
English version for recent changes.</
div>
<
table class="module"><
tr><
th><
a href="module-dict.html#Description">$B@bL@(B:</
a></
th><
td>$B%5!<%
P$
X$
N%
j%/%(%
9%
H$
N%
m%.%
s%
0(
B</td></
tr>
<
tr><
th><
a href="module-dict.html#Status">$B%9%F!<%?%
9(
B:</a></
th><
td>Base</
td></
tr>
<
tr><
th><
a href="module-dict.html#ModuleIdentifier">$B%b%8%e!<%
k<1JL;R(B:</
a></
th><
td>log_config_module</
td></
tr>
$B$3$N%b%8%e!<%
k$
O%/%
i%$%
"%s%H$N%j%/%(%9%H$r=@Fp$K%m%0<}=8$9$k5!G=$r(B $BDs6!$7$^$9!#%m%0$O%+%9%?%^%$%:2DG=$J=q<0$G=q$+$l!"%
U%!%$%
k$
KD>@\(B
$B=q$$$?$j!"30It%W%m%0%i%`$KEO$7$?$j$9$k$3$H$,$G$-$^$9!#8D!9$N%j%/%(%9%H$r(B
$BFCD'$K1~$8$F%m%0$K=q$$$?$j=q$+$J$+$C$?$j$G$-$k$h$&$K!">r7o$K$h$k(B
$B%m%0<}=
8$
bDs6!$
5$
l$
F$$$^$
9!#(
B</p>
<
p>$B$3$N%b%8%e!<%
k$
O;
0$
D$
N%
G%#%
l%/%
F%#%
VDs6!$
7$^$
9(
B:
$
B%
m%
0%
U%!%$%
k$
r:
n@.$
9$
k$?$
a$
N(
B <code class="directive"><
a href="#transferlog">TransferLog</
a></
code>,
$B?7$7$$=q<
0$
r(
B $
BDj5A$
9$
k(
B <code class="directive"><
a href="#logformat">LogFormat</
a></
code>,
$B%m%0%U%!%$%k$H(B $B=q<
0$
r0lEY$
KDj5A$
9$
k(
B <code class="directive"><
a href="#customlog">CustomLog</
a></
code> $B$G$9!#(B
$B3F%j%/%(%9%H$,J#?t2s%m%0<}=
8$
5$
l$
k$
h$&$
K$
9$
k$?$
a$
K(
B <code class="directive">TransferLog</
code> $B%G%#%l%/%F%#%V$H(B
<
code class="directive">CustomLog</
code>
$B%G%#%l%/%F%#%V$OJ#?t2s;HMQ$9$k$3$H$,$G$-$^$9!#(B</
p>
<
div id="quickview"><
h3 class="directives">$B%G%#%l%/%F%#%V(B</
h3>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#cookielog">CookieLog</
a></
li>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#customlog">CustomLog</
a></
li>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#logformat">LogFormat</
a></
li>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#transferlog">TransferLog</
a></
li>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#formats">$B%+%9%?%`%m%0=q<
0(
B</a></
li>
<
li><
img alt="" src="/images/down.gif" /> <
a href="#security">$B%;%-%e%j%F%#$K4X$7$F(B</
a></
li>
<
li><
a href="/logs.html">Apache $B%m%0%U%!%$%k(B</
a></
li>
<
div class="top"><
a href="#page-header"><
img alt="top" src="/images/up.gif" /></
a></
div>
<
h2><
a name="formats" id="formats">$B%+%9%?%`%m%0=q<
0(
B</a></
h2>
<
p><
code class="directive"><
a href="#logformat">LogFormat</
a></
code> $B%G%#%l%/%F%#%V$H(B
<
code class="directive"><
a href="#customlog">CustomLog</
a></
code>
$B%G%#%l%/%F%#%V$N=q<
0$
r;
XDj$
9$
k0z?
t$
OJ8;
zNs$
G$
9!#$
3$
NJ8;
zNs$
r;
H$
C$
F$=$
l$>$l$N(B
$B%j%/%(%9%H$,%m%0%U%!%$%k$K%m%0<}=
8$
5$
l$^$
9!#$=$
NJ8;
zNs$
K$
O(
B $
B%
m%
0%
U%!%$%
k$
K$=$
N$^$^(
B $
B=q$+$
l$
kJ8;
zNs$
d!
"$=$l$>$l2~9T$H%?%V$r8=$9(B C $B8@8l(B $B7A<0$N@)8fJ8;z(B "\
n" $B$H(B "\
t" $B$H$r4^$a$k$3$H$,$G$-$^$9!#$=$N$^$^=PNO$5$;$?$$0zMQId$H%P%C%/%9%i%C%7%e$O(B $B%P%C%/%9%i%C%7%e$G%(%9%1!<%W$9$kI,MW$,$"$
j$^$
9!#(
B</p>
<
p>$B%j%/%(%9%H$NFCD'$=$N$b$N$O(B "<
code>%</
code>"
$B%G%#%l%/%F%#%V$r=q<
0$
NJ8;
zNs$
K=q$/$
3$
H$
G(
B $
B%
m%
0<}=8$5$l$^$9!#(B"%"
$B%G%#%l%/%F%#%V$O%m%0%U%!%$%kCf$G$O0J2<$
N$
h$&$
J(
B $
BCM$
GCV49$
5$
l$^$
9(
B:</p>
<
table class="bordered"><
tr class="header"><
th>$B%U%)!<%^%
C%
HJ8;
zNs(
B</th>
<
tr><
td><
code>%%</
code></
td>
<
td>$B%Q!<%;%
s%
H5-
9f(
B</td></
tr>
<
tr class="odd"><
td><
code>%
...a</
code></
td>
<
td>$B%j%b!<%
H(
B IP $
B%
"%I%l%9(B</td></tr><tr><td><code>%...A</code></td> <td>$B%m!<%+%k(B IP $B%"%
I%
l%
9(
B</td></
tr>
<
tr class="odd"><
td><
code>%
...B</
code></
td>
<
td>HTTP $B%X%C%@0J30$NAw$i$l$?%P%$%H(B$B?t(B</
td></
tr>
<
tr><
td><
code>%
...b</
code></
td>
<
td>HTTP $B%X%C%@0J30$NAw$i$l$?%P%$%H?t!#(BCLF $B=q<
0!#(
B <em>$B$9$J$o$A(B</
em>$B!"(B1 $B%P%$%H$bAw$i$l$J$+$C$?$H$-$O(B 0 $B$G$O$J$/!"(B
'<
code>-</
code>' $B$K$J$k(B</
td></
tr>
<
tr class="odd"><
td><
code>%...{<
var>Foobar</
var>}C</
code></
td>
<
td>$B%5!<%
P$
KAw$
i$
l$?%
j%/%(%
9%
HCf$
N%/%
C%-!<(B <
var>Foobar</
var> $B$NCM(B</
td></
tr>
<
tr><
td><
code>%
...D</
code></
td>
<
td>$B%j%/%(%9%H$r=hM}$9$k$N$K$+$+$C$?;~4V!"%_%jICC10L(B</
td></
tr>
<
tr class="odd"><
td><
code>%...{<
var>FOOBAR</
var>}e</
code></
td>
<
td>$B4D6-JQ?t(B <
var>FOOBAR</
var> $B$NFbMF(B</
td></
tr>
<
tr><
td><
code>%
...f</
code></
td>
<
td>$B%U%!%$%kL>(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...h</
code></
td>
<
td>$B%j%b!<%
H%[%
9%
H(
B</td></
tr>
<
tr><
td><
code>%
...H</
code></
td>
<
td>$B%j%/%(%9%H%W%m%H%3%k(B</
td></
tr>
<
tr class="odd"><
td><
code>%...{<
var>Foobar</
var>}i</
code></
td>
<
td>$B%5!<%
P$
KAw$
i$
l$?%
j%/%(%
9%
H$
N(
B <code><
var>Foobar</
var>:</
code>
$B%X%C%@$NFbMF(B</
td></
tr>
<
tr><
td><
code>%
...l</
code></
td>
<
td>(identd $B$+$i$b$7Ds6!$5$l$F$$$l$P(B) $B%j%b!<%
H%
m%
0L>!#(B
$B$3$l$O(B <
code class="module"><
a href="/mod/mod_ident.html">mod_ident</
a></
code> $B$,%5!<%
P$
KB8:
_$
7$
F!
"(B <code class="directive"><a href="/
mod/
mod_ident.html#
identitycheck">IdentityCheck</a></code> $B%G%#%l%/%F%#%V$,(B <code>On</code> $B$K@_Dj$5$l$F$$$J$$8B$j!"(
B <code>-</
code> $B$K$J$j$^$9!#(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...m</
code></
td>
<
td>$B%j%/%(%9%H%a%=%C%I(B</
td></
tr>
<
tr><
td><
code>%...{<
var>Foobar</
var>}n</
code></
td>
<
td>$BB>$N%b%8%e!<%
k$+$
i$
N%
a%
b(
B <var>Foobar</
var> $B$NFbMF(B</
td></
tr>
<
tr class="odd"><
td><
code>%...{<
var>Foobar</
var>}o</
code></
td>
<
td>$B1~Ez$N(B <
code><
var>Foobar</
var>:</
code> $B%X%C%@$NFbMF(B</
td></
tr>
<
tr><
td><
code>%
...p</
code></
td>
<
td>$B%j%/%(%9%H$r07$C$F$$$k%5!<%
P$
N@
5<0$J%]!<%
H(
B</td></
tr>
<
tr class="odd"><
td><
code>%
...P</
code></
td>
<
td>$B%j%/%(%9%H$r07$C$?;R%W%m%;%9$N%W%m%;%9(B ID</
td></
tr>
<
tr><
td><
code>%...{<
var>format</
var>}P</
code></
td>
<
td>$B%j%/%(%9%H$r07$C$?%o!<%+!<$N%W%m%;%9(B ID $B$+%9%l%C%I(B ID$B!#(B
<
var>format</
var> $B$H$7$FM-8z$JCM$O(B <
code>pid</
code> $B$H(B <
code>tid</
code>
<
tr class="odd"><
td><
code>%
...q</
code></
td>
<
td>$BLd$$9g$;J8;zNs(B ($BB8:_$9$k>l9g$OA0$K(B <
code>?</
code> $B$,DI2C$5$l$k!#(B
$B$=$&$G$J$$>l9g$O6uJ8;zNs(B)</
td></
tr>
<
tr><
td><
code>%
...r</
code></
td>
<
td>$B%j%/%(%9%H$N:G=i$N9T(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...s</
code></
td>
<
td>$B%9%F!<%?%
9!#
FbIt$
G%
j%@%$%
l%/%
H$
5$
l$?%
j%/%(%
9%
H$
O!
"85!9$N(B $B%j%/%(%9%H$N%9(B$B%F!<%?%9(B --- $B:G8e$N%9%F!<%?%9$O(B <code>%...>s</code> <tr><td><code>%...t</code></td> <td>$B;~9o!#(BCLF $B$N;~9o$N=q<0(B ($BI8=`$N1Q8l$N=q<0(B)</td></tr> <tr class="odd"><td><code>%...{<var>format</var>}t</code></td> <td><var>format</var> $B$GM?$($i$l$?=q<0$K$h$k;~9o!#(Bformat $B$O(B <code>strftime (3)</code> $B$N(B $B=q<0$G$"$
kI,
MW$,$
"$k!#(B($BCO0h2=$5$l$F$$$k2DG=@-$,$"$
k(
B)</td></
tr>
<
tr><
td><
code>%
...T</
code></
td>
<
td>$B%j%/%(%9%H$r07$&$N$K$+$+$C$?;~4V!"ICC10L(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...u</
code></
td>
<
td>$B%j%b!<%
H%
f!<%6(B ($BG'>Z$K$h$k$b$N!#%9%F!<%?%
9(
B (<code>%s</
code>) $B$,(B
401 $B$N$H$-$O0UL#$,$J$$$b$N$G$"$k2DG=@-$,$"$k(B)
<
tr><
td><
code>%
...U</
code></
td>
<
td>$B%j%/%(%9%H$5$l$?(B URL $B%Q%9!#%/%(%jJ8;zNs$O4^$^$J$$(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...v</
code></
td>
<
td>$B%j%/%(%9%H$r07$C$F$$$k%5!<%
P$
N@
5<0$J(B <
code class="directive"><
a href="/mod/core.html#servername">ServerName</
a></
code></
td></
tr>
<
tr><
td><
code>%
...V</
code></
td>
<
td><
code class="directive"><
a href="/mod/core.html#usecanonicalname">UseCanonicalName</
a></
code> $B$N@_Dj$K$h$k%5!<%
PL>(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...X</
code></
td>
<
td>$B1~Ez$,40N;$7$?$H$-$N@\B3%9%F!<%?%
9(
B:
<
tr><
td><
code>X</
code> =</
td>
<
td>$B1~Ez$,40N;$9$kA0$K@\B3$,0[>o=*N;(B</
td></
tr>
<
tr><
td><
code>+</
code> =</
td>
<
td>$B1~Ez$,Aw$i$l$?8e$K@\B3$r;}B3$9$k$3$H$,2DG=(B</
td></
tr>
<
tr><
td><
code>-</
code> = </
td>
<
td>$B1~Ez$,Aw$i$l$?8e$K@\B3$,@Z$i$l$k(B</
td></
tr>
<
p>($B$3$N%G%#%l%/%F%#%V$O(B Apache
1.3 $B$N8e4|$N%P!<%
8%
g%
s$
G$
O(
B <code>%
...c</
code> $B$K3d$jEv$F$i$l$F(B
$B$$$^$7$?$,!"$3$l$ONr;KE*$K(B ssl $B$,;HMQ$7$F$$$k(B
<
code>%...{<
var>var</
var>}c</
code>
$B9=J8$H>WFM$7$F$$$^$7$?!#(B)</
p></
td></
tr>
<
tr><
td><
code>%
...I</
code></
td>
<
td>$B%j%/%(%9%H$H%X%C%@$r4^$`!"<
u$
1<h$C$?%P%$%H?t!#(B
$B$3$l$r;HMQ$9$k$?$a$K$O(B <
code class="module"><
a href="/mod/mod_logio.html">mod_logio</
a></
code> $B$,I,MW(B</
td></
tr>
<
tr class="odd"><
td><
code>%
...O</
code></
td>
<
td>$B%X%C%@$r4^$`!"Aw?.$7$?%P%$%H?t!#(B0 $B$K$O$J$i$J$$!#(B
$B$3$l$r;HMQ$9$k$?$a$K$O(B <
code class="module"><
a href="/mod/mod_logio.html">mod_logio</
a></
code> $B$,I,MW(B</
td></
tr>
<
p><
var>"..."</
var> $B$O2?$b$J$$$+(B (<
em>$BNc$($P(B</
em>$B!"(B
<
code>"%h %u %r %s %b"</
code> $B$N$h$&$K(B)$B!"(B
$B$=$N9`L\$r4^$a$k$+$I$&$+$N>r7o(B ($B$b$7>r7o$K9g$o$J$+$C$?$H$-$O(B
$B$=$N9`L\$O(B "-" $B$K$J$j$^$9(B) $B$K$9$k$3$H$,$G$-$^$9!#>r7o$N7A<
0$
O(
B HTTP $
B%
9%
F!<%?%9%3!<%
I$
N%
j%
9%
H$
G!
"A0$K(B "!
" $B$rIU$1$k$3$H$b$G$-$^$9!#(B $B$G$9$+$i!"(
B"%400,501{User-agent}i" $
B$
O(
B 400 $
B%(%
i!<$H(B 501 $B%(%i!<(
B (
Bad Request $
B$
H(
B Not Implemented) $
B$
N$
H$-$
N$
_(
B <code>User-agent:</
code>
"%!200,304,302{Referer}i" $
B$
OIaDL$
N%
9%
F!<%?%9$r(B<
em>$BJV$5$J$+$C$?(B</
em>
$B$9$Y$F$N%j%/%(%9%H$G(B <
code>Referer:</
code> $B$r%m%0<}=
8$
7$^$
9!#(
B</p>
<
p>httpd 2.0 $B$N(B 1.3.25 $B$h$jA0$N%P!<%
8%
g%
s$
G$
O!
"(B <code>%...o</code> $B$NJ8;zNs$O(B $B%(%9%1!<%W$5$l$F$$$J$+$C$?$3$H$K(B $BCm0U$7$F$/$@$5$$!#$3$l$O<g$K(B Common Log Format $B$+$i$NMW5a$K$h$k$b$N$G$9!#(B $B$3$l$O!"%/%
i%$%
"%s%H$,%m%0$K@)8fJ8;z$rA^F~$9$k$3$H$,$G$-$k$H$$$&$3$H$G!"(
B $
B@
8$
N%
m%
0%
U%!%$%
k$
r07$&$
H$-$
K$
OHs>o$KCm0U$,I,MW$G$7$?!#(B</
p>
<
p>$B%;%-%e%j%F%#>e$NM}M3$K$h$j(B 2.0.46 $B$h$j0u;zIT2DG=$JJ8;z$H(B
$BB>$NFCJL$JJ8;z$O!"$[$H$s$I(B <
code>\x<
var>hh</
var></
code> $B$H$$$&(B
$BJ8;zNs$G%(%9%1!<%
W$
5$
l$
k$
h$&$
K$
J$
j$^$
7$?!#$
3$
3$
G!
"(B<var>hh</var> $B$O(B $B$=$N$^$^$N%P%$%H$NCM$N(B 16 $B?J$G$NCM$G$9!#$3$N5,B'$NNc30$K$O!"(
B $
B%
P%
C%/%
9%
i%
C%
7%
e$
r;
H$
C$
F%(%
9%
1!<%W$5$l$k(B <
code>"</
code> $B$H(B <
code>\</
code> $B$H!"(B
C $B7A<
0$
NI=5-
K!$,;
H$
o$
l$
k6uGrJ8;
z(
B (<code>\n</
code>, <
code>\t</
code> $B$J$I(B) $B$,(B
<
p>$B$h$/;H$o$l$k%U%)!<%^%
C%
HJ8;
zNs$
O(
B:</p>
<
dt>Common Log Format (CLF)</
dt>
<
dd><
code>"%h %l %u %t \"%r\" %>s %b"</
code></
dd>
<
dt>$B%P!<%
A%
c%
k%[%
9%
HIU$-(
B Common Log Format</dt>
<
dd><
code>"%v %h %l %u %t \"%r\" %>s %b"</
code></
dd>
<
dd><
code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-agent}i\""</
code></
dd>
<
dt>Referer $B%m%0=q<
0(
B</dt>
<
dd><
code>"%{Referer}i -> %U"</
code></
dd>
<
dt>Agent ($B%V%i%&%6(B) $B%m%0=q<
0(
B</dt>
<
dd><
code>"%{User-agent}i"</
code></
dd>
<
p><
code>%v</
code> $B$H(B <
code>%p</
code> $B$K$O$=$l$>$l!"(B
$B%j%/%(%9%H$r07$C$F$$$k%5!<%
P$
N@
55,
2=$
5$
l$?(
B <code class="directive"><
a href="/mod/core.html#servername">ServerName</
a></
code> $B$H(B <
code class="directive"><
a href="/mod/mpm_common.html#listen">Listen</
a></
code> $B$,;H$o$l$k$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B
$B$3$l$O(B <
code class="directive"><
a href="/mod/core.html#usecanonicalname">UseCanonicalName</
a></
code> $B$N(B
$B@_Dj$K4X$o$i$:!">o$K$=$&$J$j$^$9!#$=$&$7$J$$$H$I$N(B
$B%[%9%H$,<
B:]$
K%
j%/%(%
9%
H$
r07$
C$?$
N$+$
rCN$
k$?$
a$
K!
"(B $B%m%02r@O%W%m%0%i%`$,%P!<%A%c%k%[%9%H$N%^%C%A%s%0$r$H$k%"%
k%
4%
j%:%`
A4BN$
r(
B $
B:
F<BAu$7$J$1$l$P$J$i$J$/$J$k$+$i$G$9!#(B</
p>
</
div><
div class="top"><
a href="#page-header"><
img alt="top" src="/images/up.gif" /></
a></
div>
<
h2><
a name="security" id="security">$B%;%-%e%j%F%#$K4X$7$F(B</
a></
h2>
<
p>$B%m%0%U%!%$%k$,J]B8$5$l$F$$$k%G%#%l%/%H%j$,%5!<%
P$
r5/
F0$
7$?
0J30$
N%
f!<%6$G(B
$B=q$-9~$_2DG=$J$H$-$K%;%-%e%j%F%#$NLdBj$,H/@8$9$kM}M3$N>\:Y$O(B<
a href="/misc/security_tips.html#serverroot">$B%;%-%e%j%F%#$N$3$D(B</
a>
$B$r;2>H$7$F$/$@$5$$!#(B</
p>
<
div class="top"><
a href="#page-header"><
img alt="top" src="/images/up.gif" /></
a></
div>
<
div class="directive-section"><
h2><
a name="CookieLog" id="CookieLog">CookieLog</
a> <
a name="cookielog" id="cookielog">$B%G%#%l%/%F%#%V(B</
a></
h2>
<
table class="directive">
<
tr><
th><
a href="directive-dict.html#Description">$B@bL@(B:</
a></
th><
td>$B%/%C%-%s%0$N%m%.%s%0$N$?$a$N%U%!%$%kL>$r@_Dj$9$k(B</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Syntax">$B9=J8(B:</
a></
th><
td><
code>CookieLog <
var>filename</
var></
code></
td></
tr>
<
tr><
th><
a href="directive-dict.html#Context">$B%3%s%F%-%9%H(B:</
a></
th><
td>$B%5!<%
P@
_Dj%
U%!%$%
k(
B, $
B%
P!<%A%c%k%[%9%H(B</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Module">$B%b%8%e!<%
k(
B:</a></
th><
td>mod_log_config</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Compatibility">$B8_49@-(B:</
a></
th><
td>$B$3$N%G%#%l%/%F%#%V$OHs?d>)(B</
td></
tr>
<
p><
code class="directive">CookieLog</
code>
$B%G%#%l%/%F%#%V$O%/%C%-!<$
N%
m%.%
s%
0$
N$?$
a$
N%
U%!%$%
kL>$r(B
$B@_Dj$7$^$9!#(Bfilename $B$O(B <
code class="directive"><
a href="/mod/core.html#serverroot">ServerRoot</
a></
code>
$B$+$i$NAjBP%Q%9$G$9!#$3$N%G%#%l%/%F%#%V$O(B <
code>mod_cookies</
code> $B$H$N8_49@-$N$?$a$@$1$K(B
$BB8:_$7!";HMQ$O?d>)$5$l$F$$$^$;$s!#(B</
p>
<
div class="top"><
a href="#page-header"><
img alt="top" src="/images/up.gif" /></
a></
div>
<
div class="directive-section"><
h2><
a name="CustomLog" id="CustomLog">CustomLog</
a> <
a name="customlog" id="customlog">$B%G%#%l%/%F%#%V(B</
a></
h2>
<
table class="directive">
<
tr><
th><
a href="directive-dict.html#Description">$B@bL@(B:</
a></
th><
td>$B%m%0%U%!%$%k$NL>A0$H=q<
0$
r@
_Dj$
9$
k(
B</td></
tr>
<
tr><
th><
a href="directive-dict.html#Syntax">$B9=J8(B:</
a></
th><
td><
code>CustomLog <
var>file</
var>|<
var>pipe</
var>
<
var>format</
var>|<
var>nickname</
var>
[env=[!]<
var>environment-variable</
var>]</
code></
td></
tr>
<
tr><
th><
a href="directive-dict.html#Context">$B%3%s%F%-%9%H(B:</
a></
th><
td>$B%5!<%
P@
_Dj%
U%!%$%
k(
B, $
B%
P!<%A%c%k%[%9%H(B</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Module">$B%b%8%e!<%
k(
B:</a></
th><
td>mod_log_config</
td></
tr>
<
p><
code class="directive">CustomLog</
code> $B%G%#%l%/%F%#%V$O%5!<%
P$
X$
N%
j%/%(%
9%
H$
r(
B $
B%
m%
0<}=8$9$k$?$a$K;H$o$l$^$9!#%m%0$N=q<
0$,;
XDj$
5$
l!
"(B $B4D6-JQ?t$r;H$C$F%m%.%s%0$,>r7o$K1~$8$F9T$J$o$l$k$h$&$K$9$k$3$H$b$G$-$^$9!#(B</p> <p>$B%m%0$,=q$+$l$k>l=j$r;XDj$9$k:G=i$N0z?t$O0J2<$NFs$D$N7A<0$NCM$r(B $B$H$k$3$H$,$G$-$^$9(B:</p> <dd><code class="directive"><a href="/
mod/
core.html#
serverroot">ServerRoot</a></code> $B$+$i$NAjBP%Q%9$GI=$5$l$k%U%!%$%kL>!#(B</dd> <dd>$B%Q%$%WJ8;z(B "<code>|</
code>" $B$H!"$=$N8e$KI8=`F~NO$+$i%m%0$N(B
$B>pJs$r<
u$
1$
H$
k%
W%
m%
0%
i%`$
X$
N%
Q%
9$,
B3$$$?$
b$
N!#(
B <div class="warning"><
h3>$B%;%-%e%j%F%#(B</
h3>
<
p>$B$b$7%W%m%0%i%`$,;HMQ$5$l$?>l9g!"(B
httpd $B$,
5/
F0$5$l$?%f!<%
6$
H$
7$
F<B9T$5$l$^$9!#$3$l$O%5!<%
P$,(
B root $
B$
K$
h$
C$
F5/
F0$
5$
l$?>l9g$O(B root $B$K$J$j$^$9!#%W%m%0%i%`$,(B
$B0BA4$G$"$k$h$&$KN10U$7$F$/$@$5$$!#(B</
p>
<
div class="warning"><
h3>$BCm(B</
h3>
<
p>Unix $B$G$J$$%W%i%C%H%U%)!<%`$
G%
U%!%$%
k$
N%
Q%
9$
rF~
NO$
7$
F$$$
k$
H$-$
O!
"(B $B;HMQ$7$F$$$k%W%i%C%H%U%)!<%`$,%P%C%/%9%i%C%7%e$N;HMQ$r5v2D$7$F$$$?(B $B$H$7$F!"DL>o$N%9%i%C%7%e$@$1$r;H$&$h$&$K5$$r$D$1$F$/$@$5$$!#(B
$B0lHLE*$K!"@_Dj%U%!%$%kCf$G$O>o$KIaDL$N%9%i%C%7%e$N$_$r;H$&$h$&$K$9$k(B
<
p>$BFs$D$a$N0z?t$O%m%0%U%!%$%k$K2?$,=q$+$l$k$+$r;XDj$7$^$9!#(B
$BA0$K$"$k(B <
code class="directive"><
a href="#logformat">LogFormat</
a></
code> $B%G%#%l%/%F%#%V$K$h$j(B
$BDj5A$5$l$?(B <
var>nickname</
var> $B$+!"(B<
a href="#formats">$B%m%0$N=q<
0(
B</a>
$B$N$H$3$m$G@bL@$5$l$F$$$k!"L@<(
E*$
J(
B <var>format</
var> $BJ8;zNs$N(B
$B$I$A$i$+$r;XDj$9$k$3$H$,$G$-$^$9!#(B</
p>
<
p>$BNc$($P!"0J2<$
NFs$
D$
N%
G%#%
l%/%
F%#%
V72$
OA4$/
F1$
88z2L$
r$
b$?$
i$
7$^$
9(
B:</p>
<
div class="example"><
p><
code>
# CustomLog with format nickname<
br />
LogFormat "%h %l %u %t \"%r\" %>s %b" common<
br />
# CustomLog with explicit format string<
br />
<
p>$B;0$DL\$N0z?t$O>JN,2DG=$G!"%5!<%
P$
N4D6-$
K$
"$kJQ?t$,$"$
k$+$
J$$$+$
K(
B $
B1~$
8$
F%
j%/%(%
9%
H$
r%
m%
0<}=8$9$k$+$I$&$+$r@)8f$9$k$?$a$K;H$&$3$H$,$G$-$^$9!#(B
$B;XDj$5$l$?(B<
a href="/env.html">$B4D6-JQ?t(B</
a>$B$,%j%/%(%9%H$KBP$7$F(B
$B@_Dj$5$l$F$$$?>l9g(B ('<
code>env=!<
var>name</
var></
code>' $BJ8$,;H$o$l$?$H$-$O(B
$B@_Dj$5$l$F$$$J$$>l9g(B)$B!"%j%/%(%9%H$,%m%0<}=
8$
5$
l$^$
9!#(
B</p>
<
p>$B4D6-JQ?t$O(B <
code class="module"><
a href="/mod/mod_setenvif.html">mod_setenvif</
a></
code> $B%b%8%e!<%
k$
H(
B <code class="module"><
a href="/mod/mod_rewrite.html">mod_rewrite</
a></
code> $B%b%8%e!<%
k$
NN>J}$b$7$/$O(B
$BJRJ}$rMQ$$$F%j%/%(%9%H$4$H$K@_Dj$9$k$3$H$,$G$-$^$9!#(B
$BNc$($P!"%5!<%
P$
K$
"$k$9$Y$F$N(B GIF $B2hA|$X$N%j%/%(%9%H$rJL$N%m%0%U%!%$%k(B $B$K$O5-O?$7$?$$$1$l$I!"%
a%$%
s%
m%
0$
K$
O5-
O?$
7$?$/$
J$$!
"$H$$$&$H$-$O(B $B0J2<$N$b$N$r;H$&$3$H$,$G$-$^$9(B:</p> <div class="example"><p><code> SetEnvIf Request_URI \.gif$ gif-image<br /> <div class="top"><a href="#
page-
header"><img alt="top" src="/
images/
up.gif" /></a></div> <div class="directive-
section"><h2><a name="LogFormat" id="LogFormat">LogFormat</a> <a name="logformat" id="logformat">$B%G%#%l%/%F%#%V(B</a></h2> <table class="directive"> <tr><th><a href="directive-dict.html#
Description">$B@bL@(B:</a></th><td>$B%m%0%U%!%$%k$G;HMQ$9$k=q<0$r@_Dj$9$k(B</td></tr> <tr><th><a href="directive-dict.html#
Syntax">$B9=J8(B:</a></th><td><code>LogFormat <var>format</var>|<var>nickname</var> [<var>nickname</var>]</code></td></tr> <tr><th><a href="directive-dict.html#
Default">$B%G%U%)%k%H(B:</a></th><td><code>LogFormat "%
h %
l %
u %
t \
"%r\" %&
gt;
s %
b"</code></td></tr> <tr><th><a href="directive-dict.html#
Context">$B%3%s%F%-%9%H(B:</a></th><td>$B%5!<%P@_Dj%U%!%$%k(B, $B%P!<%A%c%k%[%9%H(B</td></tr> <tr><th><a href="directive-dict.html#
Module">$B%b%8%e!<%k(B:</a></th><td>mod_log_config</td></tr> <p>$B$3$N%G%#%l%/%F%#%V$O%"%/%;%
9%
m%
0%
U%!%$%
k$
N=q<0$r;XDj$7$^$9!#(B</
p>
<
p><
code class="directive">LogFormat</
code> $B%G%#%l%/%F%#%V$OFs$D$N7A<
0$
N$
I$
A$
i$+$
r(
B $
B$
H$
k$
3$
H$,$
G$-$^$
9!#:
G=i$
N7A<0$G$O0l$D$N0z?t$N$_$,;XDj$5$l!"(B
$BB3$/(B <
code class="directive">TransferLog</
code>
$B$G;XDj$5$l$?%m%0$G;H$o$l$k%m%0$N=q<
0$
r@
_Dj$
7$^$
9!#$
3$
NC1FH$
N0z?
t$
G$
O(
B $
B>e$N(B<
a href="#formats">$B%+%9%?%`%m%0=q<
0(
B</a>$B$G@bL@$5$l$F$$$k$h$&$K(B
<
var>format</
var> $B$rL@<(
E*$
K;
XDj$
9$
k$
3$
H$,$
G$-$^$
9!#(
B $
B$
b$
7$/$
O!
"2<$G@bL@$5$l$F$$$k$h$&$KA0$K(B <code class="directive">LogFormat</code> $B%G%#%l%/%F%#%V$GDj5A$5$l$?%m%0$N=q<0$r(B <var>nickname</var>$B$r;H$C$F(B $B;2>H$9$k$3$H$b$G$-$^$9!#(B</p> <p><code class="directive">LogFormat</code> $B%G%#%l%/%F%#%V$NFs$D$a$N7A<0$O(B <var>format</var> $B$K(B <var>nickname</var> $B$rM?$($^$9!#(B $B%U%)!<%^%C%HJ8;zNsA4BN$r:F$S=q$/$+$o$j$K!"(
B $
B$
3$
N(
B <var>nickname</
var> $B$rB3$-$N(B <
code class="directive">LogFormat</
code> $B%G%#%l%/%F%#%V$d(B
<
code class="directive">CustomLog</
code> $B%G%#%l%/%F%#%V$G;H$&$3$H$,$G$-$^$9!#(B
Nickname $B$rDj5A$9$k(B <
code class="directive">LogFormat</
code> $B%G%#%l%/%F%#%V$O(B
<
strong>$BB>$K$O2?$b$7$^$;$s(B</
strong> -- $B$9$J$o$A!"%K%C%/%M!<%`$
rDj5A(
B $
B$
9$
k$@$
1$
G!
"<B:]$K=q<0$rE,MQ$7$F%G%U%)%k%H$K$9$k$H$$$&$3$H$O9T$J$$$^$;$s!#(B $B$G$9$+$i!"$
3$
l$
OB3$/(
B <code class="directive"><
a href="#transferlog">TransferLog</
a></
code>
$B%G%#%l%/%F%#%V$K$O1F6A$rM?$($^$;$s!#(B
$B$5$i$K!"(B<
code class="directive">LogFormat</
code> $B%G%#%l%/%F%#%V$O4{B8$N(B nickname $B$r(B
$B;H$C$FJL$N(B nickname $B$rDj5A$9$k$3$H$O$G$-$^$;$s!#(BNickname $B$K$O(B
$B%Q!<%;%
s%
H5-
9f(
B (<code>%</
code>) $B$,4^$^$l$F$$$F$O$$$1$J$$$3$H$K$bCm0U(B
<
div class="example"><
h3>$BNc(B</
h3><
p><
code>
LogFormat "%v %h %l %u %t \"%r\" %>s %b" vhost_common
<
div class="top"><
a href="#page-header"><
img alt="top" src="/images/up.gif" /></
a></
div>
<
div class="directive-section"><
h2><
a name="TransferLog" id="TransferLog">TransferLog</
a> <
a name="transferlog" id="transferlog">$B%G%#%l%/%F%#%V(B</
a></
h2>
<
table class="directive">
<
tr><
th><
a href="directive-dict.html#Description">$B@bL@(B:</
a></
th><
td>$B%m%0%U%!%$%k$N0LCV$r;XDj(B</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Syntax">$B9=J8(B:</
a></
th><
td><
code>TransferLog <
var>file</
var>|<
var>pipe</
var></
code></
td></
tr>
<
tr><
th><
a href="directive-dict.html#Context">$B%3%s%F%-%9%H(B:</
a></
th><
td>$B%5!<%
P@
_Dj%
U%!%$%
k(
B, $
B%
P!<%A%c%k%[%9%H(B</
td></
tr>
<
tr><
th><
a href="directive-dict.html#Module">$B%b%8%e!<%
k(
B:</a></
th><
td>mod_log_config</
td></
tr>
<
p>$B$3$N%G%#%l%/%F%#%V$O!"%m%0=q<
0$
rD>@\;XDj$G$-$J$$$3$H$H!"(B
$B>r7oIU$-%m%.%s%0$,L5$$$3$H$r=|$/$H!"(B<
code class="directive"><
a href="#customlog">CustomLog</
a></
code> $B$HA4$/F1$80z?t$H8z2L$,$"$j$^$9!#(B
$BD>@\%m%0=q<
0$
r;
XDj$
9$
kBe$
o$
j$
K!
"%m%0$N=q<0$O$=$3$^$G$G0lHV:G8e$K;XDj$5$l$?(B $B%K%C%/%M!<%`$rDj5A$7$J$$(B <code class="directive"><a href="#
logformat">LogFormat</a></code> $B%G%#%l%/%F%#%V(B $B$GDj5A$5$l$?$b$N$r;H$$$^$9!#(B $B$b$7B>$N=q<0$,A4$/;XDj$5$l$F$$$J$$$H$-$O(B Common Log Format <div class="example"><h3>$BNc(B</h3><p><code> LogFormat "%
h %
l %
u %
t \
"%r\" %&
gt;
s %
b \
"%{Referer}i\" \
"%{User-agent}i\""<br /> <p><span>Available Languages: </span><a href="/
en/
mod/
mod_log_config.html" hreflang="en" rel="alternate" title="English"> en </a> |