Enroll missing

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 I can easily compile the metricbeat but running metricbeat --help shows this:


The Enroll option is missing, and when running the metricbeat 6.5.1 downloaded from https://www.elastic.co/downloads/beats running metricbeat --help shows this:

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

Cheers

1 Like

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.

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?

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

Sorry for the huge delay.

You need to run the following commands:

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