Closed ph closed 9 years ago
@colinsurprenant do not review it yet, after reading other report of crash I'll add a bytesize check on this too.
@suyograo @colinsurprenant ready for review.
Also the default max_bytes
is currently arbitrary, any recommended way to come up with a sane default?
@colinsurprenant updated!
LGTM - not tested
Merged sucessfully into master!
Fix an issue when the buffered events is never send to pipeline and just keep growing and make logstash go OOM. I have added a
max_lines
options to force a flush to queue after a maximum buffered events is saved in the buffer, default is set to 100 lines.Fixes: https://github.com/logstash-plugins/logstash-codec-multiline/issues/4, https://github.com/elastic/logstash/issues/2984, https://github.com/elastic/logstash/issues/2015