nginx - Time Served shows 0.0us in goaccess tool -
we installed goaccess v0.9 in our linux machine. have customized log format in 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>';
but while viewing logs using goaccess tool, time served parameter shows 0.00us panels. log format used in goaccess.conf
log-format %h %^[%d:%^] "%r" %s %b "%r" "%u" %^ %d
how display correct time served in goaccess report
assuming log-format
correct, nginx uses milliseconds, instead of specifying %d
(microseconds), should use %t
.
log-format %h %^[%d:%^] "%r" %s %b "%r" "%u" %^ %t
more custom log.