Skip to content

Conversation

@crishoj
Copy link

@crishoj crishoj commented Mar 25, 2025

We recently migrated from Nginx to Caddy, and the only thing I found myself missing is the fantastic ngxtop utility.

Thus, I thought I'd do a quick attempt with Claude Code to add support for Caddy log formats.

ngxtop -l /var/log/caddy/access.log -f caddy top host
running for 26 seconds, 7750 records processed: 296.93 req/sec

top host
| host          |   count |
|---------------+---------|
| imusic.se     |    1923 |
| imusic.pt     |    1671 |
| imusic.pl     |    1146 |
| imusic.br.com |     393 |
| imusic.co     |     347 |
| imusic.de     |     336 |
| imusic.au     |     309 |
| imusic.nl     |     235 |
| imusic.no     |     231 |
| imusic.fr     |     178 |
ngxtop -l /var/log/caddy/access.log -f caddy top remote_addr -n 25
running for 102 seconds, 36898 records processed: 361.39 req/sec

top remote_addr
| remote_addr     |   count |
|-----------------+---------|
| 66.249.77.96    |      63 |
| 66.249.77.98    |      59 |
| 66.249.75.5     |      59 |
| 66.249.77.230   |      58 |
| 66.249.75.7     |      56 |
| 66.249.75.131   |      56 |
| 66.249.75.234   |      53 |
| 192.178.6.101   |      53 |
| 66.249.77.99    |      51 |
| 66.249.77.100   |      51 |
| 136.243.228.182 |      51 |
| 13.58.91.217    |      51 |
| 83.94.121.58    |      50 |
| 66.249.77.97    |      50 |
| 66.249.77.233   |      50 |
| 66.249.75.133   |      50 |
| 192.178.6.96    |      50 |
| 66.249.75.8     |      49 |
| 66.249.75.233   |      49 |
| 66.249.77.232   |      48 |
| 192.178.6.105   |      47 |
| 192.178.6.100   |      47 |
| 66.249.77.226   |      46 |
| 66.249.77.225   |      46 |
| 66.249.75.6     |      46 |

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant