Closed esergion closed 7 years ago
Hi guys! I was faced with the following problem: I'm sending messages and pure JSON objects through UDP, and sometimes some messages can be very large. So i've decided to use max_message_size option but i've encountered another problem:
max_message_size
Failure/Error: event['message'.freeze] = event['message'.freeze].byteslice(0, LogStashLogger.configuration.max_message_size) NoMethodError: undefined method `byteslice' for nil:NilClass # ./lib/logstash-logger/formatter/base.rb:61:in `build_event' # ./lib/logstash-logger/formatter/base.rb:18:in `call'
cause there is no message-field in the JSON-objects.
message
Released in 0.25.1.
Hi guys! I was faced with the following problem: I'm sending messages and pure JSON objects through UDP, and sometimes some messages can be very large. So i've decided to use
max_message_size
option but i've encountered another problem:cause there is no
message
-field in the JSON-objects.