Skip to content

ngxtop

Command-line tool that shows live nginx traffic stats from your access log

Permissive (OSI) · MIT

Listed by , founder & editor

16

Health

Dormant

Overview

Stars

6,522

Last commit

9 months ago

Mar 2026

Repository age

12 years

since Mar 2014

Latest version

–

Contributors

–

Releases

0

last 12 months

Language

Python

ngxtop reads an nginx access log and prints a top-style summary of what your server is handling right now. It shows request counts, requests per second, average bytes sent and a breakdown of 2xx, 3xx, 4xx and 5xx responses, grouped by request path by default.

It is a Python package installed with pip. By default it tries to find the log file and its format on its own, then watches for new lines as they are written. You can point it at a specific log, give a log format, group by another variable, filter records, set the report interval and limit the rows. It reads the combined and common formats, plus Caddy JSON logs, and it can parse an Apache common access log too.

It is built for short troubleshooting sessions, not for long-running monitoring or storing stats. It does not replace a hosted log analytics service. It fits as a quick local check on a server you already run. Development has been quiet lately.

Who it's for

Sysadmins debugging a busy nginx server

You get live per-path counts and status code totals in the terminal without setting up a monitoring stack.

Skip if: You need long-term storage, dashboards or alerting; use a full monitoring system.

Developers checking traffic on a staging box

You can run one command over SSH and see which endpoints get hit and which return errors.

Skip if: Your logs are shipped to a central service and you never log in to the web server.

Caddy or Apache operators who want a quick log view

It parses Caddy JSON and common-format logs as well as nginx.

Skip if: Your logs use a custom format you do not want to describe by hand.

The problem it solves

Reading raw nginx access logs with tail and grep is slow when you are trying to see what is hitting a server right now. ngxtop turns the log into a live table of counts, bytes and status codes so you can spot hot paths and errors quickly.

Strengths

  • Shows requests per second and 2xx to 5xx counts in a live top-style table
  • Detects the nginx log location and format by default
  • Reads combined, common and Caddy JSON log formats
  • Group-by, filter and order options let you change the default query
  • MIT license and a one-line pip install

Trade-offs

  • Meant for short troubleshooting runs, not long-running monitoring
  • No built-in storage or graphing of historical stats
  • Developed mainly against Python 2, with Python 3 support added
  • No commits from contributors in the last 90 days and no recent releases

Self-host ngxtop

Self-hostable
No (desktop or local app)

Quick start

pip install ngxtop

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is ngxtop free?

Yes. It is released under the MIT license.

How do I install it?

Run pip install ngxtop. It is a Python package.

Does it only work with nginx?

No. It reads the combined and common log formats and Caddy JSON access logs. It can also parse a remote Apache common access log.

Does it show past traffic?

By default it ignores existing lines and watches new ones. The no-follow flag makes it process the current contents of the log.

Similar tools in Log management tools

logdy-core

Log management tools

Single-binary log viewer that shows piped or tailed logs in a local web UI

2.3k 76 15 months ago Dormant Apache-2.0

VictoriaLogs

Log management tools

Schema-free log database that scales from one node to a cluster

2.5k 218 today Thriving Apache-2.0

Replaces Splunk

Matano

Log management tools

Serverless security data lake on AWS for teams that write detections as code

1.7k 121 2 years ago Dormant Apache-2.0

nerdlog

Log management tools

Terminal log viewer that queries many Linux hosts over SSH, with a timeline histogram

1.6k 41 2 months ago Active BSD-2-Clause

go-csp-collector

Log management tools

Self-hosted collector that logs browser CSP, NEL, COOP and COEP reports to stdout

132 31 12 days ago Thriving MIT

logdeck

Log management tools

Self-hosted log viewer and alerting tool for Docker and Podman containers

150 10 5 days ago Active GPL-3.0