Hi folks,
i´m trying to run Filebeat as a non root user on RHEL 7.5. What have i done:
chown for /etc/filebeat , /var/log/filebeat ,/usr/share/filebeat and /var/lib/filebeat.
The user is now owner of this directorys...
If i start filebeat with
/usr/share/filebeat/bin/filebeat -c /etc/filebeat/filebeat.yml -path.home /usr/share/filebeat -
path.config /etc/filebeat -path.data /var/lib/filebeat -path.logs /var/log/filebeat
everything works fine.
But if i try to start it via /etc/init.d/filebeat or systemctl -> i get the prompt to enter the root password.
I also changed the user in the /etc/init.d/filebeat :
beat_user="${BEAT_USER:-newuser}"
This changed anything. Are there any ideas, how to fix this?
greetz