在使用logstash解析apache log时,在kibana的visualize中根据ip展示在地图上,logstash中使用grok插件解析apache log,并使用geoip匹配ip,但是在创建visualize时报如下错误,无法选中geo.location这个field。
No Compatible Fields:The “xxxxx” index pattern does not contain any of the following field types:geo_point.
解决方法:
output到elasticsearch的index必须是以"logstash-"开头的,修改后问题就解决了。