zoukankan      html  css  js  c++  java
  • 【linux]】lighttpd的日志格式

    看lighttpd的日志时,对某些字段的含义不太清楚,找到个配置说明如下,希望对分析lighttpd日志有帮助。

    lighttpd.conf中的日志格式配置:

    accesslog.format = "%{X-Forwarded-For}i %l %u %t "%r" %>s %b mod_gzip: %{gzip_ratio}npct. "%{Referer}i" %{Cookie}i "%{User-Agent}i" model:"%{MM

    实际的日志:

    xxx.xx.xx.x - - [21/Aug/2013:16:39:39 +0800] "GET /xqsingle/?xxxxx   HTTP/1.1" 200 49681 mod_gzip: 100pct. "-" xx "-" model:"-"

    问题:49681代表什么?

    方法:对照下表,检查日志格式配置

    1. %%     a percent sign  
    2. %h     name or address of remote-host  
    3. %l     ident name (not supported)  
    4. %u     authenticated user  
    5. %t     timestamp of the end-time of the request  
    6. %r     request-line   
    7. %s     status code   
    8. %b     bytes sent for the body  
    9. %i     HTTP-header field  
    10. %a     remote address  
    11. %A     local address  
    12. %B     same as %b  
    13. %C     cookie field (not supported)  
    14. %D     time used in ms (not supported)  
    15. %e     environment  
    16. %f     physical filename  
    17. %H     request protocol (HTTP/1.0, ...)  
    18. %m     request method (GET, POST, ...)  
    19. %n     (not supported)  
    20. %o     `response header`_  
    21. %p     server port  
    22. %P     (not supported)  
    23. %q     query string  
    24. %T     time used in seconds  
    25. %U     request URL  
    26. %v     server-name  
    27. %V     HTTP request host name  
    28. %X     connection status  
    29. %I     bytes incomming  
    30. %O     bytes outgoing

    回答:代表返回的字节大小

  • 相关阅读:
    Quagga How to use Quagga
    Quagga Case 4
    Quagga Case 3
    Quagga Case 2
    Quagga Routing Suite
    quagga
    quagga 的原理解析 zebra原理解析
    zebra线程管理源码简析
    【习题 4-8 UVA
    【习题 4-7 UVA
  • 原文地址:https://www.cnblogs.com/mangu-uu/p/3273215.html
Copyright © 2011-2022 走看看