Logstash warning template

Hi!
I got a question for a longtime. Is there any way to change to logstash warning out put? Every time it output the warning like this

10:16:52.512 [[main]>worker1] WARN  logstash.outputs.elasticsearch - Failed action. {:status=>400, :action=>["index", {:_id=>"3354", :_index=>"damo", :_type=>"news", :_routing=>nil}, 2017-03-02T02:16:51.863Z %{host} %{message}], :response=>{"index"=>{"_index"=>"damo", "_type"=>"news", "_id"=>"3354", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Document contains at least one immense term in field=\"content.stcn\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[60, 112, 62, 68, 56, 32, -26, -103, -70, -24, -125, -67, -28, -65, -99, -26, -70, -85, -25, -101, -125, -17, -68, -102, -27, -90, -126, -28, -67, -107]...', original message: bytes can be at most 32766 in length; got 105348", "caused_by"=>{"type"=>"max_bytes_length_exceeded_exception", "reason"=>"bytes can be at most 32766 in length; got 105348"}}}}}

10:16:52.513 [[main]>worker1] WARN  logstash.outputs.elasticsearch - Failed action. {:status=>400, :action=>["index", {:_id=>"3388", :_index=>"damo", :_type=>"news", :_routing=>nil}, 2017-03-02T02:16:51.868Z %{host} %{message}], :response=>{"index"=>{"_index"=>"damo", "_type"=>"news", "_id"=>"3388", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Document contains at least one immense term in field=\"content.stcn\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[60, 112, 62, 60, 115, 112, 97, 110, 32, 115, 116, 121, 108, 101, 61, 34, 102, 111, 110, 116, 45, 115, 105, 122, 101, 58, 49, 54, 112, 120]...', original message: bytes can be at most 32766 in length; got 42852", "caused_by"=>{"type"=>"max_bytes_length_exceeded_exception", "reason"=>"bytes can be at most 32766 in length; got 42852"}}}}}

10:16:52.513 [[main]>worker1] WARN  logstash.outputs.elasticsearch - Failed action. {:status=>400, :action=>["index", {:_id=>"3389", :_index=>"damo", :_type=>"news", :_routing=>nil}, 2017-03-02T02:16:51.868Z %{host} %{message}], :response=>{"index"=>{"_index"=>"damo", "_type"=>"news", "_id"=>"3389", "status"=>400, "error"=>{"type"=>"illegal_argument_exception", "reason"=>"Document contains at least one immense term in field=\"content.stcn\" (whose UTF8 encoding is longer than the max length 32766), all of which were skipped.  Please correct the analyzer to not produce such terms.  The prefix of the first immense term is: '[60, 112, 62, 60, 115, 112, 97, 110, 32, 115, 116, 121, 108, 101, 61, 34, 102, 111, 110, 116, 45, 115, 105, 122, 101, 58, 49, 54, 112, 120]...', original message: bytes can be at most 32766 in length; got 42957", "caused_by"=>{"type"=>"max_bytes_length_exceeded_exception", "reason"=>"bytes can be at most 32766 in length; got 42957"}}}}}

I want to make the output can change line after the Comma ,
Does any one know how to do that?
And also, does any one know the meaning of the warning?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.