存档

  • squid 日志内容详解

    cat /var/log/squid/access.log|gawk '{print $4}'|sort|uniq -c|sort -nr
    93083 TCP_MISS/200
    33858 TCP_IMS_HIT/304
    13938 TCP_HIT/200
    5920 TCP_REFRESH_HIT/304
    4443 TCP_CLIENT_REFRESH_MISS/304
    3263 TCP_MISS/304
    3078 TCP_MEM_HIT/200
    2842 TCP_REFRESH_HIT/200
    2665 TCP_REFRESH_MISS/200
    2603 TCP_MISS/302
    2227 TCP_CLIENT_REFRESH_MISS/200
    2098 TCP_MISS/500
    1802 TCP_MISS/301
    [...]

    2009年9月1日 | 归档于 Squid
    标签:
  • Nginx日志格式配置

    access_log:
    语法: access_log path [format [buffer=size | off ]
    默认值: access_log log/access.log combined
    作用域: http, server, location
    指令 access_log 指派路径、格式和缓存大小。参数 "off" 将清除当前级别的所有 access_log 指令。如果未指定格式,则使用预置的 "combined" 格式。缓存不能大于能写入磁盘的文件的最大大小。在 FreeBSD 3.0-6.0 ,缓存大小无此限制。

    log_format:
    语法: log_format name format [format ...]
    默认值: log_format combined "..."
    作用域: http server
    指令log_format描述了一个日志项的格式:
    * $body_bytes_sent, the number of bytes, transmitted to client minus the response headers, variable is [...]

    2009年9月1日 | 归档于 Nginx
    标签:
  • Nginx 日志处理总结

    1.每天定时切割Nginx日志的脚本 [作者:张宴 ]

    cat > /usr/local/nginx/sbin/cut_nginx_log.sh > cat /var/spool/cron/root

    2009年8月23日 | 归档于 Nginx
    标签: ,
文章标签 ‘log’