DEV Community

Cover image for Quick and Clean Nginx dashboard
krishna
krishna

Posted on

4 2

Quick and Clean Nginx dashboard

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.

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay