# Why is the Filebeat that I built myself more than 50 MB smaller than the one provided by Elastic?

**URL:** <https://discuss.elastic.co/t/why-is-the-filebeat-that-i-built-myself-more-than-50-mb-smaller-than-the-one-provided-by-elastic/369531>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [October 28, 2024, 10:08am UTC](https://discuss.elastic.co/t/why-is-the-filebeat-that-i-built-myself-more-than-50-mb-smaller-than-the-one-provided-by-elastic/369531 "2024-10-28T10:08:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![liu78778](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/liu78778/32/64678_2.png) [@liu78778](https://discuss.elastic.co/u/liu78778)\
**Post date:** [October 28, 2024, 10:08am UTC](https://discuss.elastic.co/t/why-is-the-filebeat-that-i-built-myself-more-than-50-mb-smaller-than-the-one-provided-by-elastic/369531/1 "2024-10-28T10:08:53Z")

</div>

Hello everyone,

I followed the _Building Beats from the Source_ documentation in the Beats repository. After building, I ended up with a Filebeat binary around 90 MB, but the Filebeat binary downloaded from GitHub is about 150 MB. Am I missing some essential steps?

Go version: 1.19.4  
OS: Linux/amd64  
Version: 8.9.0

Official download page: [Filebeat 8.9.0 | Elastic](https://www.elastic.co/downloads/past-releases/filebeat-8-9-0)  
Linux x86\_64

My build result:

> -rwxr-xr-x 1 root root 101710152 Oct 28 16:49 filebeat

Result from extracting filebeat-8.9.0-linux-x86\_64.tar:

> -rwxr-xr-x 1 root root 158869624 Oct 21 15:01 filebeat

build shell

```shell
# build
make mage

cd filebeat
mage build

```
