Skip to content

Latest commit

 

History

History
85 lines (52 loc) · 2.12 KB

install-elastic-agent.asciidoc

File metadata and controls

85 lines (52 loc) · 2.12 KB

Install {agent}

experimental[]

Download and install the Agent on each system you want to monitor.

To download and install {elastic-agent}, use the commands that work with your system:

mac:

curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{version}-darwin-x86_64.tar.gz
tar xzvf elastic-agent-{version}-darwin-x86_64.tar.gz

linux:

curl -L -O https://artifacts.elastic.co/downloads/beats/elastic-agent/elastic-agent-{version}-linux-x86_64.tar.gz
tar xzvf elastic-agent-{version}-linux-x86_64.tar.gz

win:

  1. Download the {agent} Windows zip file from the downloads page.

  2. Extract the contents of the zip file into C:\Program Files.

  3. Rename the elastic-agent-<version>-windows directory to Elastic-Agent.

  4. Open a PowerShell prompt as an Administrator (right-click the PowerShell icon and select Run As Administrator).

  5. From the PowerShell prompt, run the following commands to install Filebeat as a Windows service:

    PS > cd 'C:\Program Files\Elastic-Agent'
    PS C:\Program Files\Elastic-Agent> .\install-service-elastic-agent.ps1
Note
If script execution is disabled on your system, you need to set the execution policy for the current session to allow the script to run. For example: PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-service-elastic-agent.ps1.