Troubleshooting
Problem
Logstash is getting several error messages like the following:
[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
Resolving The Problem
Edit the Logstash pipeline configuration file and change from:
input {
tcp {
port => 8080
codec => "json"
}
}
tcp {
port => 8080
codec => "json"
}
}
to
input {
tcp {
port => 8080
codec => "json_lines"
}
}
tcp {
port => 8080
codec => "json_lines"
}
}
Document Location
Worldwide
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSTQCD","label":"IBM Z Common Data Provider"},"Component":"","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Was this topic helpful?
Document Information
Modified date:
24 August 2020
UID
ibm11273978