# Execbeat-master Installation

**URL:** https://discuss.elastic.co/t/execbeat-master-installation/54724
**Category:** Beats
**Created:** [July 5, 2016, 11:36am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724 "2016-07-05T11:36:03Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 5, 2016, 11:36am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/1 "2016-07-05T11:36:03Z")

</div>

I am using Red Hat Enterprise Linux Server release 6.4 (Santiago) . I want to install exec beats. I downloaded the exec beat master zip file from [https://github.com/christiangalsterer/execbeat](https://github.com/christiangalsterer/execbeat). I installed `go` version of `go version go1.6.2 linux/amd64` under `/usr/local/`.

[https://github.com/christiangalsterer/execbeat#build-test-run](https://github.com/christiangalsterer/execbeat#build-test-run). Here he mentioned `GOPATH=<your go path> make execbeat`. I mentioned `GOPATH=/usr/local/go/bin/go make execbeat`. Then its showing an error of  
`# first make sure we have godep go get github.com/tools/godep make: go: Command not found make: *** [execbeat] Error 127`

But I have the godep in `/root/work/bin`

What I have to do to go further??? Is there any other rpm of exec beats to install simply ???

---

<div class="post-metadata">

### Author: ![medcl.net](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/medcl.net/32/4414_2.png) [@medcl.net](https://discuss.elastic.co/u/medcl.net)
#### Post date: [July 5, 2016, 3:34pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/2 "2016-07-05T15:34:18Z")

</div>

Hi,@Ravi_Shanker_Reddy  
Have you already installed golang environment and configed？  
check out this: [https://golang.org/doc/install](https://golang.org/doc/install)

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 5, 2016, 5:12pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/3 "2016-07-05T17:12:24Z")

</div>

> [@Ravi\_Shanker\_Reddy](#):
>
> I installed go version of go version go1.6.2 linux/amd64 under /usr/local/.

I already installed it and tested also..

---

<div class="post-metadata">

### Author: ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)
#### Post date: [July 5, 2016, 6:06pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/4 "2016-07-05T18:06:44Z")

</div>

> I installed `go` version of `go version go1.6.2 linux/amd64` under `/usr/local/`.

Did you add /usr/local/go/bin to your PATH variable?

> Here he mentioned `GOPATH=<your go path> make execbeat`. I mentioned `GOPATH=/usr/local/go/bin/go make execbeat`.

No, GOPATH should not be the path to your go executable. It's the root directory of your Go development workspace, e.g. ~/src/go. Read [How to Write Go Code - The Go Programming Language](https://golang.org/doc/code.html).

> But I have the godep in /root/work/bin

What's it doing there? Don't build anything as root.

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 5, 2016, 6:11pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/5 "2016-07-05T18:11:51Z")

</div>

Thanks Its solved now.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [July 5, 2016, 8:45pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/6 "2016-07-05T20:45:29Z")

</div>

How was it fixed?  
Providing a solution may help others in future.

---

<div class="post-metadata">

### Author: ![Chanawit\_Onchoo](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@Chanawit\_Onchoo](https://discuss.elastic.co/u/Chanawit_Onchoo)
#### Post date: [July 6, 2016, 7:42am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/7 "2016-07-06T07:42:45Z")

</div>

Can I have full version "step by step" how to install execbeat? i am really confused now. Right now I have already install go by using "yum install go" on CentOS and now I clone [https://github.com/christiangalsterer/execbeat](https://github.com/christiangalsterer/execbeat) in /opt/execbeat and what I have to do next?

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 6, 2016, 3:32pm UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/8 "2016-07-06T15:32:15Z")

</div>

I installed in Redhat 6

`Installed go in /usr/local/ Go Version: 1.6 minimum`

`To install this Need to update python also Python Version : 2.7.11(I used)`

Create workspace as mentioned in the link  
[https://golang.org/doc/install](https://golang.org/doc/install)  
or  
`mkdir -p $HOME/work/src/github.com/christiangalsterer export GOPATH=$HOME/work export PATH=$PATH:/usr/local/go/bin/`

Note: Please check your go is installed correctly before continue.  
If your installation of go is succesfully completed then

`cd $HOME/work/src/github.com/christiangalsterer git clone https://github.com/christiangalsterer/execbeat cd execbeat make`  
`curl -XPUT 'http://curl -XPUT 'http://xxx.xx.x.xxx:9200/_template/execbeat' -d@etc/execbeat.template.json`  
`./execbeat`

Warning: If you got an error for the template after executing  
`cp execbeat.template.json <to/the/folder/its/mentioned/in/the/error/`  
Hope it helps.

---

<div class="post-metadata">

### Author: ![Chanawit\_Onchoo](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@Chanawit\_Onchoo](https://discuss.elastic.co/u/Chanawit_Onchoo)
#### Post date: [July 7, 2016, 3:04am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/9 "2016-07-07T03:04:46Z")

</div>

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)

---

<div class="post-metadata">

### Author: ![Ravi\_Shanker\_Reddy](https://avatars.discourse-cdn.com/v4/letter/r/a5b964/32.png) [@Ravi\_Shanker\_Reddy](https://discuss.elastic.co/u/Ravi_Shanker_Reddy)
#### Post date: [July 7, 2016, 3:31am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/10 "2016-07-07T03:31:35Z")

</div>

You can get that from

go get [https://github.com/tools/godep](https://github.com/tools/godep)

---

<div class="post-metadata">

### Author: ![Chanawit\_Onchoo](https://avatars.discourse-cdn.com/v4/letter/c/d2c977/32.png) [@Chanawit\_Onchoo](https://discuss.elastic.co/u/Chanawit_Onchoo)
#### Post date: [July 7, 2016, 3:34am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/11 "2016-07-07T03:34:33Z")

</div>

I have new problem after "make"

[http://pastebin.com/ZkdtBkyv](http://pastebin.com/ZkdtBkyv)

---

<div class="post-metadata">

### Author: ![ruflin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ruflin/32/3116_2.png) [@ruflin](https://discuss.elastic.co/u/ruflin)
#### Post date: [July 11, 2016, 8:35am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/12 "2016-07-11T08:35:15Z")

</div>

As these are basic golang packages, it looks like a potential issue with your go paths?

---

<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 26, 2016, 11:36am UTC](https://discuss.elastic.co/t/execbeat-master-installation/54724/13 "2016-07-26T11:36:16Z")

</div>

This topic was automatically closed after 21 days. New replies are no longer allowed.
