[user@fleet-server-1 ~]$ curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-8.13.2-linux-x86_64.tar.gz tar xzvf elastic-agent-8.13.2-linux-x86_64.tar.gz cd elastic-agent-8.13.2-linux-x86_64 sudo ./elastic-agent install \ --fleet-server-es=https://192.168.1.147:9200 \ --fleet-server-service-token={service_token} \ --fleet-server-policy=fleet-server-policy \ --fleet-server-es-ca-trusted-fingerprint={es_ca_fingerprint} \ --fleet-server-port=8220 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 564M 100 564M 0 0 46.2M 0 0:00:12 0:00:12 --:--:-- 47.0M elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/elastic-agent elastic-agent-8.13.2-linux-x86_64/NOTICE.txt elastic-agent-8.13.2-linux-x86_64/otel.yml elastic-agent-8.13.2-linux-x86_64/elastic-agent.yml elastic-agent-8.13.2-linux-x86_64/LICENSE.txt elastic-agent-8.13.2-linux-x86_64/README.md elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/package.version elastic-agent-8.13.2-linux-x86_64/elastic-agent.reference.yml elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/ elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/.build_hash.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/LICENSE.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/NOTICE.pf-elastic-collector.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/NOTICE.pf-elastic-symbolizer.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/NOTICE.pf-host-agent.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/NOTICE.txt elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/README.md elastic-agent-8.13.2-linux-x86_64/data/elastic-agent-6d53d8/components/apm-server ...(중략)... Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Please write 'y' or 'n' Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Please write 'y' or 'n' Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Please write 'y' or 'n' Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]: y Please write 'y' or 'n' Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:y [ ] Service Started [0s] Elastic Agent successfully installed, starting enrollment. [=== ] Waiting For Enroll... [2s] {"log.level":"info","@timestamp":"2024-04-29T00:55:02.702+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":436},"message":"Generating self-signed certificate for Fleet Server","ecs.version":"1.6.0"} [====] Waiting For Enroll... [3s] {"log.level":"info","@timestamp":"2024-04-29T00:55:03.404+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":482},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"} [ =] Waiting For Enroll... [5s] {"log.level":"info","@timestamp":"2024-04-29T00:55:05.410+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":812},"message":"Waiting for Elastic Agent to start","ecs.version":"1.6.0"} [ =] Waiting For Enroll... [9s] {"log.level":"info","@timestamp":"2024-04-29T00:55:09.414+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":843},"message":"Fleet Server - Running on policy with Fleet Server integration: fleet-server-policy; missing config fleet.agent.id (expected during bootstrap process)","ecs.version":"1.6.0"} [ ] Waiting For Enroll... [10s] {"log.level":"info","@timestamp":"2024-04-29T00:55:10.147+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":519},"message":"Starting enrollment to URL: https://fleet-server-1:8220/","ecs.version":"1.6.0"} [ ==] Waiting For Enroll... [11s] {"log.level":"info","@timestamp":"2024-04-29T00:55:11.160+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":482},"message":"Restarting agent daemon, attempt 0","ecs.version":"1.6.0"} {"log.level":"info","@timestamp":"2024-04-29T00:55:11.163+0900","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":300},"message":"Successfully triggered restart on running Elastic Agent.","ecs.version":"1.6.0"} Successfully enrolled the Elastic Agent. [ ==] Done [11s] Elastic Agent has been successfully installed.
설치 후 Fleet Server Connected 뜸