{"id":34024457,"url":"https://github.com/cercide/mmdb","last_synced_at":"2026-03-09T20:06:09.188Z","repository":{"id":126925055,"uuid":"609684490","full_name":"cercide/mmdb","owner":"cercide","description":"Create a MaxMind Databases for your own needs.","archived":false,"fork":false,"pushed_at":"2023-03-08T09:29:11.000Z","size":933,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-15T06:15:51.244Z","etag":null,"topics":["geoip","geoip2","ip-database","logstash","logstash-filter","maxmind","mmdb"],"latest_commit_sha":null,"homepage":"","language":"Python","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/cercide.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2023-03-04T23:09:05.000Z","updated_at":"2025-12-05T06:17:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"51cb3910-82f1-431a-b071-1ae669c2c1a5","html_url":"https://github.com/cercide/mmdb","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cercide/mmdb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cercide%2Fmmdb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cercide%2Fmmdb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cercide%2Fmmdb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cercide%2Fmmdb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cercide","download_url":"https://codeload.github.com/cercide/mmdb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cercide%2Fmmdb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30310050,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"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":["geoip","geoip2","ip-database","logstash","logstash-filter","maxmind","mmdb"],"created_at":"2025-12-13T16:20:13.985Z","updated_at":"2026-03-09T20:06:09.179Z","avatar_url":"https://github.com/cercide.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n    \u003ch1 align=\"center\"\u003eMMDB\u003c/h1\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cem\u003eCreate a MaxMind Databases for your own needs.\u003c/em\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/license/cercide/mmdb\"\u003e\n    \u003cimg src=\"https://github.com/cercide/mmdb/actions/workflows/tests.yml/badge.svg\"\u003e\n    \u003ca href=\"https://app.codecov.io/gh/cercide/mmdb\"\u003e\u003cimg src=\"https://codecov.io/gh/cercide/mmdb/branch/main/graph/badge.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.codefactor.io/repository/github/cercide/mmdb\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/cercide/mmdb/badge\"\u003e\u003c/a\u003e\n    \u003cimg src=\"https://img.shields.io/pypi/pyversions/mmdb.svg\"\u003e\n\u003c/p\u003e\n\u003cp align=\"center\"\u003e\n    \u003ccode\u003epip install mmdb[cli]\u003c/code\u003e\n\u003c/p\u003e\n\n## Features\n\n  + Query any maxmind database: `mmdb get \u003cIP\u003e -d \u003cDATABASE\u003e`\n  + Download and build [DBIP](https://db-ip.com/db/lite.php) database [ASN Lite](https://db-ip.com/db/download/ip-to-asn-lite), [Country Lite](https://db-ip.com/db/download/ip-to-country-lite), and [City Lite](https://db-ip.com/db/download/ip-to-city-lite): `mmdb dbip-build`\n  + Create an IP database from a CSV file: `mmdb build \u003cCSV\u003e`\n  + Logstash [GeoIP Filter Plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html) compatibility: `mmdb build \u003cCSV\u003e --lsc`\n  + Additional country data such as **is_eu**, **is_nato**, or **is_g7**: `mmdb build \u003cCSV\u003e -f country`\n\n## Examples\n\n\n ![Example Localnet](.github/rsc/example_localnet.gif)\n ![Example Country](.github/rsc/example_country.gif)\n\n## Logstash Compatibility\nLogstash ships with the [GeoIP Filter Plugin](https://www.elastic.co/guide/en/logstash/current/plugins-filters-geoip.html)\nwhich enriches a document with IP GeoData. However, the plugin supports specific MaxMind database types only.\nAs a result, any other database type disables the plugin.\n\nRegarding this, the plag `--lsc` enables logstash support. Long story short:\nYou get a MaxMind ASN Database, but the IP info as an embedded json string within the\n`asn_organization_name` field. The logstash pipeline must load that json data and adds it to\nthe document, exemplified below\n\n```\nfilter {\n  geoip {\n    source =\u003e \"ip\"\n    database =\u003e \"/path/to/my/database.mmdb\"\n    ecs_compatibility =\u003e disabled\n    target =\u003e \"wrapped_ip_data\"\n  }\n  json {\n    source =\u003e \"[wrapped_ip_data][organization_name]\"\n    target =\u003e \"myip\"\n  }\n  mutate {\n    remove_field =\u003e [\"wrapped_ip_data\"]\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcercide%2Fmmdb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcercide%2Fmmdb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcercide%2Fmmdb/lists"}