logstash/docs/static/tab-widgets/install-agent.asciidoc

25 lines
No EOL
1.1 KiB
Text

// tag::fleet-managed[]
. When the **Add Agent flyout** appears, stay on the **Enroll in fleet** tab.
. Skip the **Select enrollment token** step. The enrollment token you need is
already selected.
+
NOTE: The enrollment token is specific to the {agent} policy that you just
created. When you run the command to enroll the agent in {fleet}, you will pass
in the enrollment token.
. Download, install, and enroll the {agent} on your host by selecting
your host operating system and following the **Install {agent} on your host**
step.
It takes about a minute for {agent} to enroll in {fleet}, download the
configuration specified in the policy you just created, and start collecting
data.
// end::fleet-managed[]
// tag::standalone[]
. When the **Add Agent flyout** appears, navigate to the **Run standalone** tab.
. Configure the agent. Follow the instructions in **Install Elastic Agent on your host**.
. After unpacking the binary, replace the `elastic-agent.yml` file with that supplied in the Add Agent flyout on the "Run standalone" tab, replacing the values of `ES_USERNAME` and `ES_PASSWORD` appropriately.
. Run `sudo ./elastic-agent install`
// end::standalone[]