I am trying to start beat services (filebeat, metricbeat, heartbeat, winlogbeat, auditbeat) using a GPO but I don't know why,it's not working.
In Group Policy Management, under "Computer Configuration" I did the following:
Preferences -> Control Panel Settings -> Services
I create one service rule for each Beat. The service name is exactly the same as configured in the other machines (auditbeat, filebeat, heartbeat, metricbeat, winlogbeat). I check it twice.
At "service action", I defined as "start service".
At "Startup", I defined as "automatic"
At "log on as:" I let "No change", but I tried using "Local system account" too, and didn't work.
Yes, I saw this procedure. The problem is that I don't control too much Powershell.
To create this script, Do I need to copy the entire code to a unique powershell script or need to be 2 scripts (one for "delete service" and the other to "create the service")?
I tried a different thing and works for me. At the service rule configuration, I configure to "Restart the Service" in a case of failure and now it's work.
It was configured before as "No Change", but with this configuration now apparently it's working (I've tested with some few machines in my environment).
The script didn't work for me, probably because I don't know too much about scripting with Powershell.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.