When I use Logstash's geoip
to encode an ip address, I get different field types in Elasticsearch when i use logstash-foo
as an index vs logs-foo
as an index.
logstash-foo
(matches the default index naming convention) imports geoip.location
as a geo_point
field, where logs-foo
imports geoip.location
as a float.
I'm wondering why this happens and how I could get my arbitrary index, logs-foo
, to import geoip.location
fields as geo_point
.