Latitude/Longitude values - zero's get removed

I am recieving json that contains Latitude and Longitude, in the message they look like this:

"Latitude": -37.000000, "Longitude": 145.000000

In the output they look like this:

"Latitude" => -37.0, "Longitude" => 145.0

Why are the trailling zero's getting removed?

So far its a very simple pipeline without any filters but I would expect these lat/long values to look the same as they do in the message.

input {
   tcp {
    port => 6001
    type => syslog
    codec => json
  }
}

filter {
}

output {
  stdout { codec => rubydebug }
 
}

What output are you talking about? If elasticsearch is indexing it as a float I would expect the presentation layer to trim trailing zeroes.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.