# How to build custom beat for windows OS using Linux machine

**URL:** <https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [May 9, 2020, 11:57pm UTC](https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863 "2020-05-09T23:57:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![visasimbu](https://avatars.discourse-cdn.com/v4/letter/v/4491bb/32.png) [@visasimbu](https://discuss.elastic.co/u/visasimbu)\
**Post date:** [May 9, 2020, 11:57pm UTC](https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863/1 "2020-05-09T23:57:52Z")

</div>

I am able to create custom beat as mentioned in documentation with my custom logic. I have tested same in linux RHEL 7 machine. I have used RHEL7 for build and test.

Now I need to create beat exe file for windows machine using my linux machine. How can I achieve this ? Kindly help me on this .

---

<div class="post-metadata">

**Author:** ![whatgeorgemade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whatgeorgemade/32/103246_2.png) [@whatgeorgemade](https://discuss.elastic.co/u/whatgeorgemade)\
**Post date:** [May 14, 2020, 8:39am UTC](https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863/2 "2020-05-14T08:39:26Z")

</div>

Try `mage crossBuild`. You'll need Docker installed as the build is run in a container.

---

<div class="post-metadata">

**Author:** ![PhantomV1989](https://avatars.discourse-cdn.com/v4/letter/p/e79b87/32.png) [@PhantomV1989](https://discuss.elastic.co/u/PhantomV1989)\
**Post date:** [May 23, 2020, 5:07am UTC](https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863/3 "2020-05-23T05:07:43Z")

</div>

Install Golang on your target windows OS. Use that to compile the custom beats you have written in your linux machine with "go build".

---

<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:** [June 20, 2020, 5:20am UTC](https://discuss.elastic.co/t/how-to-build-custom-beat-for-windows-os-using-linux-machine/231863/4 "2020-06-20T05:20:35Z")

</div>

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