Hi there,
First I would like to thank you!!! You are the best!!!
Following your instructions, I could enroll without any issues the fleet server using the command bellow:
sudo elastic-agent enroll -f --fleet-server-es=https://XX.XX.X.XX:9200 --fleet-server-es-ca=cert.crt --fleet-server-service-token=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And the expected results:
The Elastic Agent is currently in BETA and should not be used in production
2021-06-02T17:10:41.724Z INFO cmd/enroll_cmd.go:300 Generating self-signed certificate for Fleet Server
2021-06-02T17:10:44.020Z INFO cmd/enroll_cmd.go:643 Fleet Server - Stopped
2021-06-02T17:10:50.037Z INFO cmd/enroll_cmd.go:648 Fleet Server - Stopped
2021-06-02T17:10:56.055Z INFO cmd/enroll_cmd.go:648 Fleet Server - Stopped
2021-06-02T17:11:02.065Z INFO cmd/enroll_cmd.go:648 Fleet Server - Stopped
2021-06-02T17:11:08.080Z INFO cmd/enroll_cmd.go:648 Fleet Server - Stopped
2021-06-02T17:11:13.088Z INFO cmd/enroll_cmd.go:593 Waiting for Elastic Agent to start
2021-06-02T17:11:15.092Z INFO cmd/enroll_cmd.go:643 Fleet Server - Starting
2021-06-02T17:11:17.095Z INFO cmd/enroll_cmd.go:624 Fleet Server - Running on default policy with Fleet Server integration; missing config fleet.agent.id (expected during bootstrap process)
2021-06-02T17:11:19.657Z INFO cmd/enroll_cmd.go:203 Successfully triggered restart on running Elastic Agent.
Successfully enrolled the Elastic Agent.
Best regards,
Franthesco Ferrari