Logstash file input configured with multiline pattern as
codec => multiline {
pattern => '^ {'
negate => true
what => previous
}
}
Input file consist of multiple json objects. This multiline pattern w=works as expected for most of events, but strange it has created two event/message for single json object. Where logstash created first message starting with expected pattern of two white spaces and '{' but the second line is created at point where there are four spaces at start of line like ^ {
, which is not matching logstash pattern ^ {
having two spaces at start of line.
Ideally the second line created by logstash should have been appended to first line to form complete json object