Unzip the downloaded file and navigate to the extracted location, as follows:
E:>cd E:metricbeat-7.0.0-windows-x86_64
To install Metricbeat as a service on Windows, perform the following steps:
- Open Windows PowerShell as an administrator and navigate to the extracted location.
- Run the following commands to install Metricbeat as a Windows service from the PowerShell prompt as follows:
PS >cd E:metricbeat-7.0.0-windows-x86_64
PS >E:metricbeat-7.0.0-windows-x86_64>.install-service-metricbeat.ps1
You need to set the execution policy for the current session to allow the script to run if script execution is disabled. For example, PowerShell.exe -ExecutionPolicy UnRestricted -File .install-service-metricbeat.ps1.