Beat devguide typo

I was attempting to follow the New Beat guide, and think there's a small typo. On it says to clone to ${GOPATH}/src/elastic/beats. When you get to it says to run python $GOPATH/src/ A page later on, make setup seems to want $GOPATH/src/ as well.

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


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?


ripleymj@host:~$ export GOPATH=/home/ripleymj/attempt2
ripleymj@host:~$ mkdir -p ${GOPATH}/src/
ripleymj@host:~$ git clone ${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/
ripleymj@host:~$ cd ${GOPATH}/src/
ripleymj@host:~/attempt2/src/$ python $GOPATH/src/
python: can't open file '/home/ripleymj/attempt2/src/': [Errno 2] No such file or directory

Even reviewing the first page again (, the mkdir shows a in the path, and the clone command does not.

Sorry, I've just realized there is an existing pull request for this:

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