Nginx 服务时间在goaccess工具中显示0.0us

Nginx 服务时间在goaccess工具中显示0.0us,nginx,analyzer,goaccess,Nginx,Analyzer,Goaccess,我们在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|c

我们在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报告中提供的正确时间假定日志格式正确,Nginx使用毫秒,因此不应指定%D微秒,而应使用%T

有关的详细信息。

假设您的日志格式正确,Nginx使用毫秒,因此不应指定%D微秒,而应使用%T

有关的详细信息。

您可能希望使用%t,它似乎是在v0.9中引入的h%^[%d:%t%^]%r%s%b%r%u%^%t您可能想使用%t,它似乎是在v0.9中引入的。%th%^[%d:%t%^]%r%s%b%r%u%^%t
log-format %h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %D
log-format %h %^[%d:%^] "%r" %s %b "%R" "%u" %^ %T