# Failed to create new beat

**URL:** <https://discuss.elastic.co/t/failed-to-create-new-beat/197978>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [September 4, 2019, 5:32am UTC](https://discuss.elastic.co/t/failed-to-create-new-beat/197978 "2019-09-04T05:32:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nee\_Defeng](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nee_defeng/32/45771_2.png) [@Nee\_Defeng](https://discuss.elastic.co/u/Nee_Defeng)\
**Post date:** [September 4, 2019, 5:32am UTC](https://discuss.elastic.co/t/failed-to-create-new-beat/197978/1 "2019-09-04T05:32:34Z")

</div>

After creating the beat, I got the error below according to the instruction from this link: [https://www.elastic.co/guide/en/beats/devguide/7.3/setting-up-beat.html](https://www.elastic.co/guide/en/beats/devguide/7.3/setting-up-beat.html)

[root@elk infabeat]# make setup  
mkdir -p vendor/github.com/elastic  
cp -R /root/go/src/github.com/elastic/beats vendor/github.com/elastic/  
rm -rf vendor/github.com/elastic/beats/.git vendor/github.com/elastic/beats/x-pack  
mkdir -p vendor/github.com/magefile  
cp -R /root/go/src/github.com/elastic/beats/vendor/github.com/magefile/mage vendor/github.com/magefile  
git init  
Reinitialized existing Git repository in /root/go/src/github.com///.git/  
make -f ./vendor/github.com/elastic/beats/libbeat/scripts/Makefile mage ES\_BEATS=./vendor/github.com/elastic/beats  
make[1]: Entering directory `/root/go/src/github.com/<username>/<beatname>' Installing mage v1.8.0 from vendor dir. can't load package: package github.com/<username>/<beatname>/vendor/github.com/magefile/mage: cannot use path@version syntax in GOPATH mode make[1]: *** [mage] Error 1 make[1]: Leaving directory`/root/go/src/github.com//'  
make: \*\*\* [pre-setup] Error 2  
[root@elk infabeat]#

Env is like this:

[root@elk infabeat]# python --version  
Python 2.7.9  
[root@elk infabeat]# virtualenv --version  
16.7.5  
[root@elk infabeat]# go version  
go version go1.13 linux/amd64  
[root@elk infabeat]# uname -a  
Linux elk 3.10.0-693.el7.x86\_64 #1 SMP Thu Jul 6 19:56:57 EDT 2017 x86\_64 x86\_64 x86\_64 GNU/Linux  
[root@elk infabeat]#

---

<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:** [October 2, 2019, 5:32am UTC](https://discuss.elastic.co/t/failed-to-create-new-beat/197978/2 "2019-10-02T05:32:37Z")

</div>

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