Were trying to use Beats Central Management in ECE 2.3 by using a username and password so that we can script this when we deploy to numerous servers. The metricbeat is not set as a service on one of our testing computers. Error message: "Error creating a new enrollment token: Unexpected number of tokens, got 0, only one expected"
PS C:\metricbeat-7.0.0-production-windows-x86_64> .\metricbeat.exe enroll https://xyz.gov:9243 --e
2019-10-08T14:34:01.336-0400 INFO instance/beat.go:571 Home path: [C:\metricbeat-7.0.0-production-windows-x86_64] Config path: [C:\metricbeat-7.0.0-production-windows-x86_64] Data path: [C:\metricbeat-7.0.0-production-windows-x86_64\data] Logs path: [C:\metricbeat-7.0.0-production-windows-x86_64\logs]
2019-10-08T14:34:01.337-0400 INFO instance/beat.go:579 Beat ID: xxxxx
This will replace your current settings. Do you want to continue? [Y/n]:2019-10-08T14:34:04.364-0400 INFO add_cloud_metadata/add_cloud_metadata.go:340 add_cloud_metadata: hosting provider type not detected.
y
Enter password:
2019-10-08T14:35:52.955-0400 INFO kibana/client.go:118 Kibana url: https://xyz.gov:9243
Error creating a new enrollment token: Unexpected number of tokens, got 0, only one expected
Seems like the beat is connecting to Kibana its just not recieving anything back. We are behind a VIP and are using Logstash to direct our beats traffic once the beat is enrolled if that info is of any help.