Filebeat install script for windows is broken

I tried to use the powershell install script, but it created a service that would not start.

Then i looked at the script and the service and found extra slash erroneously put in there

install-service-filebeat.ps1:
....
# create new service
New-Service -name filebeat -displayName filebeat
-binaryPathName ""$workdir\\filebeat.exe" -c "$workdir\\filebeat.yml" -path.home "$workdir" -path.data "C:\\ProgramData\\filebeat" -path.logs "C:\\ProgramData\\filebeat\logs""

And the service:
Capture

Is filebeat service failing to start for you?

I can confirm the double-slashes are there but this isn't causing any problems and the service starts and stops as expected. Double-slashes for a directory are hardly a problem.

I was wrong it was a syntax error, still dont know how to delete posts :frowning:

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