Hi there, I am install Elasticsearch and Kibana. All services using self-signed certificates generated with elasticsearch-certutil.
In the Kibana Fleet GUI interface, I added a Fleet server and selected Advanced. I created a policy, chose production deployment mode, added the Fleet server with port 8220 and https protocol url. I created a token and issued the command:
sudo ./elastic-agent install --url=bttps://fleet.myserver.com:8220
--fleet-server-es=bttps://elk-01.myserver.com:9200/)
--fleet-server-service-token=token-here
--fleet-server-policy=fleet-server-policy
--certificate-authorities=/etc/elasticsearch/certs/ca/ca.crt \ --fleet-server-es-ca=/etc/elasticsearch/certs/ca/ca.crt
--fleet-server-cert=/home/adminimum/fleet/fleet.crt
--fleet-server-cert-key=/home/adminimum/fleet/fleet.key
--fleet-server-port=8220
After waiting for the message, recieved error "[====] Waiting For Enroll... [2m12s] Error: fleet-server failed: context canceled",
I also tried the command:
sudo ./elastic-agent install
--fleet-server-es=bttps://elk-01.myserver.com:9200
--fleet-server-service-token=token-here
--fleet-server-es-ca=/etc/elasticsearch/certs/ca/ca.crt
--fleet-server-policy=fleet-server-policy
--fleet-server-port=8220
The same problem occurred again. I also tried using --fleet-server-es-insecure.
ELK is accessible via curl -k -u {username}:{password} https://{ELASTICSEARCH_HOST}:9200
bttps://kibana.myserver.com:5601/api/fleet/package_policies/ad39463f-5cc0-4868-aba5-cb106318bb19
The result is here: pastebin .com/LvqK8NY3
Screenshot of settings attached.
I checked app/fleet/_debug I do not have preconfigured policies.
ELK Stack version 8.12.2
please help, why clear installation not working