Step 4: Start Journalbeat

edit

Start Journalbeat 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 Journalbeat.

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

deb and rpm:

sudo service journalbeat start

linux:

sudo chown root journalbeat.yml 
sudo ./journalbeat -e

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

Journalbeat is now ready to send journal events to the defined output.