Conversation
0d0c2c5 to
fc712cc
Compare
|
@talevy I've updated the PR with the following changes:
Things to do:
Questions:
|
fc712cc to
0371121
Compare
|
In response to the Questions:
|
Right, I see, lets then open an issue to explore this. |
|
@talevy I moved the database files to an external dependency and the files are now maintained here: https://github.com/elastic/geolite2-databases The project is already pushed to the maven repository, so it should be available for everyone. During plugin installation I put the files under |
9dc2302 to
8e9041d
Compare
|
@talevy I've updated this PR:
I think it is ready. |
There was a problem hiding this comment.
isn't this the same as the patterns_directory? User may not have permissions to access it from an arbitrary path?
There was a problem hiding this comment.
oh, nevermind. it gets resolved within the config directory. I see. should I do the same for grok patterns then?
There was a problem hiding this comment.
yes, i think the grok processor should have its own director in the
'config/ingest' folder like geoip?
On Friday, October 30, 2015, Tal Levy notifications@github.com wrote:
In
plugins/ingest/src/main/java/org/elasticsearch/ingest/processor/geoip/GeoProcessor.java
#14208 (comment)
:
public void setDatabaseFile(String dbPath) {this.databaseFile = dbPath;}
public void setTargetField(String targetField) {this.targetField = targetField;}
public void fromMap(Map<String, Object> config) {this.ipField = (String) config.get("ip_field");
String targetField = (String) config.get("target_field");if (targetField != null) {this.targetField = targetField;}String databaseFile = (String) config.get("database_file");oh, nevermind. it gets resolved within the config directory. I see. should
I do the same for grok patterns then?—
Reply to this email directly or view it on GitHub
https://github.com/elastic/elasticsearch/pull/14208/files#r43502657.
Met vriendelijke groet,
Martijn van Groningen
|
@talevy I've merged feature/ingest branch into this PR, removed the the maven config and added the annotation. |
|
LGTM |
…on to documents based on an ip address. The information is fetched from the Maxmind geolite2 database, that is embedded in the ingest plugin.
60f9e85 to
0338726
Compare
Introduces a GeoIP processor. This processor takes in an ip-address and returns city level information
like
city_name,lon/lat,country_name, etc.TODO items:
GeoLite2-City.mmdbdatabase located at/tmp/geolite2city.mmdb. an actual testing strategy needs to be implemented.Currently, The GeoLite API requires the use of reflection and access to a class type which is not
supported by the security policy:
reason: uses reflection in a nested fashion when serializing the response json object into a
CityResponseexception: