Lighttpd日志打印格式

检查lighttpd打印的日志时,有些字段意义模糊,就找了个对照说明,备份一下

原文地址:http://redmine.lighttpd.net/projects/1/wiki/Docs_ModAccesslog 

OptionDescription
%%a percent sign
%hname or address of remote-host
%lident name (not supported)
%uauthenticated user
%ttimestamp of the end-time of the request
%rrequest-line
%sstatus code
%bbytes sent for the body
%iHTTP-header field
%aremote address
%Alocal address
%Bsame as %b
%Ccookie field (not supported)
%Dtime used in ms (not supported)
%eenvironment
%fphysical filename
%Hrequest protocol (HTTP/1.0, ...)
%mrequest method (GET, POST, ...)
%n(not supported)
%o`response header`_
%pserver port
%P(not supported)
%qquery string
%Ttime used in seconds
%Urequest URL
%vserver-name
%VHTTP request host name
%Xconnection status
%Ibytes incomming
%Obytes outgoing

 文中的一些注意

If %s is written %>s or %<s the < and the > are ignored. They are supported for compatibility with apache.

%h will always return the IP address of the host, never the name. This makes it equivalent to %a, which is not implemented.

%a, %A, %{name}C, %D are all unimplemented as of 1.4.26 and 1.5.0-r2700

%i and %o expect the name of the field which should be written in curly brackets.

%q is not prepended with '?', unlike Apache

%{StrFTime format string}t is supported since 1.4.24.

%t does not work the same way it works in Apache (where the start of the request is recorded). Instead it shows the time the request actually got delivered. This is done due to performance reasons. For most users this does not matter as usually requests don't take long to get processed. In case you want to find out the time the request was started add the %T option to your log-string and subtract it's value from the time shown by %t.

 

转载于:https://www.cnblogs.com/zhaobolu/p/4283879.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值