geo_point 的几种类型
logstash 自定义生成 geoip/自定义的经纬度转换为 geo_point 类型首先将经纬度的值赋给新的变量 geoip.location,然后将其转化为float类型,要注意的是【经度,纬度】,数组格式经度在前。

mutate {
        add_field => ["[geoip][latitude]", "%{[lat]}"]
        add_field => ["[geoip][longitude]", "%{[lon]}"]
        add_field => ["[geoip][location]", "%{[lon]}"]
        add_field => ["[geoip][location]", "%{[lat]}"]
}



mutate {
        convert => ["[geoip][latitude]", "float"]
}
mutate {
        convert => ["[geoip][longitude]", "float"]
}
mutate {
        convert => ["[geoip][location]", "float"]
}

相关文章:

  • 2022-12-23
  • 2021-10-04
  • 2021-06-16
  • 2022-12-23
  • 2021-12-29
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-01
  • 2021-12-13
  • 2021-08-19
  • 2021-06-12
  • 2022-12-23
相关资源
相似解决方案