Elastic-agent install: Unknown resource

I'm trying to install elastic-agent on our server and am getting

message: Unknown resource.

I'm using the hosted elastic offering and have APM & Fleet enabled.

Steps Taken:

  • Download Linux 64-bit tarball to server
  • Unzip it (tar -zxvf elastic-agent-7.15.0-linux-x86_64.tar.gz / cd elastic-agent-7.15.0-linux-x86_64)
  • Run it with the command given in the setup instructions:
sudo ./elastic-agent install -f --url=https://[my url].fleet.eastus2.azure.elastic-cloud.com:443 --enrollment-token=[my token]

Expected result:

  • It registers my server as an agent

Actual result:

❯ sudo ./elastic-agent install -f --url=https://[my url].fleet.eastus2.azure.elastic-cloud.com:443 --enrollment-token=[my token]
2021-10-14T16:32:29.657Z	INFO	cmd/enroll_cmd.go:432	Starting enrollment to URL: https://[my url].fleet.eastus2.azure.elastic-cloud.com:443/
Error: fail to enroll: fail to execute request to fleet-server: status code: 0, fleet-server returned an error: , message: Unknown resource.
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/7.15/fleet-troubleshooting.html

Also tried doing the "run standalone" version, copying the elastic-agent.yml into my config and providing the url + enrollment token manually -- same result.

Any ideas?

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