{"id":14978577,"url":"https://github.com/ei-grad/nginx2es","last_synced_at":"2025-08-26T03:08:49.277Z","repository":{"id":54965699,"uuid":"103934489","full_name":"ei-grad/nginx2es","owner":"ei-grad","description":"Put parsed access.log to Elasticsearch (the right way)","archived":false,"fork":false,"pushed_at":"2021-01-19T06:46:40.000Z","size":65,"stargazers_count":3,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-03T04:28:44.682Z","etag":null,"topics":["elasticsearch","logging","nginx"],"latest_commit_sha":null,"homepage":"https://github.com/ei-grad/nginx2es","language":"Python","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/ei-grad.png","metadata":{"files":{"readme":"README.rst","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":"2017-09-18T12:11:58.000Z","updated_at":"2019-08-07T09:01:02.000Z","dependencies_parsed_at":"2022-08-14T07:40:15.772Z","dependency_job_id":null,"html_url":"https://github.com/ei-grad/nginx2es","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Fnginx2es","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Fnginx2es/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Fnginx2es/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ei-grad%2Fnginx2es/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ei-grad","download_url":"https://codeload.github.com/ei-grad/nginx2es/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233275515,"owners_count":18651573,"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":["elasticsearch","logging","nginx"],"created_at":"2024-09-24T13:57:56.745Z","updated_at":"2025-01-10T00:04:36.154Z","avatar_url":"https://github.com/ei-grad.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Put parsed Nginx access.log to Elasticsearch\n============================================\n\nNginx access.log have to be formatted with this format:\n\n.. code-block:: nginx\n\n    log_format main_ext\n        '$remote_addr $http_host $remote_user [$time_local] \"$request\" '\n        '$status $body_bytes_sent \"$http_referer\" '\n        '\"$http_user_agent\" \"$http_x_forwarded_for\" '\n        'rt=$request_time ua=\"$upstream_addr\" '\n        'us=\"$upstream_status\" ut=\"$upstream_response_time\" '\n        'ul=\"$upstream_response_length\" '\n        'cs=$upstream_cache_status';\n\nInstall\n-------\n\nInstall with pip:\n\n.. code-block:: bash\n\n    pip install nginx2es\n\nFeatures\n--------\n\n- Stable log record ID (hostname + file inode number + timestamp + file\n  position). It makes possible to import log file more than once (adding some\n  additional processing to ``nginx2es``, or dropping a daily index containing\n  only a half of records, etc) without creating a duplicate records.\n\n- Parse query params and split request uri path components to separate fields\n  for complex log filtering / aggregations.\n\n- Optional use of the GeoIP database (requires the ``geoip`` module and the\n  ``GeoIPCity.dat`` database file) - adds ``city`` and ``region_name`` fields.\n\n- Correctly parse log records containing information about multiple upstream\n  responses.\n\n- The ``tail -F``-like mode implemented with inotify.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fei-grad%2Fnginx2es","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fei-grad%2Fnginx2es","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fei-grad%2Fnginx2es/lists"}