Collector Sidecar cannot install service Windows


(Alexander Greenwalt) #1

Hello all,

I am in the process of setting up my first graylog installation. I have a lot of windows machines I need to monitor the logs for. I am trying to install the graylog sidecar service but every time I try and run the -service install command I get the following:

Any help is greatly appreciated,


(Marco Pfatschbacher) #2

Hi,

quoted commands are treated as string literals.
You need to use the call operator (https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx#The_Call_Operator_amp)

Try:
& "C:\Program Files\graylog\collector-sidecar\Graylog-collector-sidecar.exe" -service install


(Alexander Greenwalt) #3

Thanks so much, that worked great.


(system) #4

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