Skip to content

Instantly share code, notes, and snippets.

@codeb2cc
Created August 20, 2013 10:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codeb2cc/6280031 to your computer and use it in GitHub Desktop.
Save codeb2cc/6280031 to your computer and use it in GitHub Desktop.
Nginx log format and GoAccess configuration.
# Nginx log format
log_format main '$remote_addr\t$remote_user\t$time_local\t$request_time\t$request\t'
'$status\t$body_bytes_sent\t$http_referer\t'
'$http_user_agent\t$http_x_forwarded_for';
# GoAccess configuration
# IMPORTANT: Replace all `\t` below with real tabs
date_format %d/%b/%Y:%T
log_format %h\t%^\t%d %^\t%T\t%r\t%s\t%b\t%R\t%u\t%^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment