Hello,
I am trying to install elastic with default token which has shown as part of elastic APM installation. I have ran below query:
in elastic observability lab the elastic pswd: JcRZwmwBPduguAu
Command:
curl -L -O https ://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.8.2-linux-x86_64.tar.gz tar xzvf elastic-agent-8.8.2-linux-x86_64.tar.gz cd elastic-agent-8.8.2-linux-x86_64
sudo ./elastic-agent install --url=https ://fleet-server:8220 --enrollment-token=2f787217-fe89-406c-9770-3fa4dd5e5559 --certificate-authorities=/home/elastic/ca/ca.crt
Token:
2f787217-fe89-406c-9770-3fa4dd5e5559
When i run the complete command its working till cd elastic-agent-8.8.2-linux-x86_64 and showing prompt for crede for sudo ./elastic-agent install.
Here - fleet server was started on docker and command running in /home/elastic.
Please help to resolve or suggest other approach to install elastic APMagent ?