DEV Community

loading...
Cover image for Quick and Clean Nginx dashboard

Quick and Clean Nginx dashboard

krishnakummar profile image krishna ・1 min read

Goaccess helps you to quickly put together a dashboard based on Nginx (and many other web servers) access logs.

This solution is very neat as there is no need to run any frameworks for UI, no charting library plugin etc.

Goaccess can parse the access logs, calculate the HTTP stats based on every log entry and generate a self contained .html file. As a bonus it als allows csv, json exports

Docker command to generate a on-demand one time access log report

cat access.log | docker run --rm -i -e LANG=$LANG allinurl/goaccess -a -o html --log-format COMBINED - > report.html

Docker command for real-time report

cat access.log | docker run -p 7890:7890 --rm -i -e LANG=$LANG allinurl/goaccess -a -o html --log-format COMBINED --real-time-html - > report.html

Sample dashboard output

There is much more to Goaccess, In this story I just wanted to share my enthusiasm in using this cool piece of OSS.

Discussion

pic
Editor guide