Step 4: Starting Metricbeat

edit

Run Metricbeat by issuing the following command:

deb:

sudo /etc/init.d/metricbeat start

rpm:

sudo /etc/init.d/metricbeat start

mac:

sudo ./metricbeat -e -c metricbeat.yml -d "publish"

win:

PS C:\Program Files\Metricbeat> Start-Service metricbeat

By default the log files are stored in C:\ProgramData\metricbeat\Logs.

On Windows, statistics about system load and swap usage are currently not captured.

Testing the Metricbeat Installation

edit

To verify that your server’s statistics are present in Elasticsearch, issue the following command:

curl -XGET 'http://localhost:9200/metricbeat-*/_search?pretty'

Make sure that you replace localhost:9200 with the address of your Elasticsearch instance.

On Windows, if you don’t have cURL installed, simply point your browser to the URL.