Elastic Stack: 7.0.1, Docker Version
We are encountering a problem with the GeoIP filter seemingly having a different behaviour on Logstash versus using the Elasticsearch ingest pipeline. Please see below:
On Logstash:
On Elasticsearch Ingest:
Using the Logstash version generates more data (which we like) but it doesn't seem to generate the country_iso_code field and instead created country_code2, country_code3.
Is this by design or are we missing something?
Below are our filter settings:
Logstash filter:
filter {
geoip {
source => "[client][ip]"
target => "client.geo"
}
}
Ingest filter:
"processors" : [
{
"geoip" : {
"field": "client.ip",
"target_field": "client.geo",
"ignore_missing": true
}
}
]