lighttpd 日志格式设置
来源:互联网 发布:c语言头文件怎么写 编辑:程序博客网 时间:2024/06/04 18:37
lighttpd的日志格式是可以自己定义的,通过在lighttpd 的配置文件 lighttpd.conf 中通过 accesslog.format 参数来指定
支持的参数含义如下:
%% a percent sign%h name or address of remote-host%l ident name (not supported)%u authenticated user%t timestamp of the end-time of the request%r request-line %s status code %b bytes sent for the body%i HTTP-header field%a remote address%A local address%B same as %b%C cookie field (not supported)%D time used in ms (not supported)%e environment%f physical filename%H request protocol (HTTP/1.0, ...)%m request method (GET, POST, ...)%n (not supported)%o `response header`_%p server port%P (not supported)%q query string%T time used in seconds%U request URL%v server-name%V HTTP request host name%X connection status%I bytes incomming%O bytes outgoing
参数示例:
accesslog.format = "%h %l %u %t \"%m http://%v%U?%q %H\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" \"%{my_uniq_ckid}C\""
日志内容示例:
127.0.0.1 - - [28/Apr/2012:17:42:50 +0800] "GET http://www.sample.com/? HTTP/1.1" 200 0 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; InfoPath.2)" "-"
- lighttpd 日志格式设置
- lighttpd 日志格式设置
- Nginx日志格式设置
- Nginx日志格式设置
- Lighttpd安装日志
- Lighttpd安装日志
- Git日志格式、颜色设置
- apache日志格式及日志分析软件格式设置
- lighttpd 设置http头
- Nginx 用log_format设置日志格式
- Nginx 用log_format设置日志格式
- Postgres log_line_prefix 设置日志输出格式 log_line_prefix 设置日志输出格式
- lighttpd安全认证设置实践
- lighttpd
- lighttpd
- lighttpd
- lighttpd
- Nginx服务器log_format设置更详细的日志格式
- jQuery事件 实例
- 代码资源
- 中文化和国际化问题权威解析
- jQuery 效果
- 用.net获取重定向之后的地址
- lighttpd 日志格式设置
- 第十周 任务三
- Python中文问题研究
- Safely Merging Many Datasets
- 面试所见题目
- Visual Studio 2010安装Entity Framework办法
- 集线器,路由器,交换机,网关,网桥的区别和功能原理
- winCE中采用DMA传输数据的方法
- window.open控制不了宽度和高度的解决方法