Hello, i hope you are doing well
This my infra
ELASTIC
v-elkmaster01.sys.u-bordeaux.fr
v-elkmaster02.sys.u-bordeaux.fr
v-elkmaster03.sys.u-bordeaux.fr
p-elkhot01.sys.u-bordeaux.fr
p-elkhot02.sys.u-bordeaux.fr
p-elkwarm01.sys.u-bordeaux.fr
KIBANA
v-kibana01.sys.u-bordeaux.fr
Elastic has self-signed certificate
kibana has public cerficate
For Elasitc and kibana all is good
Now i'm trying to set up a fleet server using kibana
FLEET
v-elkfleet01.sys.u-bordeaux.fr
has a public certificate
- Login to Kibana and navigate to Fleet>Agents tab.
-
Add host ip:https://elkfleet.sys.u-bordeaux.fr:8220.
-
Generate token and copy fleet server install command for windows.
-
Run agent install command and observe Error: enroll command failed with exit code: 1.
this is the command
./elastic-agent install --url=https://172.29.52.250:8220 \
--fleet-server-es=https://172.29.52.38:9200 \
--fleet-server-service-token=************************************************ \
--fleet-server-policy=fleet-server-policy \
--fleet-server-es-ca-trusted-fingerprint=******************************************* \
--certificate-authorities=/etc/elasticsearch/certs/Chain_Intermediate_Root_Sectigo.crt \
--fleet-server-cert=/etc/elasticsearch/certs/elkfleet_sys_u-bordeaux_fr.crt \
--fleet-server-cert-key=/etc/elasticsearch/certs/elkfleet_sys_u-bordeaux_fr.key \
--fleet-server-port=8220
And the logs
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
{"log.level":"info","@timestamp":"2023-10-10T14:54:09.416+0200","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":807},"message":"Fleet Server - Starting","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2023-10-10T14:54:13.418+0200","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":807},"message":"Fleet Server - Waiting on fleet-server input to be added to policy: fleet-server-policy","ecs.version":"1.6.0"}
Error: fleet-server failed: context canceled
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.10/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/8.10/fleet-troubleshooting.html