# Flowbeats fails in go build

**URL:** <https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601>\
**Category:** Beats\
**Created:** [April 27, 2016, 9:27pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601 "2016-04-27T21:27:05Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbernhardson](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tbernhardson](https://discuss.elastic.co/u/tbernhardson)\
**Post date:** [April 27, 2016, 9:27pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/1 "2016-04-27T21:27:06Z")

</div>

working on getting flowbeats installed to collect sflow data.  
working through the install steps listed in github  
when I get to the step of "go build" it returns:  
beater/flowbeat.go:52: b.Events undefined (type \*beat.Beat has no field or method Events)

go 1.5  
glide 0.10.2  
logstash 2.2.4

What am I missing?

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 28, 2016, 3:13pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/2 "2016-04-28T15:13:11Z")

</div>

have you run all steps as documented: [https://github.com/FStelzer/flowbeat#building](https://github.com/FStelzer/flowbeat#building)

does directory vendor/github.com/elastic/beats/libbeat exist? Seems like the glide.yaml file does not include the beats version it has been developed with.

Changing the glide.yml beats entry to:

```auto
- package: github.com/elastic/beats
  version: a0f543d88691f3081d63fcce83defc57a631cb8c
  subpackages:
  - /libbeat/beat
  - libbeat/cfgfile
  - libbeat/common
  - libbeat/logp

```

might help.

---

<div class="post-metadata">

**Author:** ![tbernhardson](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tbernhardson](https://discuss.elastic.co/u/tbernhardson)\
**Post date:** [April 28, 2016, 4:43pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/3 "2016-04-28T16:43:55Z")

</div>

Yes I ran the steps as documented on the github page (actually a number of steps were missing).

the directory vendor/github.com/elastic/beats/libbeat/ does exist.  
the glide.yaml file is:

package: [github.com/fstelzer/flowbeat](http://github.com/fstelzer/flowbeat)  
import:

- package: [github.com/elastic/beats](http://github.com/elastic/beats)  
subpackages:
  - libbeat/beat
  - libbeat/cfgfile
  - libbeat/logp
  - libbeat/publisher

- package: [github.com/fstelzer/sflow](http://github.com/fstelzer/sflow)

---

<div class="post-metadata">

**Author:** ![steffens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steffens/32/79630_2.png) [@steffens](https://discuss.elastic.co/u/steffens)\
**Post date:** [April 28, 2016, 7:38pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/4 "2016-04-28T19:38:30Z")

</div>

Try: remove sub-directory `vendor`, update the beats entry in glide.yaml as I've said and follow build instructions anew.

Main problem is the flowbeat/glide.yaml does not specify versions.

---

<div class="post-metadata">

**Author:** ![tbernhardson](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tbernhardson](https://discuss.elastic.co/u/tbernhardson)\
**Post date:** [April 28, 2016, 10:11pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/5 "2016-04-28T22:11:51Z")

</div>

Well, now I get different errors (about cannot find package under $GOROOT or $GOPATH), from what I can tell I am running into a combination of me not having any experience with go/glide and fstelzer assuming both go/glide familiarity and that the beats development environment is already loaded. I'll do some more reading/research and decide if I want to spend the time & effort to learn the development environment just to install one package, or to try using the Sflow toolkit from InMon.

---

<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:52pm UTC](https://discuss.elastic.co/t/flowbeats-fails-in-go-build/48601/6 "2017-07-05T21:52:41Z")

</div>


