Installing the Elastic Agent
  • 18 Apr 2022
  • Dark
    Light

Installing the Elastic Agent

  • Dark
    Light

Article Summary

Retrieve Install Command

  1. Login to Elastic using the article here.

  2. Click the three line icon in the upper left hand corner and then navigate to Fleet. fleet

  3. Click add agent

  4. Select the appropriate Agent Policy from the drop down image.png

  5. Select the appropriate client platform from the drop down image.png

  6. Click the copy button to copy the command.

Install Elastic Agent on Linux

  1. SSH to Linux Server
  2. Run the following commands to install the RPM
    1. Note: This commands are subject to change based on version. Check the getting started guide here to verify the current version. You should be able to change the version number in the command below install the agents.

curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-[version]-linux-x86_64.tar.gz
tar -xf elastic-agent-[version]-linux-x86_64.tar.gz
cd elastic-agent-[version]-linux-x86_64
Insert command you copied above here

  1. Once install is complete you should see the message below. If you do not there is likely a fw issue. image.png

Install Elastic Agent on Windows

  1. Login to WIndows Servers
  2. Run the following commands to install
    1. Note: This commands are subject to change based on version. Check the getting started guide here to verify the current version. You should be able to change the version number in the command below install the agents.

wget "https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-7.16.2-windows-x86_64.zip" -outfile "file"
expand-archive elastic-agent-7.16.2-windows-x86_64
Set-Location '.\elastic-agent-7.16.2-windows-x86_64\elastic-agent-7.16.2-windows-x86_64'
Insert command you copied above here

  1. Once install is complete you should see the message below. If you do not there is likely a fw issue. image.png

  2. If you are installing the agent on an unamanaged VM (self managed, by client and not expedient) You will need to contact the OSC to update the inbound firewall rule on the Elastic Edge Services gateway by adding the Public IP, or Range of IP's of the agents you wish to install. Additionally, these agents will need outboud internet access to the Elastic Edge Services Gateway on port 9243.


Was this article helpful?