Nginx by default will output a combined log format (NCSA).
GoAccess will automatically recognize it if you pick the first option from the configuration dialog (or permanently uncomment the NCSA Combined Log Format from your config file.)
If you are interested to log the request time, then you need to modify your nginx config file and add your custom log format:
vi /etc/nginx/nginx.conf
then add:
log_format timed_combined '$remote_addr - $remote_user [$time_local] ' '"$request" $status $body_bytes_sent ' '"$http_referer" "$http_user_agent" ' '$request_time';
and change the access log to use the new format:
access_log /var/log/nginx/timed.log timed_combined;
and restart nginx
Make sure your access.log is now logging the request time. Then you can add %T
to your goaccess log-format
as:
log-format %h %^[%d:%t %^] "%r" %s %b "%R" "%u" %T