Part of my grok filter (worker) captures the following two fields:
% {NUMBER: XCent}% {NUMBER: YCent}
which are long, long points.
I try to add a location contact, but keep getting a configuration failure when I use the -debug flag in the configuration file
All my configuration works until I get this section.
if [XCent] and [YCent] { mutate { add_field => { "[location][lat]" => "%{XCent}" "[location][lon]" => "%{YCent}" } } mutate { convert => { "[location][lat]" => "float" "[location][lon]" => "float" } } mutate { convert => {"[location]", "geo_point"} } }
My thought was that this is basically what the elastic documentation for logstash 1.4 offers.
https://www.elastic.co/guide/en/elasticsearch/reference/1.4/mapping-geo-point-type.html
Edit: Found the best way to apply the configuration in the filter, updated code.
source share