Last active
July 9, 2016 21:36
-
-
Save pi0/755893a283b5ac16c693ba94a33a5b0c to your computer and use it in GitHub Desktop.
Export Docker Compose Nginx Logs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker logs nginx_nginx_1 | grep -Po "(?<=nginx.1 \|.....).*" | pv > ~/nginx.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
goaccess -f nginx.log -o report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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