# How to compress \_source in elastic 5.6.1

**URL:** <https://discuss.elastic.co/t/how-to-compress-source-in-elastic-5-6-1/139858>\
**Category:** 中文提问与讨论\
**Created:** [July 13, 2018, 2:31am UTC](https://discuss.elastic.co/t/how-to-compress-source-in-elastic-5-6-1/139858 "2018-07-13T02:31:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![haoyun](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@haoyun](https://discuss.elastic.co/u/haoyun)\
**Post date:** [July 13, 2018, 2:31am UTC](https://discuss.elastic.co/t/how-to-compress-source-in-elastic-5-6-1/139858/1 "2018-07-13T02:31:31Z")

</div>

Hello,  
In the web,I see "If disk space is a concern, rather increase the compression level instead of disabling the \_source."  
But I how to set this parameter ?  
Or jion this parameter to templates?

## Thanks!

HAOYUN

E\_mail：zkrhaoyun@abchinalife.cn

---

<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:** [August 10, 2018, 2:31am UTC](https://discuss.elastic.co/t/how-to-compress-source-in-elastic-5-6-1/139858/2 "2018-08-10T02:31:41Z")

</div>

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