# Logstash warning template

**URL:** <https://discuss.elastic.co/t/logstash-warning-template/77077>\
**Category:** Logstash\
**Created:** [March 2, 2017, 2:23am UTC](https://discuss.elastic.co/t/logstash-warning-template/77077 "2017-03-02T02:23:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greentea](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/greentea/32/15924_2.png) [@Greentea](https://discuss.elastic.co/u/Greentea)\
**Post date:** [March 2, 2017, 2:23am UTC](https://discuss.elastic.co/t/logstash-warning-template/77077/1 "2017-03-02T02:23:15Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 30, 2017, 2:23am UTC](https://discuss.elastic.co/t/logstash-warning-template/77077/2 "2017-03-30T02:23:32Z")

</div>

Closed on March 30, 2017, 2:23am UTC

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