基于响应时间的访问日志分析器
Access log profiler based on response time
Add %D to LogFormat.
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D" with_time
CustomLog logs/access_log with_timeAdd $request_time to log_format.
log_format with_time '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent" $request_time';
access_log /var/log/nginx/access.log with_time;Add %{duration}x to access-log directive
access-log:
path: /var/log/h2o/access.log
format: "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\" %{duration}x"Use default format
Add %D to varnishncsa -F option.
varnishncsa -a -w $logfile -D -P $pidfile -F '%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-agent}i" %D'Add Rack::CommonLogger to config.ru.
logger = Logger.new("/tmp/app.log")
use Rack::CommonLogger, loggerInstall via go command or download release file
# go >=1.16
go install github.com/matsuu/kataribe@latest
# go <1.16
go get -u github.com/matsuu/kataribeGenerate kataribe.toml
kataribe -generateEdit kataribe.toml
${EDITOR} kataribe.tomlPass access log to kataribe by stdin
cat /path/to/access.log | kataribe…Apache-2.0
暂无开放 Issues,或尚未同步最近议题。