我们在Linux机上安装了GoAccess v0.9。我们在nginx中有自定义的日志格式。
log_format timed_combined '$remote_addr - $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" "$http_x_forwarded_for" <msec=$msec|connection=$connection|connection_requests=$connection_requests|millis=$request_time>';但是当使用goaccess工具查看日志时,所有面板的服务时间参数显示为0.00us。goaccess.conf中使用的日志格式为
log-format %h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %D如何在Goaccess报表中显示正确的服务时间
发布于 2015-04-23 20:11:39
假设您的log-format是正确的,Nginx使用毫秒,所以您应该使用%T,而不是指定%D (微秒)。
log-format %h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %T更多关于custom log的信息。
https://stackoverflow.com/questions/29814084
复制相似问题