# How to package metricbeat code

**URL:** <https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 11, 2018, 9:25am UTC](https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597 "2018-04-11T09:25:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![firstpostcommenter](https://avatars.discourse-cdn.com/v4/letter/f/ad7895/32.png) [@firstpostcommenter](https://discuss.elastic.co/u/firstpostcommenter)\
**Post date:** [April 11, 2018, 9:25am UTC](https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597/1 "2018-04-11T09:25:15Z")

</div>

Hi,  
I have checked out the metricbeat code from [https://github.com/elastic/beats](https://github.com/elastic/beats)  
Now, how can I build the code in my local machine so that I can get the Windows zip file as present in [https://www.elastic.co/downloads/beats/metricbeat](https://www.elastic.co/downloads/beats/metricbeat)

---

<div class="post-metadata">

**Author:** ![adrisr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/adrisr/32/25423_2.png) [@adrisr](https://discuss.elastic.co/u/adrisr)\
**Post date:** [April 12, 2018, 4:37pm UTC](https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597/2 "2018-04-12T16:37:07Z")

</div>

Run `make package` inside the metricbeat directory. The result will be inside `build/upload`.

You'll need docker and virtualenv.

---

<div class="post-metadata">

**Author:** ![firstpostcommenter](https://avatars.discourse-cdn.com/v4/letter/f/ad7895/32.png) [@firstpostcommenter](https://discuss.elastic.co/u/firstpostcommenter)\
**Post date:** [April 13, 2018, 1:27pm UTC](https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597/3 "2018-04-13T13:27:48Z")

</div>

Instead of packaging the code locally in my machine, can I configure any travis build to my github repository. Is there any settings available from elastic for metricbeat?

---

<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 11, 2018, 1:28pm UTC](https://discuss.elastic.co/t/how-to-package-metricbeat-code/127597/4 "2018-05-11T13:28:28Z")

</div>

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