Execbeat-master Installation


(Ravi Shanker Reddy) #1

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. I installed go version of go version go1.6.2 linux/amd64 under /usr/local/.

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 ???


(Medcl) #2

Hi,@Ravi_Shanker_Reddy
Have you already installed golang environment and configed?
check out this: https://golang.org/doc/install


(Ravi Shanker Reddy) #3

I already installed it and tested also..


(Magnus Bäck) #4

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 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.


(Ravi Shanker Reddy) #5

Thanks Its solved now.


(Mark Walkom) #6

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


(Chanawit Onchoo) #7

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 in /opt/execbeat and what I have to do next?


(Ravi Shanker Reddy) #8

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
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.


(Chanawit Onchoo) #9

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


(Ravi Shanker Reddy) #10

You can get that from

go get https://github.com/tools/godep


(Chanawit Onchoo) #11

I have new problem after "make"

http://pastebin.com/ZkdtBkyv


(ruflin) #12

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


(system) #13

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