When String contains opening curly braces '{' logstash failed to parse that JSON. As per JSON doc, we don't need to escape curly brace. then how can I parse this type of JSON through logstash?
JSON file:
{
"DESCRIPTION":"TOP{SET-3}",
"QUANTITY":"1"
}
Logstash conf.
input{
beats {
port => "5044"
}
}
filter {
prune {
whitelist_names => ["^message$","^@timestamp$"]
}
json {
source => "message"
target => "target"
}
.........
}
output{
...........
}
ERROR:
:exception=>#<LogStash::Json::ParserError: Unexpected end-of-input within/between Object entries
:exception=>#<LogStash::Json::ParserError: Unexpected character (':' (code 58)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: (byte[])""DESCRIPTION":"TOP{SET-3}",
"QUANTITY":"1"}
Can anyone help here?
Thanks:)