# Unable to set mustache.max\_output\_size\_bytes in elasticsearch.yml version 7.17.25

**URL:** <https://discuss.elastic.co/t/unable-to-set-mustache-max-output-size-bytes-in-elasticsearch-yml-version-7-17-25/372412>\
**Category:** Elasticsearch\
**Created:** [December 26, 2024, 12:36pm UTC](https://discuss.elastic.co/t/unable-to-set-mustache-max-output-size-bytes-in-elasticsearch-yml-version-7-17-25/372412 "2024-12-26T12:36:01Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [December 26, 2024, 3:34pm UTC](https://discuss.elastic.co/t/unable-to-set-mustache-max-output-size-bytes-in-elasticsearch-yml-version-7-17-25/372412/2 "2024-12-26T15:34:25Z")

</div>

Try looks like the setting needs units

`mustache.max_output_size_bytes: 1mb`

So 2mb would be

`mustache.max_output_size_bytes: 2mb`

See

> <https://github.com/elastic/elasticsearch/blob/c2187fb89d283d7a18fb3d16b18cfec72ba5478b/modules/lang-mustache/src/main/java/org/elasticsearch/script/mustache/MustacheScriptEngine.java#L57>

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-set-mustache-max-output-size-bytes-in-elasticsearch-yml-version-7-17-25/372412)._
