# Not able to create a new Beat

**URL:** https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099
**Category:** Beats
**Created:** [January 28, 2017, 7:06pm UTC](https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099 "2017-01-28T19:06:23Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![newcoder99](https://avatars.discourse-cdn.com/v4/letter/n/f475e1/32.png) [@newcoder99](https://discuss.elastic.co/u/newcoder99)
#### Post date: [January 28, 2017, 7:06pm UTC](https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099/1 "2017-01-28T19:06:23Z")

</div>

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](http://github.com)\elast  
ic\beats\generate\beat" could not be found in the following locations:  
D:\ELSTACK\CreateBeats\beats\_master\src\[github.com](http://github.com)\elastic\beats\generate\beat  
D:\ELSTACK\CreateBeats\beats\_master\src\[github.com](http://github.com)\elastic\beats\generate\beat"

cookiecutter "D:\ELSTACK\CreateBeats\beats\_master\src\[github.com](http://github.com)\elastic\beats\generate\beat"

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

---

<div class="post-metadata">

### Author: ![JKhondhu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JKhondhu](https://discuss.elastic.co/u/JKhondhu)
#### Post date: [January 29, 2017, 11:06am UTC](https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099/2 "2017-01-29T11:06:00Z")

</div>

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

Did you create a directory under $GOPATH?

---

<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: [January 30, 2017, 7:16am UTC](https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099/3 "2017-01-30T07:16:29Z")

</div>

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](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:

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

---

<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: [February 18, 2017, 7:06pm UTC](https://discuss.elastic.co/t/not-able-to-create-a-new-beat/73099/4 "2017-02-18T19:06:42Z")

</div>

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