-
Notifications
You must be signed in to change notification settings - Fork 5
Appendix
In order to install Metricbeat on Windows, refer to the following steps:
-
Before installing Metricbeat, please check whether your system is 32 bit or 64 bit which can be done using the following command in command prompt:
wmic os get osarchitectureIt will give an output as 64-bit or 32-bit.
-
Download Metricbeat 5.1.1 version from Elastic site using the following link:
For 64-bit system-
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.1.1-windows-x86_64.zip
For 32-bit system-
https://artifacts.elastic.co/downloads/beats/metricbeat/metricbeat-5.1.1-windows-x86.zip
Upon opening the link click it will download the zip package.
-
Extract the downloaded zip package by either unzipping it using 7zip, WinRar etc. (If you don't have any, download and install one).
It will extract the files and folder in the directory.
-
Open Windows Power shell as an administrator (install if not present).
-
Navigate to the directory where metricbeat is extracted and stored (eg: C:\Users\username\Desktop) and run the following command in Windows Power shell:
.\install-service-metricbeat.ps1Note: 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-metricbeat.ps1.
It will install Metricbeat as a windows service.
#Installation of Packetbeat on Windows
In order to install Packetbeat on Windows, refer to the following steps:
-
Before installing Packetbeat, please check whether your system is 32 bit or 64 bit which can be done using the following command in command prompt:
wmic os get osarchitectureIt will give an output as 64-bit or 32-bit.
-
Download Packetbeat 5.1.1 version from Elastic site using the following link:
For 64-bit system-
https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.1.1-windows-x86_64.zip
For 32-bit system-
https://artifacts.elastic.co/downloads/beats/packetbeat/packetbeat-5.1.1-windows-x86.zip
Upon opening the link click it will download the zip package.
-
Extract the downloaded zip package by either unzipping it using 7zip, WinRar etc. (If you don't have any, download and install one).
It will extract the files and folder in the directory.
-
Open Windows Power shell as an administrator (install if not present).
-
Navigate to the directory where Packetbeat is extracted and stored (eg: C:\Users\username\Desktop) and run the following command in Windows Power shell:
.\install-service-packetbeat.ps1Note: 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-packetbeat.ps1.
It will install Packetbeat as a windows service.
#Installation of Elasticbeat on Windows
In order to install Elasticbeat on Windows, refer to the following steps:
-
Download Go from official Go language site using the following link:
https://storage.googleapis.com/golang/go1.6.2.windows-amd64.msi
Upon opening the link click it will download the MSI distributable package.
-
Extract the downloaded zip package by either unzipping it using WinRar, 7Zip etc.( If you don't have download it.).
It will extract the files and folder in the directory. For simplicity extract them at C:\Go.
-
Now for running Go in windows, you need to set the path of Go in environment variable settings of Windows.
Firstly open properties of My Computer. Select Advanced system settings and then click on Advanced tab wherein you will click environment variables options.
Then double click Path variable (under System variables) and move towards the end of text box insert a semi colon if not inserted and add the location of bin folder of Go such as: C:\Go\bin. Then click on ok to all the windows opened.
Note: Do not delete anything within the path variable textbox.
-
To validate whether Go is successfully installed type the following command in command prompt:
go versionIt will print the version of Go language as: go version go1.6.2 windows/amd64
-
Create another system variable named GOPATH referencing the workspace of GO. For example our workspace is present inside C:\Go
After opening Environment variables click on New (under System variables) and give variable name as GOPATH and variable value as C:\Go.
-
Navigate to the workspace and create a directory named src/github.com/radoondas
-
Navigate to the directory and clone the elasticbeat repository or download the elasticbeat repository in the created directory and extract it.
-
Build elasticbeat by opening command prompt in the navigated directory ($GOPATH/src/github.com/radoondas/elasticbeat) by pressing Shift button and right click in the folder to select an option of Open Command Window Here. Use following command in the command prompt:-
go buildIf you are facing errors after running make command, make sure that GO installed is greater than version 1.5.
It will create a executable file named elasticbeat.exe.
-
Run elasticbeat. by using following command in the command prompt:-
elasticbeat.exe -e -v -d elasticbeat -c elasticbeat.yml
This will run elasticbeat successfully and will start gathering information related to the Elasticsearch nodes and indices them in Elasticsearch as per it’s configuration file.
#Loading Beats Dashboard in Windows
To load the Beats dashboard in Windows, use the following commands:
cd /usr/share/{beat-name}
where for Metricbeat full path will be - /usr/share/metricbeat
-
Run the following command to download and load the sample beats dashboard:
./scripts/import_dashboardsThe preceding command will load the Beats dashboard in Kibana.
Before running import dashboard scripts, ensure that Elasticsearch is running.
By default, the import dashboard script assumes that Elasticsearch is running on the default host and port, which is {localhost:9200}. If you are running Elasticsearch on a different configuration, you can use the -es option to load it, as shown here:
./scripts/import_dashboards -es http://192.168.1.12:9200Other configuration parameters can also be used. To view them, visit - https://www.elastic.co/guide/en/beats/libbeat/5.1/import-dashboards.html
#Loading Elasticbeat Dashboard in Windows
To load Elasticbeat dashboard in Windows follow the below mentioned commands:-
-
Download Elasticbeat dashboard from GitHub site using the following link:
https://github.com/elastic/beats-dashboards/blob/master/load.sh
Upon opening the link click it will open the load.sh file.
-
Download the load.sh file or copy the content of the file and save the file in location
$GOPATH/src/github.com/radoondas/elasticbeat/kibana. -
Click on load.sh file to load the dashboard into Kibana.
It will load Elasticbeat dashboard in Kibana.
By default, the load script assumes that elasticsearch is running on default host and port {localhost:9200}. If you are running elasticsearch on different configuration you can use the –url option to load (using Windows Power Shell as administrator) such as:-
.\load.ps1 –url http://192.168.1.12:9200