ripleymj
(Mike Ripley)
April 26, 2018, 1:01pm
1
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 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 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 , 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.
exekias
(Carlos Pérez Aradros)
April 26, 2018, 1:46pm
2
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
ripleymj
(Mike Ripley)
April 26, 2018, 2:44pm
3
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
ripleymj
(Mike Ripley)
April 26, 2018, 2:45pm
4
Even reviewing the first page again (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.
ripleymj
(Mike Ripley)
April 26, 2018, 8:03pm
5
Sorry, I've just realized there is an existing pull request for this: https://github.com/elastic/beats/pull/6851
system
(system)
Closed
May 24, 2018, 8:03pm
6
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.