Which file I need to config "path.home: /usr/share/beat path.config: /etc/beat path.data: /var/lib/beat path.logs: /var/log/"


(Deepak Ts) #1

In which file i need to config

path.home: /usr/share/beat
path.config: /etc/beat
path.data: /var/lib/beat
path.logs: /var/log/

and what are the prerequisites config before I start these config


(Tudor Golubenco) #2

Did you install Filebeat from DEB or RPM? If yes, there's a script in /usr/bin/filebeat that sets these variables to their correct values. Here is its content:

#!/usr/bin/env bash

# Script to run filebeat in foreground with the same path settings that
# the init script / systemd unit file would do.

exec /usr/share/filebeat/bin/filebeat \
  -path.home /usr/share/filebeat \
  -path.config /etc/filebeat \
  -path.data /var/lib/filebeat \
  -path.logs /var/log/filebeat \
  "$@"

So if you are running for packages, everything should be already setup. If you are not, you could make a similar script.


(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.