Not able to create a new Beat


(Newcoder99) #1

Hello Everyone,

I am trying to a custom beat. I have done the installation of Go and cookiecutter. Now when I am trying to execute the below command, it gives following error.

"A valid repository for "D:\ELSTACK\CreateBeats\beats_master\src\github.com\elast
ic\beats\generate\beat" could not be found in the following locations:
D:\ELSTACK\CreateBeats\beats_master\src\github.com\elastic\beats\generate\beat
D:\ELSTACK\CreateBeats\beats_master\src\github.com\elastic\beats\generate\beat"

cookiecutter "D:\ELSTACK\CreateBeats\beats_master\src\github.com\elastic\beats\generate\beat"

I am confused a bit because I donot know where I am making mistake.


(Jymit Singh Khondhu) #2

https://www.elastic.co/guide/en/beats/libbeat/5.1/newbeat-generate.html#newbeat-generate

Did you create a directory under $GOPATH?


(ruflin) #3

This is a mistake on my side. I changed the generator to not use cookiecutter anymore. Here can be found the up-to-date docs when using master: https://www.elastic.co/guide/en/beats/libbeat/master/newbeat-generate.html#newbeat-generate

To generate a beat based on the stable 5.1 branch, you have to do the following two commands:

cd $GOPATH/src/github.com/elastic/beats
git checkout 5.1

Now cookiecuttter should work again as before. I will update / fix the docs in the next days. Sorry about that.


(system) #4

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