# How to compile winlogbeat source code

**URL:** <https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328>\
**Category:** Beats\
**Tags:** winlogbeat\
**Created:** [July 24, 2018, 8:38am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328 "2018-07-24T08:38:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ping\_luo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ping_luo/32/46063_2.png) [@ping\_luo](https://discuss.elastic.co/u/ping_luo)\
**Post date:** [July 24, 2018, 8:38am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/1 "2018-07-24T08:38:18Z")

</div>

hi all:  
i want to add extra functions to winlogbeat, but i can`t find any doc to guide. any one could provide a detailed method?

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [July 24, 2018, 9:21am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/2 "2018-07-24T09:21:50Z")

</div>

[https://www.elastic.co/products/beats/winlogbeat](https://www.elastic.co/products/beats/winlogbeat)

---

<div class="post-metadata">

**Author:** ![ping\_luo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ping_luo/32/46063_2.png) [@ping\_luo](https://discuss.elastic.co/u/ping_luo)\
**Post date:** [July 24, 2018, 9:38am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/3 "2018-07-24T09:38:24Z")

</div>

thanks for your reply, this question has been sloved. i can get a winlogbeat.exe, after execute the cmd on linux, GOOS=windows GOARCH=amd64 go build -i

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [July 24, 2018, 9:41am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/4 "2018-07-24T09:41:01Z")

</div>

I do not work enough windows but in my opinion, if you download winlogbeat, you should have a .exe already well done and prepare

---

<div class="post-metadata">

**Author:** ![ping\_luo](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ping_luo/32/46063_2.png) [@ping\_luo](https://discuss.elastic.co/u/ping_luo)\
**Post date:** [July 24, 2018, 9:42am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/5 "2018-07-24T09:42:14Z")

</div>

i just download winlogbeat source code and want to add extra features

---

<div class="post-metadata">

**Author:** ![Charaf\_Ahmed](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/charaf_ahmed/32/30467_2.png) [@Charaf\_Ahmed](https://discuss.elastic.co/u/Charaf_Ahmed)\
**Post date:** [July 24, 2018, 9:45am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/6 "2018-07-24T09:45:52Z")

</div>

In this case, as much download the project beats by Golang, (with all types beats) and how you will be in complete freedom to change what you want.  
Then the compiler with the GOOS you want.

> **[elastic/beats](https://github.com/elastic/beats)**
>
> beats - :tropical\_fish: Beats - Lightweight shippers for Elasticsearch & Logstash

---

<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 21, 2018, 9:45am UTC](https://discuss.elastic.co/t/how-to-compile-winlogbeat-source-code/141328/7 "2018-08-21T09:45:56Z")

</div>

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