IHS日志格式配置浅析.doc

supermxb 13年前
     <p style="text-align:center;margin:0cm 0cm 0pt;mso-outline-level:1;" class="MsoNormal" align="center"><b style="mso-bidi-font-weight:normal;"><span style="font-size:15pt;" lang="EN-US"><span style="font-family:'Times New Roman';">IHS</span></span></b><b style="mso-bidi-font-weight:normal;"><span style="font-family:宋体;font-size:15pt;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">日志格式配置浅析</span></b><b style="mso-bidi-font-weight:normal;"><span style="font-size:15pt;" lang="EN-US">       <!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /-->       <o:p></o:p></span></b></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">IHS</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">中的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">access</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">日志信息主要由</span><span lang="EN-US"><span style="font-family:'Times New Roman';">Apache</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">模块</span><span lang="EN-US"><span style="font-family:'Times New Roman';"> mod_log_config</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">来控制,他提供了三个指令来控制最终写成的日志信息。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">TransferLog</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">用来指定日志文件,</span><span lang="EN-US"><span style="font-family:'Times New Roman';">LogFormat</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">用来定义日志格式,</span><span lang="EN-US"><span style="font-family:'Times New Roman';">CustomLog</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">可以同时完成指定日志文件和定义日志格式。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">而其中</span><span lang="EN-US"><span style="font-family:'Times New Roman';">LogFormat</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">和</span><span lang="EN-US"><span style="font-family:'Times New Roman';">CustomLog</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">则是通过固定的字符串来替代请求的信息:</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">特殊字符</span><span lang="EN-US"><span style="mso-spacerun:yes;"><span style="font-family:'Times New Roman';">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">意义</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%%<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">百分号</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(Apache        <!--?xml:namespace prefix = st1 ns = "urn:schemas-microsoft-com:office:smarttags" /-->        <st1:chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" w:st="on">         2.0.44        </st1:chsdate></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">或更高的版本</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%a<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">远端</span><span lang="EN-US"><span style="font-family:'Times New Roman';">IP</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">地址</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%A<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">本机</span><span lang="EN-US"><span style="font-family:'Times New Roman';">IP</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">地址</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%B<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">除</span><span lang="EN-US"><span style="font-family:'Times New Roman';">HTTP</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">头以外传送的字节数</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%b<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">以</span><span lang="EN-US"><span style="font-family:'Times New Roman';">CLF</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">格式显示的除</span><span lang="EN-US"><span style="font-family:'Times New Roman';">HTTP</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">头以外传送的字节数,也就是当没有字节传送时显示</span><span lang="EN-US"><span style="font-family:'Times New Roman';">'-'</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">而不是</span><span lang="EN-US"><span style="font-family:'Times New Roman';">0</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{Foobar}C<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">在请求中传送给服务端的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">cookieFoobar</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的内容。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%D<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">服务器处理本请求所用时间,以微为单位。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{FOOBAR}e<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">环境变量</span><span lang="EN-US"><span style="font-family:'Times New Roman';">FOOBAR</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的值</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%f<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">文件名</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%h<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">远端主机</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%H<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">请求使用的协议</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{Foobar}i<span style="mso-spacerun:yes;">   </span><span style="mso-spacerun:yes;"> </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">发送到服务器的请求头</span><span lang="EN-US"><span style="font-family:'Times New Roman';">Foobar:</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的内容。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%l<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">远端登录名</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">由</span><span lang="EN-US"><span style="font-family:'Times New Roman';">identd</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">而来,如果支持的话</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">,除非</span><span lang="EN-US"><span style="font-family:'Times New Roman';">IdentityCheck</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">设为</span><span lang="EN-US"><span style="font-family:'Times New Roman';">"On"</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">,否则将得到一个</span><span lang="EN-US"><span style="font-family:'Times New Roman';">"-"</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%m<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">请求的方法</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{Foobar}n<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">来自另一个模块的注解</span><span lang="EN-US"><span style="font-family:'Times New Roman';">Foobar</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的内容。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{Foobar}o<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">应答头</span><span lang="EN-US"><span style="font-family:'Times New Roman';">Foobar:</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的内容。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%p<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">服务器服务于该请求的标准端口。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%P<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">为本请求提供服务的子进程的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">PID</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{format}P<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">服务于该请求的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">PID</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">或</span><span lang="EN-US"><span style="font-family:'Times New Roman';">TID(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">线程</span><span lang="EN-US"><span style="font-family:'Times New Roman';">ID)</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">,</span><span lang="EN-US"><span style="font-family:'Times New Roman';">format</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">的取值范围为:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">pid</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">和</span><span lang="EN-US"><span style="font-family:'Times New Roman';">tid(        <st1:chsdate isrocdate="False" islunardate="False" day="30" month="12" year="1899" w:st="on">         2.0.46        </st1:chsdate></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">及以后版本</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">以及</span><span lang="EN-US"><span style="font-family:'Times New Roman';">hextid(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">需要</span><span lang="EN-US"><span style="font-family:'Times New Roman';">APR1.2.0</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">及以上版本</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%q<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">查询字符串</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">若存在则由一个</span><span lang="EN-US"><span style="font-family:'Times New Roman';">"?"</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">引导,否则返回空串</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%r<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">请求的第一行</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%s<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">状态。对于内部重定向的请求,这个状态指的是原始请求的状态,</span><span lang="EN-US"><span style="font-family:'Times New Roman';">---%>s</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">则指的是最后请求的状态。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%t<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">时间,用普通日志时间格式</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">标准英语格式</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%{format}t<span style="mso-spacerun:yes;">    </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">时间,用</span><span lang="EN-US"><span style="font-family:'Times New Roman';">strftime(3)</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">指定的格式表示的时间。</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">默认情况下按本地化格式</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%T<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">处理完请求所花时间,以秒为单位。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%u<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">远程用户名</span><span lang="EN-US"><span style="font-family:'Times New Roman';">(</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">根据验证信息而来;如果返回</span><span lang="EN-US"><span style="font-family:'Times New Roman';">status(%s)</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">为</span><span lang="EN-US"><span style="font-family:'Times New Roman';">401</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">,可能是假的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">)</span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%U<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">请求的</span><span lang="EN-US"><span style="font-family:'Times New Roman';">URL</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">路径,不包含查询字符串。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%v<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">对该请求提供服务的标准</span><span lang="EN-US"><span style="font-family:'Times New Roman';">ServerName</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%V<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">根据</span><span lang="EN-US"><span style="font-family:'Times New Roman';">UseCanonicalName</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">指令设定的服务器名称。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%X<span style="mso-spacerun:yes;">        </span>"</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">请求完成时的连接状态:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">X= </span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">连接在应答完成前中断。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';"><span style="mso-spacerun:yes;">        </span>+=<span style="mso-spacerun:yes;">         </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">应答传送完后继续保持连接。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';"><span style="mso-spacerun:yes;">  </span><span style="mso-spacerun:yes;">      </span>-=<span style="mso-spacerun:yes;">         </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">应答传送完后关闭连接。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US"><span style="mso-spacerun:yes;"><span style="font-family:'Times New Roman';font-size:small;"> </span></span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%I<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">接收的字节数,包括请求头的数据,并且不能为零。要使用这个指令你必须启用</span><span lang="EN-US"><span style="font-family:'Times New Roman';">mod_logio</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">模块。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span lang="EN-US"><span style="font-family:'Times New Roman';">%O<span style="mso-spacerun:yes;">        </span></span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">发送的字节数,包括请求头的数据,并且不能为零。要使用这个指令你必须启用</span><span lang="EN-US"><span style="font-family:'Times New Roman';">mod_logio</span></span><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">模块。</span></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span lang="EN-US">      <o:p>       <span style="font-family:'Times New Roman';font-size:small;"> </span>      </o:p></span></p>    <p style="margin:0cm 0cm 0pt;" class="MsoNormal"><span style="font-size:small;"><span style="font-family:宋体;mso-ascii-font-family:'Times New Roman';mso-hansi-font-family:'Times New Roman';">参考文档:</span><span lang="EN-US"><span style="font-family:'Times New Roman';">http://httpd.apache.org/docs/2.0/mod/mod_log_config.html#logformat</span></span></span></p>