Though the Kibana tutorial works fine w/ the Tile Map, my data always gives me a 'no data found' error. The lat/longs are read in ok and the values are valid.
Thank you for the help! After some struggles, here's what I learned which will hopefully save someone else some grief:
Make sure your index is pointing to the right template.
Get all templates from: curl -XGET localhost:9200/_template/*
Check if your mapping is what you expect:
curl -XGET 'localhost:9200/<index_name>/_mapping'?pretty
In your Logstash config file, specify the right template_name, index and document_name:
In Logstash config file:
output {
elasticsearch {
action => "index"
template_name => "templateNAME"
index => "indexNAME"
document_type => "documentTYPE" }
In Elasticsearch template: (I made a JSON file to generate the template.)
curl -XPUT localhost:9200/_template/indexNAME -d '
"template" : "templateNAME",
"mappings" : {
"documentTYPE" : {
... (other stuff)
Get the geo-coordinates aligned between Logstash and ElasticSearch
In Logstash config file (I already have floating point fields called 'latitude' and 'longitude') :
mutate {
rename => {
"latitude" => "[geo][coordinates][lat]"
"longitude" => "[geo][coordinates][lon]"
}}
Back to the Elasticsearch template file. This is one level indented from the documentTYPE from before:
"properties" : {
"@version": { "type": "string", "index": "not_analyzed" },
"geo" : {
"properties" : {
"coordinates" : {
"type" : "geo_point"
}}}
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.