Closed ninaspitfire closed 4 years ago
Using map_fields => true to set the ttl of a Riemann event is not possible. The value is (at some point) cast to a string, and never cast back to the float type that Riemann expects, resulting in this error:
map_fields => true
ttl
[ERROR] 2020-01-05 14:02:49.882 [[main]>worker3] riemann - Unhandled exception {:error=>#<TypeError: wrong argument type String (expected Float)>}
Run Riemann with this configuration:
(tcp-server {:host "0.0.0.0"})
Create the following Logstash configuration:
input { stdin {} } filter { mutate { add_field => { "ttl" => 60 } } } output { riemann { map_fields => true } }
Inject an event like:
echo '{}' | sudo logstash -f repro.conf
Using
map_fields => true
to set thettl
of a Riemann event is not possible. The value is (at some point) cast to a string, and never cast back to the float type that Riemann expects, resulting in this error:Repro
Run Riemann with this configuration:
Create the following Logstash configuration:
Inject an event like: