Just now i tried GET /_all/_mapping?pretty command and it seems that filebeat is not mapped correctly. Other beats like heartbeat, metricbeat, packetbeat is mapped well.
Where im stuck is what index name do i need to use? Whether it is filebeat-* or just filebeat because im having the following filebeat indices like:
Where im stuck is what index name do i need to use?
You don't need to use any name. What do you want to name your indexes? Pick something that works for you and adjust templates and other configuration to match.
Now in filebeat template location field is set to geo_point value @magnusbaeck.
"location":{"latitude":"12.9719258","longitude":"80.2171973"} this is my location field value in my log file. After started file beat witht this location value in my log the latitude field is like "location.latitude" and for longitude like "location.langitude". I mapped location as geoip.location and that is fine and mapped as geo_point. But these two fields are set to string values.
I didn't ask for the template, I asked for the actual mappings. If I want to see the template I'll ask for the template.
But since you posted your template I might as well comment on it. A couple of days ago I said this:
If geoip.location is the field you’ve mapped as geo_point it’s not surprising that the location field isn’t recognized as geo_point. If you want location to be a geo_point you need to make sure that field is mapped as geo_point.
That’s not how the mapping of a nested field is set. Consult the ES documentation for details.
These two comments still apply to your current template.
That sets the template which may or may not apply to your indexes. That template is still wrong because your field in your documents is named location.
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.