Sidecar 1.0.0 issues

I’m having two specific issues with 1.0 that weren’t there in 0.8.1.

  1. First problem is that when installing Sidecar on a Windows 7 machine, there isn’t a service that gets created like in 0.8.1. I successfully created a sidecar/configuration in Graylog 3.0 but the only time the status turns to running is when I manually run C:\program files\graylog\sidecar\graylog-sidecar.exe
  2. when installing graylog side car, in .8.1 a node-id file (was collector-id) gets created automatically from the UUID of the machine. I handled this manually using a batch file for install. Just would like clarification on why change this when it made the install process so easy on windows

I need a resolution to #1 as soon as possible please. I tried to “sc create” using graylog-sidecar.exe but that fails no matter how i spin it. Here is the syntax “sc create graylogscservice binpath=“C:\Program Files\Graylog\sidecar\graylog-sidecar.exe” start=auto”.

I got the syntax wrong but still, why isn’t this just done from the deployment

No need to use sc create. The Sidecar should come with an option to install itself:

C:\Program Files\Graylog\sidecar\graylog-sidecar.exe -service install

At one point I wrote a small Powershell script to automate the installation of the Sidecar on our Windows boxen.

$Repository="\\FILESERVER\Installers\Graylog\Graylog Sidecar 0.1.6"
$InstallPath = "C:\Program Files\graylog\collector-sidecar"

copy "${Repository}\collector_sidecar_installer_0.1.6-1.exe" ${DownloadDir}

copy \\PKISERVER\CAchain.pem ${DownloadDir}

copy ${DownloadDir}\CAchain.pem C:\Windows\System32

$Hostname = (hostname)

Start-Process -FilePath "${DownloadDir}\collector_sidecar_installer_0.1.6-1.exe" -ArgumentList "/S -SERVERURL=https://GRAYLOGSERVER:9000/api -TAGS=`"windows`" -NODEID=`"collector-sidecar-${Hostname}`""
sleep 15
Start-Process -FilePath "${InstallPath}\Graylog-collector-sidecar.exe" -ArgumentList "-service install"
sleep 5
Start-Process -FilePath "${InstallPath}\Graylog-collector-sidecar.exe" -ArgumentList "-service stop"
sleep 5
Start-Process -FilePath "${InstallPath}\Graylog-collector-sidecar.exe" -ArgumentList "-service start"

The CAchain.pem file is the CA certificate chain, which is used by my BEATS outputs, which do certificate validation. The path C:\Windows\System32\CAchain.pemis used in the definition of the BEATS output.

Awesome, thank you for your reply!

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