# Can I Reduce FileBeat Executeable File Size By Config Something or Comment Something Before build?

**URL:** <https://discuss.elastic.co/t/can-i-reduce-filebeat-executeable-file-size-by-config-something-or-comment-something-before-build/270453>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [April 17, 2021, 4:23pm UTC](https://discuss.elastic.co/t/can-i-reduce-filebeat-executeable-file-size-by-config-something-or-comment-something-before-build/270453 "2021-04-17T16:23:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![yulei](https://avatars.discourse-cdn.com/v4/letter/y/dec6dc/32.png) [@yulei](https://discuss.elastic.co/u/yulei)\
**Post date:** [April 17, 2021, 4:23pm UTC](https://discuss.elastic.co/t/can-i-reduce-filebeat-executeable-file-size-by-config-something-or-comment-something-before-build/270453/1 "2021-04-17T16:23:49Z")

</div>

![微信图片_20210418000023](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e34ede2761ed56f4f7eb58a9b3fb5cd7bb7652d1.png)

I unpack all versions of the filebeat-${version}-x86\_64.rpm and stats the size of Executeable Files.

I found that after some break changes in version 6.0.0, the size of the Executeable File Jump to **45M** from **16M** (size of version 5.6.16),and now it grows to **94M** (size of version 7.12.0).

it is a little big for me , can I make the file smaller by reduce some functions in src or some config files ?

for example:  
i don't need redis , kafka,elasticsearch,fileout,redis output ,so i comment them in src  
"/src/github.com/elastic/beats/libbeat/publisher/includes/includes.go"(version 7.12.0),the dist file only reduce to 84M,but it still too big for me.

is there any deep reduce method ?

---

<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:** [May 15, 2021, 6:24pm UTC](https://discuss.elastic.co/t/can-i-reduce-filebeat-executeable-file-size-by-config-something-or-comment-something-before-build/270453/2 "2021-05-15T18:24:29Z")

</div>

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