# How do I deal with insanely long lines in the Logstash config?

**URL:** <https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045>\
**Category:** Logstash\
**Created:** [August 25, 2015, 6:53pm UTC](https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045 "2015-08-25T18:53:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nekatreven](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@nekatreven](https://discuss.elastic.co/u/nekatreven)\
**Post date:** [August 25, 2015, 6:53pm UTC](https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045/1 "2015-08-25T18:53:01Z")

</div>

I'm working on an email output, which is working, but as I add a header with some help text for the events and some minimal styling, the config line with the 'htmlbody' parameter is going to get very long (400 to 600 characters depending on how succinct I can make the help text).

Any particular way to deal with this or just let it be long?

Thank you,  
Mark

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [August 26, 2015, 6:01am UTC](https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045/2 "2015-08-26T06:01:49Z")

</div>

Given the limited nature of Logstash's configuration language I don't think there are any workarounds that you could use. Either Logstash is fine with kilobyte-sized lines or it isn't. I'd be surprised if the limit would be that low.

---

<div class="post-metadata">

**Author:** ![nekatreven](https://avatars.discourse-cdn.com/v4/letter/n/a6a055/32.png) [@nekatreven](https://discuss.elastic.co/u/nekatreven)\
**Post date:** [August 26, 2015, 8:13am UTC](https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045/3 "2015-08-26T08:13:38Z")

</div>

Cool; I was also kind of assuming Logstash could handle it. I appreciate the second vote of confidence!

I will reply again for posterity if the line ends up being much shorter than I anticipated, or if I actually do run into issues with it and have to pare it down further on the length concern alone.

Thank you,  
Mark

---

<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:** [July 6, 2017, 5:30am UTC](https://discuss.elastic.co/t/how-do-i-deal-with-insanely-long-lines-in-the-logstash-config/28045/4 "2017-07-06T05:30:50Z")

</div>


