ngxtop: Real-time metrics for nginx server
ngxtop parses your nginx access log and outputs useful,
top-like, metrics of your nginx server. So you can tell what is happening with your server in real-time.
ngxtopis designed to run in a short-period time just like the
topcommand for troubleshooting and monitoring your Nginx server at the moment. If you need a long running monitoring process or storing your webserver stats in external monitoring / graphing system, you can try Luameter.
ngxtop tries to determine the correct location and format of nginx access log file by default, so you can just run
ngxtop and having a close look at all requests coming to your nginx server. But it does not limit you to nginx and the default top view.
ngxtop is flexible enough for you to configure and change most of its behaviors. You can query for different things, specify your log and format, even parse remote Apache common access log with ease. See sample usages below for some ideas about what you can do with it.
pip install ngxtop
ngxtop is primarily developed and tested with python2 but also supports python3.
View top source IPs of clients
List 4xx or 5xx responses together with HTTP Referer
Parse apache log from remote server with common format