Your mapping and data looks fine to me, except for one typo: in your mapping query, you specify "geo_ip" as the index name, but in your data, the index name has no underscore: "geoip". So that's probably a minor issue.
Another minor issue is that in your JSON, you need to define the "_index", "_type", and "_id" properties with underscores: "{ "index" : { "_index" : "geoip", "_type" : "gelocalisation", "_id" : "1" } }". (To see what I mean, see the sample data in the Getting Started docs: https://www.elastic.co/guide/en/kibana/current/getting-started.html).
But these are little issues. I think the more underlying problem is that you need to use the Logstash GeoIP filter to extract geolocation information from the IP. Kibana can't do this on its own. Take a look at this StackOverflow issue that outlines the process and please let me know if it helps you: http://stackoverflow.com/questions/33522175/convert-existing-field-mapping-to-geoip
Hello,
First of all I would like to thank you for your detailed response and your time.
Yet, I made a new mapping following the solution provided with in your stackoverflow link, but no result was found. Should I have the configuration file in Logstash executed for every new index?
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.