Error JSON parse error original data now in message field error LogStash Json ParserError Unexpected end-of-input was expecting closing quote for a string value

0 votes

Hi Guys,

I am trying to save my Logstash output in JSON format. But it is showing me the below-given error.

[ERROR][logstash.codecs.json    ][main] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unexpected end-of-input: was expecting closing quote for a string value
[ERROR][logstash.codecs.json    ][main] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Unrecognized token 'RMF': was expecting ('true', 'false' or 'null')
[ERROR][logstash.codecs.json    ][main] JSON parse error, original data now in message field {:error=>#<LogStash::Json::ParserError: Invalid numeric value: Leading zeroes not allowed
Jun 18, 2020 in DevOps Tools by akhtar
• 38,230 points
5,059 views

1 answer to this question.

0 votes

Hi@akhtar,

You may get this error if you used codec as JSON in your Logstash configuration file. So edit the Logstash pipeline configuration file and switch from codec json to json_lines.

answered Jun 18, 2020 by MD
• 95,440 points

Related Questions In DevOps Tools

0 votes
2 answers
0 votes
1 answer

How to get the current status of a local repository in Git?

Using 'git status' command in the repository ...READ MORE

answered Nov 26, 2019 in DevOps Tools by Sirajul
• 59,230 points
585 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
3,460 views
+2 votes
1 answer
0 votes
1 answer

ERROR: Could not find a valid gem 'logstash-core-plugin-api' (>= 0) in any repository

Hi@akhtar, I think you don't have JRuby installed ...READ MORE

answered Jun 18, 2020 in DevOps Tools by MD
• 95,440 points
1,940 views
0 votes
1 answer

How to connect log file as an input in Logstash?

Hi@akhtar, You can use the file plugin to ...READ MORE

answered Jun 17, 2020 in DevOps Tools by MD
• 95,440 points
1,457 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP