# Error GOPATH

**URL:** https://discuss.elastic.co/t/error-gopath/139204
**Category:** Beats
**Tags:** beats-development
**Created:** [July 9, 2018, 2:56pm UTC](https://discuss.elastic.co/t/error-gopath/139204 "2018-07-09T14:56:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![charafouddine\_ahmed](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@charafouddine\_ahmed](https://discuss.elastic.co/u/charafouddine_ahmed)
#### Post date: [July 9, 2018, 2:56pm UTC](https://discuss.elastic.co/t/error-gopath/139204/1 "2018-07-09T14:56:02Z")

</div>

Hello,

I want to create my own Beat but unfortunately, I am faced with several problems that I can not solve or I do not understand.

In particular the GOPATH. What's the point ?

Because without really understanding its usefulness, I followed Golang's doc but I do not understand where I need to create my project file. and also able to execute the go get command without problem.

```
ahmed@ahmed-Charafouddine:~/go$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/ahmed/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GO15VENDOREXPERIMENT="1"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
CXX="g++"
CGO_ENABLED="1"

```

Version Golang :

```
ahmed@ahmed-Charafouddine:~/go$ go version
go version go1.6.2 linux/amd64

```

Merci !

---

<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: [July 10, 2018, 3:38pm UTC](https://discuss.elastic.co/t/error-gopath/139204/2 "2018-07-10T15:38:42Z")

</div>

Hi @charafouddine_ahmed,

I'm wondering if you are following our dev guide [https://www.elastic.co/guide/en/beats/devguide/current/new-beat.html](https://www.elastic.co/guide/en/beats/devguide/current/new-beat.html) ?

Most of it should be explained there, happy to fill the gaps if there is something missing!

---

<div class="post-metadata">

### Author: ![charafouddine\_ahmed](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@charafouddine\_ahmed](https://discuss.elastic.co/u/charafouddine_ahmed)
#### Post date: [July 12, 2018, 7:58am UTC](https://discuss.elastic.co/t/error-gopath/139204/3 "2018-07-12T07:58:14Z")

</div>

Thank you for the link. I will try to follow step by step

---

<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: [August 9, 2018, 7:58am UTC](https://discuss.elastic.co/t/error-gopath/139204/4 "2018-08-09T07:58:16Z")

</div>

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