# Hsbeats compile error on debian

**URL:** <https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412>\
**Category:** Beats\
**Created:** [June 30, 2016, 1:29pm UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412 "2016-06-30T13:29:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![guenther](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@guenther](https://discuss.elastic.co/u/guenther)\
**Post date:** [June 30, 2016, 1:29pm UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412/1 "2016-06-30T13:29:32Z")

</div>

Hi,

i have a debian 7 and tried to compile the hsbeat with go 1.6 as described on the hsbeat-page.

`go get github.com/YaSuenag/hsbeat`

This statement fails with:  
`# github.com/YaSuenag/hsbeat/hsbeat`  
`.go/src/github.com/YaSuenag/hsbeat/hsbeat/hsbeat.go:130: b.Events undefined (type *beat.Beat has no field or method Events)`  
`.go/src/github.com/YaSuenag/hsbeat/hsbeat/hsbeat.go:188: b.Events undefined (type *beat.Beat has no field or method Events)`

What could be the reason of this problem and how do I fix it.

regards

---

<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 30, 2016, 3:12pm UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412/2 "2016-06-30T15:12:41Z")

</div>

It looks like the hsbeat project is not vendoring its dependencies and this is causing the problem you are seeing.

When you try to build the project it is pulling down the latest version of libbeat, but the project was written against an older version of libbeat. You can work-around the issue by checking out an older commit of the beats project. It looks like the last commit of hsbeats was from Feb 25, so maybe try using a commit from beats from that time.

Ideally the author of hsbeats would vendor the project's dependencies so you don't have to guess about what versions of dependencies to use.

---

<div class="post-metadata">

**Author:** ![guenther](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@guenther](https://discuss.elastic.co/u/guenther)\
**Post date:** [July 6, 2016, 11:50am UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412/3 "2016-07-06T11:50:50Z")

</div>

Thanks. I will try that, and also try to talk to the author of the plugin.

---

<div class="post-metadata">

**Author:** ![YaSuenag](https://avatars.discourse-cdn.com/v4/letter/y/c4cdca/32.png) [@YaSuenag](https://discuss.elastic.co/u/YaSuenag)\
**Post date:** [July 6, 2016, 2:23pm UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412/4 "2016-07-06T14:23:18Z")

</div>

I added a comment to HSBeat issue to resolve this problem.

> <https://github.com/YaSuenag/hsbeat/issues/7>

I think this is libbeat problem.  
HEAD in beats master branch is for v5.0.0 . It seems not to be compatibility from v1.2 (current release).

---

<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:** [July 5, 2017, 9:51pm UTC](https://discuss.elastic.co/t/hsbeats-compile-error-on-debian/54412/5 "2017-07-05T21:51:03Z")

</div>


