目前Kibana默认自带的地图全部是英文,更换高德地图对地图汉化。
编辑kibana配置文件kibana.yml,最后面添加
tilemap.url: 'http://webrd02.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=7&x={x}&y={y}&z={z}'
[root@localhost ~]# wget http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz [root@localhost ~]# gzip GeoLite2-City.mmdb.gz
input { stdin {} } filter { geoip { source => "message" target => "geoip" database => "/usr/local/logstash-5.1.1/config/GeoLite2-City.mmdb" add_field => ["[geoip][coordinates]","%{[geoip][longitude]}"] add_field => ["[geoip][coordinates]","%{[geoip][latitude]}"] } } output { elasticsearch { hosts => "192.168.0.1" index => "logstash-%{+YYYY.MM.dd}" } }