# Enroll missing

**URL:** <https://discuss.elastic.co/t/enroll-missing/158419>\
**Category:** Beats\
**Tags:** beats-development\
**Created:** [November 27, 2018, 9:17pm UTC](https://discuss.elastic.co/t/enroll-missing/158419 "2018-11-27T21:17:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bering](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bering/32/4044_2.png) [@bering](https://discuss.elastic.co/u/bering)\
**Post date:** [November 27, 2018, 9:17pm UTC](https://discuss.elastic.co/t/enroll-missing/158419/1 "2018-11-27T21:17:42Z")

</div>

I am trying to create a new metricset with the Metricbeat 6.5.1 i have downloaded the sourcecode from here: [https://github.com/elastic/beats/releases](https://github.com/elastic/beats/releases) I can easily compile the metricbeat but running metricbeat --help shows this:

 ![18](https://us1.discourse-cdn.com/elastic/original/3X/3/1/3111bb123dfd2963b7ff7f04d8631f097a1b8ad6.png)  
The Enroll option is missing, and when running the metricbeat 6.5.1 downloaded from [https://www.elastic.co/downloads/beats](https://www.elastic.co/downloads/beats) running metricbeat --help shows this:  
 ![07](https://us1.discourse-cdn.com/elastic/original/3X/6/6/6658d776ce0955523f8345a1f02edd79e9d347d5.png)

Does anyone know how I can get the enroll option in the beat that I compile?

Cheers

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [November 30, 2018, 9:02am UTC](https://discuss.elastic.co/t/enroll-missing/158419/2 "2018-11-30T09:02:21Z")

</div>

As `enroll` is an X-Pack feature, you need to compile the binary in `beats-6.5.1/x-pack/metricbeat` to get it. Otherwise you are just compiling the OSS version of Metricbeat.

---

<div class="post-metadata">

**Author:** ![maurycupitt](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@maurycupitt](https://discuss.elastic.co/u/maurycupitt)\
**Post date:** [December 7, 2018, 2:45pm UTC](https://discuss.elastic.co/t/enroll-missing/158419/3 "2018-12-07T14:45:03Z")

</div>

Could you expand on this answer please? The only files I have in x-pack/metricbeat are cmd/root.go and main.go. What do I need to do to get the enroll compiled in?

---

<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:** [January 4, 2019, 2:53pm UTC](https://discuss.elastic.co/t/enroll-missing/158419/4 "2019-01-04T14:53:40Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kvch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kvch/32/72058_2.png) [@kvch](https://discuss.elastic.co/u/kvch)\
**Post date:** [March 29, 2019, 11:49am UTC](https://discuss.elastic.co/t/enroll-missing/158419/5 "2019-03-29T11:49:42Z")

</div>

Sorry for the huge delay.

You need to run the following commands:

```auto
cd ${GOPATH}/src/github.com/elastic/beats/x-pack/metricbeat
mage build

```
