-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Enable ASN support for Ingest GeoIP plugin. #27958
Enable ASN support for Ingest GeoIP plugin. #27958
Conversation
@elasticmachine please test this |
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
1 similar comment
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kiawin I left some comments. Looks good in general.
- match: { _source.field1: "82.170.213.79" } | ||
- length: { _source.geoip: 3 } | ||
- match: { _source.geoip.ip: "82.170.213.79" } | ||
- match: { _source.geoip.asn: "5615" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 5615
instead of "5615"
.
- length: { _source.geoip: 3 } | ||
- match: { _source.geoip.ip: "82.170.213.79" } | ||
- match: { _source.geoip.asn: "5615" } | ||
- match: { _source.geoip.organization_name: "KPN B.V." } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a new line at the end of this file is required.
buildSrc/version.properties
Outdated
@@ -4,7 +4,7 @@ lucene = 7.2.0 | |||
# optional dependencies | |||
spatial4j = 0.6 | |||
jts = 1.13 | |||
jackson = 2.8.10 | |||
jackson = 2.9.3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately ES can't be upgraded to the latest Jackson 2.9.x release: #27032 (comment)
But I think ASN support will still work with Jackson 2.8.10, so lets undo the Jackson upgrade here.
plugins/ingest-geoip/build.gradle
Outdated
@@ -23,8 +23,7 @@ esplugin { | |||
} | |||
|
|||
dependencies { | |||
// Upgrade to 2.10.0 or higher when jackson-core gets upgraded to 2.9.x | |||
compile ('com.maxmind.geoip2:geoip2:2.9.0') | |||
compile ('com.maxmind.geoip2:geoip2:2.10.0') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This library upgrade then also needs to be revered.
@martijnvg done the changes. back to you :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kiawin! This PR looks good to me now.
f3403e7
to
21ebbcf
Compare
21ebbcf
to
81179c4
Compare
@elasticmachine please test this |
81179c4
to
a4a7150
Compare
Closes #27849