Skip to content

Commit

Permalink
Fix geoip processor isp_organization_name property and docs (elastic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
joegallo authored Jul 26, 2024
1 parent 836b4a5 commit 010be87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions docs/reference/ingest/processors/geoip.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ depend on what has been found and which properties were configured in `propertie
* If the GeoIP2 Domain database is used, then the following fields may be added under the `target_field`: `ip`, and `domain`.
The fields actually added depend on what has been found and which properties were configured in `properties`.
* If the GeoIP2 ISP database is used, then the following fields may be added under the `target_field`: `ip`, `asn`,
`organization_name`, `network`, `isp`, `isp_organization`, `mobile_country_code`, and `mobile_network_code`. The fields actually added
`organization_name`, `network`, `isp`, `isp_organization_name`, `mobile_country_code`, and `mobile_network_code`. The fields actually added
depend on what has been found and which properties were configured in `properties`.
* If the GeoIP2 Enterprise database is used, then the following fields may be added under the `target_field`: `ip`,
`country_iso_code`, `country_name`, `continent_code`, `continent_name`, `region_iso_code`, `region_name`, `city_name`, `timezone`,
`location`, `asn`, `organization_name`, `network`, `hosting_provider`, `tor_exit_node`, `anonymous_vpn`, `anonymous`, `public_proxy`,
`residential_proxy`, `domain`, `isp`, `isp_organization`, `mobile_country_code`, `mobile_network_code`, `user_type`, and
`residential_proxy`, `domain`, `isp`, `isp_organization_name`, `mobile_country_code`, `mobile_network_code`, `user_type`, and
`connection_type`. The fields actually added depend on what has been found and which properties were configured in `properties`.

preview::["Do not use the GeoIP2 Anonymous IP, GeoIP2 Connection Type, GeoIP2 Domain, GeoIP2 ISP, and GeoIP2 Enterprise databases in production environments. This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features."]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ private Map<String, Object> retrieveEnterpriseGeoData(GeoIpDatabase geoIpDatabas
}
case ISP_ORGANIZATION_NAME -> {
if (ispOrganization != null) {
geoData.put("isp_organization", ispOrganization);
geoData.put("isp_organization_name", ispOrganization);
}
}
case MOBILE_COUNTRY_CODE -> {
Expand Down Expand Up @@ -660,7 +660,7 @@ private Map<String, Object> retrieveIspGeoData(GeoIpDatabase geoIpDatabase, Inet
}
case ISP_ORGANIZATION_NAME -> {
if (ispOrganization != null) {
geoData.put("isp_organization", ispOrganization);
geoData.put("isp_organization_name", ispOrganization);
}
}
case MOBILE_COUNTRY_CODE -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ public void testEnterprise() throws Exception {
assertThat(geoData.get("residential_proxy"), equalTo(false));
assertThat(geoData.get("domain"), equalTo("frpt.net"));
assertThat(geoData.get("isp"), equalTo("Fairpoint Communications"));
assertThat(geoData.get("isp_organization"), equalTo("Fairpoint Communications"));
assertThat(geoData.get("isp_organization_name"), equalTo("Fairpoint Communications"));
assertThat(geoData.get("user_type"), equalTo("residential"));
assertThat(geoData.get("connection_type"), equalTo("Cable/DSL"));
}
Expand Down Expand Up @@ -497,7 +497,7 @@ public void testIsp() throws Exception {
assertThat(geoData.get("organization_name"), equalTo("CELLCO-PART"));
assertThat(geoData.get("network"), equalTo("149.101.100.0/28"));
assertThat(geoData.get("isp"), equalTo("Verizon Wireless"));
assertThat(geoData.get("isp_organization"), equalTo("Verizon Wireless"));
assertThat(geoData.get("isp_organization_name"), equalTo("Verizon Wireless"));
assertThat(geoData.get("mobile_network_code"), equalTo("004"));
assertThat(geoData.get("mobile_country_code"), equalTo("310"));
}
Expand Down

0 comments on commit 010be87

Please sign in to comment.