# Possible problem in elasticsearch.yml parameter

**URL:** <https://discuss.elastic.co/t/possible-problem-in-elasticsearch-yml-parameter/19172>\
**Category:** Elasticsearch\
**Created:** [August 8, 2014, 11:42pm UTC](https://discuss.elastic.co/t/possible-problem-in-elasticsearch-yml-parameter/19172 "2014-08-08T23:42:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sitkawoof](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@Sitkawoof](https://discuss.elastic.co/u/Sitkawoof)\
**Post date:** [August 8, 2014, 11:42pm UTC](https://discuss.elastic.co/t/possible-problem-in-elasticsearch-yml-parameter/19172/1 "2014-08-08T23:42:05Z")

</div>

I did a put to ES and got the following error:

org.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException:  
An HTTP line is larger than 4096 bytes.

# Set a custom allowed content length:

# 

# http.max\_content\_length: 100mb

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [August 9, 2014, 7:11am UTC](https://discuss.elastic.co/t/possible-problem-in-elasticsearch-yml-parameter/19172/2 "2014-08-09T07:11:18Z")

</div>

How does your PUT request look like?

You send a HTTP header with \>4k, which is not usual. You can increase the  
length with the parameter http.max\_initial\_line\_length

The parameter http.max\_content\_length covers the total message length

Jörg

On Sat, Aug 9, 2014 at 1:42 AM, Sitka [sitkawoof@gmail.com](mailto:sitkawoof@gmail.com) wrote:

> I did a put to ES and got the following error:
> 
> org.elasticsearch.common.netty.handler.codec.frame.TooLongFrameException:  
> An HTTP line is larger than 4096 bytes.
> 
> # Set a custom allowed content length:
> 
> # 
> 
> # http.max\_content\_length: 100mb
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6685e59c-1e57-46f6-8228-e560e409c98e%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9uqDQtOi88krQCCqx1iek8cJkgpU9nyGyQp3A9xiEYQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAKdsXoE9uqDQtOi88krQCCqx1iek8cJkgpU9nyGyQp3A9xiEYQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:09am UTC](https://discuss.elastic.co/t/possible-problem-in-elasticsearch-yml-parameter/19172/3 "2017-07-06T01:09:49Z")

</div>


