{"id":41293451,"url":"https://github.com/samrocketman/nexus-requests-analyzer","last_synced_at":"2026-01-27T01:04:59.281Z","repository":{"id":334138393,"uuid":"1139519715","full_name":"samrocketman/nexus-requests-analyzer","owner":"samrocketman","description":"A minimal dependency CLI utility for analyzing Sonatype Nexus request logs to investigate request loads.","archived":false,"fork":false,"pushed_at":"2026-01-23T03:29:41.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T18:45:43.670Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/samrocketman.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-22T04:10:59.000Z","updated_at":"2026-01-23T03:28:56.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/samrocketman/nexus-requests-analyzer","commit_stats":null,"previous_names":["samrocketman/nexus-requests-analyzer"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/samrocketman/nexus-requests-analyzer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fnexus-requests-analyzer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fnexus-requests-analyzer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fnexus-requests-analyzer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fnexus-requests-analyzer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samrocketman","download_url":"https://codeload.github.com/samrocketman/nexus-requests-analyzer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samrocketman%2Fnexus-requests-analyzer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28794582,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-26T21:49:50.245Z","status":"ssl_error","status_checked_at":"2026-01-26T21:48:29.455Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-23T03:59:47.148Z","updated_at":"2026-01-27T01:04:59.273Z","avatar_url":"https://github.com/samrocketman.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sonatype Nexus Requests Analyzer\n\nProcesses a [Sonatype Nexus request.log][request.log] and attempts to make sense\nof a large volume of requests.  Intended to help track down sources of request\nload spikes (amount and data).\n\nConverts a Sonatype Nexus request log into YAML.\n\n## Dependencies\n\nMost of these are built into Linux distributions except for maybe jq and yq\nwhich can be downloaded from their GitHub releases.\n\n* GNU bash\n* BSD or GNU coreutils\n* GNU awk (on MacOS `brew install gawk`)\n* Python 2.7+ or Python 3.0+ (core Python only; no libraries necessary).\n* jq - [jqlang.org](https://jqlang.org/)\n* yq - [mikefarah/yq](https://github.com/mikefarah/yq)\n\n## Examples\n\nUsage examples which help you make the most of this utility.  It is designed to\nprocess input from Nexus request logs or its own YAML.  See [help] for options\ndocumentation.\n\nConvert a large request log to YAML for analyzing further.\n\n```bash\nnexus-requests-analyzer.sh -r path/to/requests.log \u003e /tmp/requests.yaml\n# summarize the output (all examples work with requests.yaml)\nnexus-requests-analyzer.sh /tmp/requests.yaml\n```\n\nSummarize a particular day or hour in a request log.\n\n```bash\ngrep 'some timestamp' path/to/requests.log | \\\n  nexus-requests-analyzer.sh\n```\n\nGet a spread of HTTP methods used by request count.\n\n```bash\nnexus-requests-analyzer.sh -s http_method -c path/to/requests.log\n```\n\nShow all host addresses which transferred more than 1GB without limit.\n\n```bash\nnexus-requests-analyzer.sh -s host -t 1000000000 -l 0 path/to/requests.log\n```\n\nPrint largest data transfers requested within same second period.\n\n```bash\nnexus-requests-analyzer.sh -s timestamp path/to/requests.log\n```\n\nFind all host addresses which downloaded or uploaded a particular file.  You\nmust first dump all requests filtered by the file path followed by summarizing\nrequests by `host` field.\n\n```bash\nnexus-requests-analyzer.sh -r -f path='/repository/example/file' path/to/requests.log | \\\n  nexus-requests-analyzer.sh -y -s host -l 0\n```\n\nFor a specific repository, get the top 10 bytes transferred by file within the\ngiven repository.\n\n```bash\nnexus-requests-analyzer.sh -r -f repository=example path/to/requests.log | \\\n  nexus-requests-analyzer.sh -y -s path\n```\n\nFor a specific repository, get the top 20 amount of requests by path.  Use yq to\npretty print the result.\n\n```bash\nnexus-requests-analyzer.sh -r -f repository=example path/to/requests.log | \\\n  nexus-requests-analyzer.sh -y -c -s path -l 20 | \\\n  yq -P\n```\n\n# Limitations\n\n- Script assumes Nexus is hosted on its own domain.  Workaround is substitute\n  the request log path with `sed` so that URL paths appear to be top-level.\n- Only `/repository/` URL requests are analyzed.  This script will not process\n  all requests because its intent is to analyze download patterns of hosted\n  artifacts.\n\n# License and Author\n\n[MIT Licensed] - Copyright 2026 Sam Gleske - https://github.com/samrocketman/nexus-requests-analyzer\n\n[request.log]: https://help.sonatype.com/en/logging.html#UUID-a3b553aa-d022-8659-b218-87e20786f957_bridgehead-idm234815356852628\n[help]: help.md\n[MIT Licensed]: LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocketman%2Fnexus-requests-analyzer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamrocketman%2Fnexus-requests-analyzer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamrocketman%2Fnexus-requests-analyzer/lists"}