We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 556d045 commit 60d464bCopy full SHA for 60d464b
lib/logstash/codecs/json_lines.rb
@@ -70,7 +70,7 @@ def decode(data, &block)
70
parse_json(@converter.convert(line), &block)
71
end
72
rescue java.lang.IllegalStateException => e
73
- if e.message == "input buffer full" && @decode_size_limit_bytes != "none"
+ if /^input buffer full/ =~ e.message && @decode_size_limit_bytes != "none"
74
yield event_factory.new_event("message" => "Payload bigger than #{@decode_size_limit_bytes} bytes", "tags" => ["_jsonparsetoobigfailure"])
75
else
76
# re-raise the error if doesn't correspond to the buffer overflow condition
0 commit comments