# Beat devguide typo

**URL:** https://discuss.elastic.co/t/beat-devguide-typo/129676
**Category:** Beats
**Tags:** beats-development
**Created:** [April 26, 2018, 1:01pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676 "2018-04-26T13:01:27Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ripleymj](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@ripleymj](https://discuss.elastic.co/u/ripleymj)
#### Post date: [April 26, 2018, 1:01pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/1 "2018-04-26T13:01:27Z")

</div>

I was attempting to follow the New Beat guide, and think there's a small typo. On [https://www.elastic.co/guide/en/beats/devguide/current/newbeat-getting-ready.html](https://www.elastic.co/guide/en/beats/devguide/current/newbeat-getting-ready.html) it says to clone to `${GOPATH}/src/elastic/beats`. When you get to [https://www.elastic.co/guide/en/beats/devguide/current/newbeat-generate.html](https://www.elastic.co/guide/en/beats/devguide/current/newbeat-generate.html) it says to run `python $GOPATH/src/github.com/elastic`. A page later on [https://www.elastic.co/guide/en/beats/devguide/current/setting-up-beat.html](https://www.elastic.co/guide/en/beats/devguide/current/setting-up-beat.html), `make setup` seems to want `$GOPATH/src/github.com/elastic` as well.

Should the initial clone be listed as `git clone https://github.com/elastic/beats ${GOPATH}/src/github.com/elastic/beats` instead? When I tried this, the rest of the tutorial seemed to work better.

---

<div class="post-metadata">

### Author: ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)
#### Post date: [April 26, 2018, 1:46pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/2 "2018-04-26T13:46:42Z")

</div>

Uhm,

I think the tutorial is correcto, you need to clone Beats first to use the generator, then you run the generator from your beat folder.

What's the error you are getting?

Br

---

<div class="post-metadata">

### Author: ![ripleymj](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@ripleymj](https://discuss.elastic.co/u/ripleymj)
#### Post date: [April 26, 2018, 2:44pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/3 "2018-04-26T14:44:50Z")

</div>

```
ripleymj@host:~$ export GOPATH=/home/ripleymj/attempt2
ripleymj@host:~$ mkdir -p ${GOPATH}/src/github.com/elastic
ripleymj@host:~$ git clone https://github.com/elastic/beats ${GOPATH}/src/elastic/beats
Cloning into '/home/ripleymj/attempt2/src/elastic/beats'...
remote: Counting objects: 88874, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 88874 (delta 0), reused 1 (delta 0), pack-reused 88868
Receiving objects: 100% (88874/88874), 76.12 MiB | 9.58 MiB/s, done.
Resolving deltas: 100% (54106/54106), done.
ripleymj@host:~$ mkdir ${GOPATH}/src/github.com/ripleymj
ripleymj@host:~$ cd ${GOPATH}/src/github.com/ripleymj
ripleymj@host:~/attempt2/src/github.com/ripleymj$ python $GOPATH/src/github.com/elastic/beats/script/generate.py
python: can't open file '/home/ripleymj/attempt2/src/github.com/elastic/beats/script/generate.py': [Errno 2] No such file or directory
```

---

<div class="post-metadata">

### Author: ![ripleymj](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@ripleymj](https://discuss.elastic.co/u/ripleymj)
#### Post date: [April 26, 2018, 2:45pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/4 "2018-04-26T14:45:36Z")

</div>

Even reviewing the first page again ([https://www.elastic.co/guide/en/beats/devguide/current/newbeat-getting-ready.html](https://www.elastic.co/guide/en/beats/devguide/current/newbeat-getting-ready.html)), the `mkdir` shows a `github.com` in the path, and the clone command does not.

---

<div class="post-metadata">

### Author: ![ripleymj](https://avatars.discourse-cdn.com/v4/letter/r/4bbf92/32.png) [@ripleymj](https://discuss.elastic.co/u/ripleymj)
#### Post date: [April 26, 2018, 8:03pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/5 "2018-04-26T20:03:49Z")

</div>

Sorry, I've just realized there is an existing pull request for this: [https://github.com/elastic/beats/pull/6851](https://github.com/elastic/beats/pull/6851)

---

<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: [May 24, 2018, 8:03pm UTC](https://discuss.elastic.co/t/beat-devguide-typo/129676/6 "2018-05-24T20:03:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
