I'm looking for some guidance or an example on creating a geo_point from JSON latitude and longitude fields which I can then visualize in Kibana 4 on a Tile Map. I'm in control of the data output so I can format it any which way before Logstash processes it. Some of the examples I've seen involve mutating and converting fields which I've attempted below. This results in a "location" field in Elasticsearch with a [lon,lat] format and is displayed in Kibana as a "number" datatype. I'm unable to visualize this as a geo_point on a Tile Map, however. I'm assuming this is because the field is mapped to a number and not a geo_point.
Here's a snippet of what the JSON looks like (I've omitted other fields for brevity):
How should I map the location field to a geo_point datatype?
I'm certain others have run into similar issues and maybe there's a simple solution that I'm not realizing or seeing online. I'm fairly new to the ELK stack so I appreciate the help. Can someone please point me in the right direction?
Thank you for your reply, Mark, that was helpful. For others experiencing the same issue, here's what I did (because I couldn't really find a detailed guide on this):
Deleted my existing Logstash index template from Elasticsearch:
In Kibana, I deleted the existing logstash index pattern and re-created it. Now the "location" field is mapped to a "geo_point" and I'm able to visualize it on the Tile Map.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.