Back to Beats

Start Filebeat [filebeat-starting]

docs/reference/filebeat/filebeat-starting.md

9.4.02.4 KB
Original Source

Start Filebeat [filebeat-starting]

Before starting Filebeat:

To start Filebeat, run:

:::::::{tab-set}

::::::{tab-item} DEB

sh
sudo service filebeat start

::::{note} If you use an init.d script to start Filebeat, you can’t specify command line flags (see Command reference). To specify flags, start Filebeat in the foreground. ::::

Also see Filebeat and systemd. ::::::

::::::{tab-item} RPM

sh
sudo service filebeat start

::::{note} If you use an init.d script to start Filebeat, you can’t specify command line flags (see Command reference). To specify flags, start Filebeat in the foreground. ::::

Also see Filebeat and systemd. ::::::

::::::{tab-item} MacOS

sh
sudo chown root filebeat.yml <1>
sudo chown root modules.d/{modulename}.yml <1>
sudo ./filebeat -e
  1. You’ll be running Filebeat as root, so you need to change ownership of the configuration file and any configurations enabled in the modules.d directory, or run Filebeat with --strict.perms=false specified. See Config File Ownership and Permissions. ::::::

::::::{tab-item} Linux

sh
sudo chown root filebeat.yml <1>
sudo chown root modules.d/{modulename}.yml <1>
sudo ./filebeat -e
  1. You’ll be running Filebeat as root, so you need to change ownership of the configuration file and any configurations enabled in the modules.d directory, or run Filebeat with --strict.perms=false specified. See Config File Ownership and Permissions. ::::::

::::::{tab-item} Windows

sh
PS C:\Program Files\filebeat> Start-Service filebeat

By default Windows log files are stored in C:\Program Files\Filebeat-Data\logs.

:::{note} In versions before 9.0.6, the default location for Windows log files was C:\ProgramData\filebeat\logs. ::: ::::::

:::::::