Skip to content

Instantly share code, notes, and snippets.

@pi0
Last active July 9, 2016 21:36
Show Gist options
  • Save pi0/755893a283b5ac16c693ba94a33a5b0c to your computer and use it in GitHub Desktop.
Save pi0/755893a283b5ac16c693ba94a33a5b0c to your computer and use it in GitHub Desktop.
Export Docker Compose Nginx Logs
docker logs nginx_nginx_1 | grep -Po "(?<=nginx.1 \|.....).*" | pv > ~/nginx.log
goaccess -f nginx.log -o report.html
time_format %H:%M:%S %z
date_format %d/%b/%Y
log_format %v %h - - [%d:%t] "%r" %s %b "%R" "%u"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment