Skip to content

Update GeoIP databases with more documentation ranges #2476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified internal/stack/_static/GeoLite2-ASN.mmdb
Binary file not shown.
Binary file modified internal/stack/_static/GeoLite2-City.mmdb
Binary file not shown.
Binary file modified internal/stack/_static/GeoLite2-Country.mmdb
Binary file not shown.
12 changes: 12 additions & 0 deletions internal/stack/_static/geoip_source/GeoLite2-ASN-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,24 @@
"autonomous_system_organization" : "Documentation ASN"
}
},
{
"233.252.0.0/24" : {
"autonomous_system_number" : 64503,
"autonomous_system_organization" : "Documentation ASN"
}
},
{
"2001:db8::/32" : {
"autonomous_system_number" : 65551,
"autonomous_system_organization" : "Documentation ASN"
}
},
{
"3fff::/20" : {
"autonomous_system_number" : 65552,
"autonomous_system_organization" : "Documentation ASN"
}
},
{
"1.128.0.0/11" : {
"autonomous_system_number" : 1221,
Expand Down
109 changes: 108 additions & 1 deletion internal/stack/_static/geoip_source/GeoLite2-City-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,8 @@
"city": {
"geoname_id" : 3117735 ,
"names" : {
"en" : "Madrid"
"en" : "Madrid",
"es" : "Madrid"
}
},
"continent" : {
Expand Down Expand Up @@ -209,6 +210,66 @@
]
}
},
{
"233.252.0.0/24": {
"city": {
"geoname_id" : 2964180,
"names" : {
"en" : "Galway"
}
},
"continent" : {
"code" : "EU",
"geoname_id" : 6255148,
"names" : {
"de" : "Europa",
"en" : "Europe",
"es" : "Europa",
"fr" : "Europe",
"ja" : "ヨーロッパ",
"pt-BR" : "Europa",
"ru" : "Европа",
"zh-CN" : "欧洲"
}
},
"country" : {
"geoname_id" : 2963597,
"is_in_european_union" : true,
"iso_code" : "IE",
"names" : {
"de" : "Irland",
"en" : "Ireland",
"es" : "República de Irlanda",
"fr" : "Irlande",
"ja" : "アイルランド",
"pt-BR" : "Irlanda",
"ru" : "Ирландия",
"zh-CN" : "爱尔兰"
}
},
"location" : {
"accuracy_radius" : 10,
"latitude" : 53.27245,
"longitude" : -9.05095,
"time_zone" : "Europe/Dublin"
},
"registered_country" : {
"geoname_id" : 2963597,
"is_in_european_union" : true,
"iso_code" : "IE",
"names" : {
"de" : "Irland",
"en" : "Ireland",
"es" : "República de Irlanda",
"fr" : "Irlande",
"ja" : "アイルランド",
"pt-BR" : "Irlanda",
"ru" : "Ирландия",
"zh-CN" : "爱尔兰"
}
}
}
},
{
"2001:db8::/32" : {
"city" : {
Expand Down Expand Up @@ -258,6 +319,52 @@
]
}
},
{
"3fff::/20": {
"city" : {
"geoname_id" : 2267057,
"names" : {
"en" : "Lisbon",
"es" : "Lisboa"
}
},
"continent" : {
"code" : "EU",
"geoname_id" : 6255148,
"names" : {
"de" : "Europa",
"en" : "Europe",
"es" : "Europa",
"fr" : "Europe",
"ja" : "ヨーロッパ",
"pt-BR" : "Europa",
"ru" : "Европа",
"zh-CN" : "欧洲"
}
},
"country" : {
"geoname_id" : 2264397,
"iso_code" : "PT",
"names" : {
"en" : "Portugal",
"es" : "Portugal"
}
},
"location" : {
"accuracy_radius" : 0,
"latitude" : 38.71667,
"longitude" : -9.13333
},
"registered_country" : {
"geoname_id" : 2264397,
"iso_code" : "PT",
"names" : {
"en" : "Portugal",
"es" : "Portugal"
}
}
}
},
{
"2.125.160.216/29" : {
"city" : {
Expand Down
84 changes: 84 additions & 0 deletions internal/stack/_static/geoip_source/GeoLite2-Country-Test.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,54 @@
}
}
},
{
"233.252.0.0/24" : {
"continent" : {
"code" : "EU",
"geoname_id" : 6255148,
"names" : {
"de" : "Europa",
"en" : "Europe",
"es" : "Europa",
"fr" : "Europe",
"ja" : "ヨーロッパ",
"pt-BR" : "Europa",
"ru" : "Европа",
"zh-CN" : "欧洲"
}
},
"country" : {
"geoname_id" : 2963597,
"is_in_european_union" : true,
"iso_code" : "IE",
"names" : {
"de" : "Irland",
"en" : "Ireland",
"es" : "República de Irlanda",
"fr" : "Irlande",
"ja" : "アイルランド",
"pt-BR" : "Irlanda",
"ru" : "Ирландия",
"zh-CN" : "爱尔兰"
}
},
"registered_country" : {
"geoname_id" : 2963597,
"is_in_european_union" : true,
"iso_code" : "IE",
"names" : {
"de" : "Irland",
"en" : "Ireland",
"es" : "República de Irlanda",
"fr" : "Irlande",
"ja" : "アイルランド",
"pt-BR" : "Irlanda",
"ru" : "Ирландия",
"zh-CN" : "爱尔兰"
}
}
}
},
{
"2001:db8::/32" : {
"continent" : {
Expand All @@ -166,6 +214,42 @@
}
}
},
{
"3fff::/20": {
"continent" : {
"code" : "EU",
"geoname_id" : 6255148,
"names" : {
"de" : "Europa",
"en" : "Europe",
"es" : "Europa",
"fr" : "Europe",
"ja" : "ヨーロッパ",
"pt-BR" : "Europa",
"ru" : "Европа",
"zh-CN" : "欧洲"
}
},
"country" : {
"geoname_id" : 2264397,
"is_in_european_union" : true,
"iso_code" : "PT",
"names" : {
"en" : "Portugal",
"es" : "Portugal"
}
},
"registered_country" : {
"geoname_id" : 2264397,
"is_in_european_union" : true,
"iso_code" : "PT",
"names" : {
"en" : "Portugal",
"es" : "Portugal"
}
}
}
},
{
"2.125.160.216/29" : {
"continent" : {
Expand Down
4 changes: 2 additions & 2 deletions internal/stack/_static/geoip_source/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ These databases must also include GeoIP data for the address ranges for document
Including those documentation ranges allows developers to set documentation IPs in their pipeline or
system tests that could be enriched thanks to the geoip known data added by the `geoip` processor in the ingest pipeline.
The documentation ranges (address blocks) are defined in:
- IPv4: https://datatracker.ietf.org/doc/rfc5737/
- IPv6: https://datatracker.ietf.org/doc/rfc3849/
- IPv4: https://datatracker.ietf.org/doc/rfc5737/ and https://datatracker.ietf.org/doc/rfc6676/
- IPv6: https://datatracker.ietf.org/doc/rfc3849/ and https://datatracker.ietf.org/doc/rfc9637/

The ASN to be used for those documentation purposes are defined in [RFC5398](https://datatracker.ietf.org/doc/rfc5398/).

Expand Down