Installing graylog-sidecar on Linux 2.X/RHEL 6

I’ve been having trouble installing graylog-sidecar on an old Linux machine: Kernel 2.6, RHEL 6

I’ve followed the steps in the documentaion

sudo rpm -Uvh https://packages.graylog2.org/repo/packages/graylog-sidecar-repository-1-5.noarch.rpm

sudo yum install graylog-sidecar

sudo graylog-sidecar -service install

Cool, no issues, every command succeeds and configuration file is generated.

However when I try to start the service using service graylog-sidecar start,
I get an unrecognized service error. Sure enough after listing all the services using service --status-all, there’s no graylog-sidecar service.

I am aware of the fact that the standard method of installing sidecar may not work since this is such an old OS, I’ve searched for quite some time and found no solution to this, that’s why I am making this post.
Before anyone suggests, upgrading the OS is out of the question (prod machine, with legacy software - everything would turn to shit and it’s not going to be updated in the near future)

Ok, I managed to do this by installing an older graylog-sidecar version from here:
https://packages.graylog2.org/el/sidecar-stable/1.0/x86_64

It’s graylog-sidecar 1.0.2. I am not sure wether this is the latest version you can run, check for yourself if you’d like.

The installation process is almost the same as in the docs
So:

sudo rpm -Uvh https://packages.graylog2.org/repo/el/sidecarstable/1.0/x86_64/graylog-sidecar-1.0.2-1.x86_64.rpm `
sudo yum install graylog-sidecar

Edit the config (same dir) /etc/yum/graylog/sidecar/sidecar.yml

If you don’t have systemctl

sudo graylog-sidecar -service install
sudo chkconfig graylog-sidecar on
sudo service graylog-sidecar start

If you have systemctl

sudo graylog-sidecar -service install
sudo systemctl enable graylog-sidecar
sudo systemctl start graylog-sidecar   

Here it is, hope someone will find this useful, cheers!

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