# GO Build wmibeat error throwing me for a loop

**URL:** <https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140>\
**Category:** Beats\
**Created:** [June 3, 2017, 12:41am UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140 "2017-06-03T00:41:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dealerof21](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dealerof21](https://discuss.elastic.co/u/dealerof21)\
**Post date:** [June 3, 2017, 12:41am UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140/1 "2017-06-03T00:41:01Z")

</div>

So i have invested many an hour trying to build eskibars wmibeat. After resolving many error messages, I thought I was finally on my way to actually building the .exe only to be stumped on this message:

c:\Users\haywood\go\src\wmibeat\beater\>go build # wmibeat/beater.\wmibeat.go:177: cannot use event (type "[github.com/elastic/beats/libbeat/common](http://github.com/elastic/beats/libbeat/common)".MapStr) as type "[github.com/elastic/l](http://github.com/elastic/l)  
ibbeat/common".MapStr in argument to b.Events.PublishEvent

Scouring the net does not provide any useful direction, so hopefully someone can point me in the right direction.

Thanks!

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [June 5, 2017, 1:37pm UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140/2 "2017-06-05T13:37:11Z")

</div>

Since the project doesn't have its dependencies self-contained in a `vendor/` dir, you don't know exactly what dependency versions it requires. So given that the last commit was about a year ago I think you should try using a version of libbeat from about around that time. So go into `$GOPATH/src/github.com/elastic/beats` and do a `git checkout` of an earlier version from around that time and try building.

It would be nice to migrate the wmibeat into the Metricbeat windows module.

---

<div class="post-metadata">

**Author:** ![Jeff\_Davis](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@Jeff\_Davis](https://discuss.elastic.co/u/Jeff_Davis)\
**Post date:** [June 6, 2017, 5:31pm UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140/3 "2017-06-06T17:31:07Z")

</div>

+1 for adding wmibeat functionality to the Windows module.

---

<div class="post-metadata">

**Author:** ![dealerof21](https://avatars.discourse-cdn.com/v4/letter/d/87869e/32.png) [@dealerof21](https://discuss.elastic.co/u/dealerof21)\
**Post date:** [June 6, 2017, 5:45pm UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140/4 "2017-06-06T17:45:09Z")

</div>

Andrew,  
Thank you for your reply. I ended up throwing in the towel and just d/l'ed a compiled .exe and .yml file. I do have to say this beat is rather nifty as it provides me with additional counters for our Exchange and MSSQL teams.

I too would like to see this added into Metricbeat module as well!

---

<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:** [November 4, 2022, 4:48am UTC](https://discuss.elastic.co/t/go-build-wmibeat-error-throwing-me-for-a-loop/88140/5 "2022-11-04T04:48:54Z")

</div>


