LogStash::Json::ParserError: Invalid numeric value: Leading zeroes not allowed

Hi,
I'm trying to parse some json strings which contain an integer field with the value duration":0000.
I tried to convert it to string type but didn't work. I'm still receiving the following error.

#<LogStash::Json::ParserError: Invalid numeric value: Leading zeroes not allowed

I used this configuration in the logstash.conf file

filter { json{ source => "message" } mutate { convert => { "duration" => "string" } } }

Can you help me?

Try running this filter before you parse the JSON. It might need tweaking to make the pattern more specific.

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