{"id":27334918,"url":"https://github.com/dmuth/nginxtop","last_synced_at":"2025-04-12T14:46:38.525Z","repository":{"id":16657539,"uuid":"19413050","full_name":"dmuth/nginxtop","owner":"dmuth","description":"UNIX top-like app for nginx (or Apache, if you wish) access logs.","archived":false,"fork":false,"pushed_at":"2020-09-03T22:22:00.000Z","size":6,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-05-02T06:07:36.832Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dmuth.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-03T22:03:56.000Z","updated_at":"2021-02-14T22:51:20.000Z","dependencies_parsed_at":"2022-07-26T06:16:23.496Z","dependency_job_id":null,"html_url":"https://github.com/dmuth/nginxtop","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fnginxtop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fnginxtop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fnginxtop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dmuth%2Fnginxtop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dmuth","download_url":"https://codeload.github.com/dmuth/nginxtop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248585249,"owners_count":21128974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-12T14:46:37.735Z","updated_at":"2025-04-12T14:46:38.518Z","avatar_url":"https://github.com/dmuth.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nginxtop\n\nUNIX top-like app for nginx (or Apache, if you wish) access logs.\n\nEvery so often, a poorly behaved spammer or web crawler will hit one of the websites \nI manage, and proceed to load the same pages over and over, causing a resource issue \nand possibly even a Denial of Service.  I got tired of this, so I built my own tool to determine \nin real time who the culrprits were.\n\n\n## Installation\n\n### Via npm (recommended)\n\n    npm install -g nginxtop\n    \nThis will install nginxtop into /usr/local/bin/ or somewhere else likely to be in your path.\n\n\n### From source\n\n    git@github.com:dmuth/nginxtop.git\n    cd nginxtop\n\nThis will check out a copy of the nginxtop app to your current directory.\n\n\n## Usage\n\n    tail -f /var/log/nginx/access.log | nginxtop [ -n num_hosts_to_print] [-i report_interval_in_seconds]\n\n    \n## Testing\n\nThere is a file called `test.log` in this directory.  It contains sample log entries.  To test nginxtop using it:\n\n    tail -fn100 test.log | nginxtop -n 5\n\nYou'll start to see output like this once every second:\n\n                 Nginxtop Top Hosts\n    ===========================================\n                        127.0.0.10:     14 hits\n                         127.0.0.1:      7 hits\n                         127.0.0.2:      6 hits\n                         127.0.0.3:      6 hits\n                         127.0.0.4:      5 hits\n\n\n## Where to find this\n\n- [https://bitbucket.org/dmuth/nginxtop](https://bitbucket.org/dmuth/nginxtop)\n- [https://github.com/dmuth/nginxtop](https://github.com/dmuth/nginxtop)\n\n\n### Feedback\n\nHave feedback?  Want to report bugs?\n\nHit me up via email (doug.muth@gmail.com) or via many other methods listed at:\n[http://www.dmuth.org/contact](http://www.dmuth.org/contact)\n\nEnjoy!\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fnginxtop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdmuth%2Fnginxtop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdmuth%2Fnginxtop/lists"}