Step 5: Start Heartbeatedit

Start Heartbeat by issuing the appropriate command for your platform. If you are accessing a secured Elasticsearch cluster, make sure you’ve configured credentials as described in Step 2: Configure Heartbeat.

Note

If you use an init.d script to start Heartbeat on deb or rpm, you can’t specify command line flags (see Command reference). To specify flags, start Heartbeat in the foreground.

deb:

sudo service heartbeat-elastic start

rpm:

sudo service heartbeat-elastic start

mac:

sudo chown root heartbeat.yml 
sudo ./heartbeat -e -c heartbeat.yml -d "publish"

You’ll be running Heartbeat as root, so you need to change ownership of the configuration file, or run Heartbeat with --strict.perms=false specified. See Config File Ownership and Permissions in the Beats Platform Reference.

win:

PS C:\Program Files\Heartbeat> Start-Service heartbeat

By default, Windows log files are stored in C:\ProgramData\heartbeat\Logs.

Heartbeat is now ready to check the status of your services and send events to your defined output.