Metricbeat as unprivilleged user with init.d


In the past I always installed metricbeat and filebeat with centos 7+ which uses systemd. There I managed to run both beats as unprivileged user.

I am much familar with init.d, but I need to install the beats on centos 6.x which use init.d.
How can I modify the init scripts or the installation method to run metricbeat as service (automatically starts on boot) and as unprivilleged user?

Can you give a hint or solution?

Thanks, Andreas

found it.

The optional file /etc/sysconfig/metricbeat is sourced during the init process.
So do the following:

  • create file /etc/sysconfig/metricbeat with content:


Maybe it helps someone.

Regards, Andreas

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