{"id":41442618,"url":"https://github.com/jfsmig/nginx-logs","last_synced_at":"2026-01-23T14:58:08.900Z","repository":{"id":50731337,"uuid":"263725446","full_name":"jfsmig/nginx-logs","owner":"jfsmig","description":"NGiNX access logs parser, portable pure golang","archived":false,"fork":false,"pushed_at":"2021-03-06T15:32:11.000Z","size":17,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-15T04:15:20.022Z","etag":null,"topics":["access-logs","go","go-application","go-tools","golang","golang-application","golang-tools","log-analysis","log-parser","log-parsing","nginx"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jfsmig.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-13T19:33:33.000Z","updated_at":"2023-03-06T23:43:48.000Z","dependencies_parsed_at":"2022-09-10T19:51:14.871Z","dependency_job_id":null,"html_url":"https://github.com/jfsmig/nginx-logs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jfsmig/nginx-logs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfsmig%2Fnginx-logs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfsmig%2Fnginx-logs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfsmig%2Fnginx-logs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfsmig%2Fnginx-logs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfsmig","download_url":"https://codeload.github.com/jfsmig/nginx-logs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfsmig%2Fnginx-logs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28694458,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T14:15:13.573Z","status":"ssl_error","status_checked_at":"2026-01-23T14:09:05.534Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["access-logs","go","go-application","go-tools","golang","golang-application","golang-tools","log-analysis","log-parser","log-parsing","nginx"],"created_at":"2026-01-23T14:58:08.054Z","updated_at":"2026-01-23T14:58:08.893Z","avatar_url":"https://github.com/jfsmig.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nlogx: NGiNX access log parser \n\nExtract meaningful information from NGiNX access logs.\n\n## Getting Started\n\n```shell script\ngo install github.com/jfsmig/nginx-logs/nlogx\n```\n\n``nlogx`` is designed to consume its standard input and produce valuable information\non its standard output. Only the\n\nFor each record in the access log, ``nlogx`` dumps a refined line with only a few useful fields:\n* The source address of the request\n* The day it happened\n* The time of day\n* The request's HTTP method\n* the \n* The URL path\n* The HTTP referrer field\n* The beginning of the User-agent\n\n## Usage\n\nWithout format flag, ``nlogx`` produces items that are easy to parse.\n\n```shell script\n$ nlogx \u003c /path/to/log/file.access \\\n  | while read SRC DAY TIME CODE PATH REFERRER AGENT ; do \\\n      echo src=$SRC day=${DAY} time=${TIME} code=$CODE path=$PATH ref=$REFERRER agent=$AGENT ; \\\n  done\nsrc=35.247.12.10 day=2020-05-13 time=20:15:43 code=301 path=/ ref=- agent=\"-\"\nsrc=35.247.12.10 day=2020-05-13 time=20:15:43 code=200 path=/index.html ref=http://gunkan.io/ agent=\"-\"\nsrc=195.54.160.121 day=2020-05-13 time=20:49:39 code=200 path=/index.html ref=http://51.38.234.78:80/api/jsonws/invoke agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chro\nme/78.0.3904.108 Safari/537.36\"\n```\n\nThe `--json` (or `-j`) flag produce a stream of JSON objects, each on one line. The output is then\nvery ease to parse with tools like ``jq``:\n\n```shell script\n$ nlogx --json \u003c /path/to/log/file.access | jq .src | sort | uniq -c\n1 \"195.54.160.121\"\n2 \"35.247.12.10\"\n```\n\nThe ``--day`` (or ``-d``) option expects an integer (named `N` here-after) and it triggers the filtering of the lines\nregarding the previous `N` days.\n\nThe ``--agent`` (or ``-A``) flag remove access log records exhibiting User-Agent fields know to belong to bots. \n\nThe ``--source`` (or ``-s``) flag triggers the filtering of well-known source requests. So you can remove your own\nprobes, monitoring queries, etc.\n\nThe ``--addr`` (or ``-x``) options expects an argument that is an address, and only the access log\nrecords from the given source will be displayed. The option can be repeated.\n\nThe ``--human`` (or ``-H``) flag has an effect with the default format of the output and produces lines\nwith an alignment that make them more suitable for human readers. As a trade-off, the output is harder to parse.\n\n## How To Contribute\n\nContributions are what make the open source community such an amazing place.\nAny contributions you make are greatly appreciated.\n\n1. Fork the Project\n2. Create your Feature Branch (git checkout -b feature/AmazingFeature)\n3. Commit your Changes (git commit -m 'Add some AmazingFeature')\n4. Push to the Branch (git push origin feature/AmazingFeature)\n5. Open a Pull Request\n\nFor more information, please refer to [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nDistributed under the Mozilla Public License v2. See [LICENSE](./LICENSE) for more information.\n\nI strongly believe in Open Source for many reasons:\n* For software quality purposes because a software with open sources is the best\n  way to have its bugs identified and fixed as soon as possible.\n* For a greater adoption, we chose a deliberately liberal license so that\n  there cannot be any legal concern.\n* Because I do not expect to make any money with this, ever.\n\n## Contact\n\nFollow the development on GitHub with the [jfsmig/nginx-logs](https://github.com/jfsmig/nginx-logs) project.\n\n## Acknowledgements\n\nWe welcome any volunteer and we already have a list of\n[amazing authors of nlogx](./AUTHORS.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfsmig%2Fnginx-logs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfsmig%2Fnginx-logs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfsmig%2Fnginx-logs/lists"}