Graylog2 / collector-sidecar

Manage log collectors through Graylog
https://www.graylog.org/
Other
268 stars 56 forks source link

Filebeat installation error with graylog-sidecar in Ubuntu machine #348

Closed LuisFFFerreira closed 5 years ago

LuisFFFerreira commented 5 years ago

Problem description

We have installed collector-sidecar version 1.0.0 to get the logs from an ubuntu machine 18.04 and graylog server 3.0. The issue that I am facing is when we upload the filebeat configuration its returned a failing error that the ubuntu machine cannot start validation command: fork/exec /usr/share/filebeat/bin/filebeat: no such file or directory.

After some troubleshooting we discovered that filebeat is not being installed with graylog-sidecar, to test this we installed "filebeat-6.6.1-amd64.deb" package and the error disapears and everything goes back to normal.

Steps to reproduce the problem

  1. Graylog-Sidecar installation as usual; img1

  2. Only configured server_url and server_api_token on sidecar.yml file; img2

  3. Graylog-sidecar appears to be running ok; img3

  4. Client machine appears as "running" on graylog web interface; img4

  5. Configured filebeat as default with changes only of host IP; img5

  6. Configuration was added to client machine and failed; img6

  7. Graylog-sidecar on client machine with error (yellow lines); img7

  8. We can see the same error on graylog logs; img8

  9. We can see that filebeat is not installed with graylog-sidecar, the only file with "filebeat" as name is filebeat.conf in /var/lib/graylog-sidecar/generated; img9

  10. We can see that filebeat.conf is uploaded to the client with no problems. img10

Environment

mpfz0r commented 5 years ago

First of all, thank you for your detailed bug report :+1:

In your screenshot at step 7 you can see that the sidecar fails to find the filebeat binary.

Please see: http://docs.graylog.org/en/3.0/pages/sidecar.html#install-new-sidecar

Note: In case you were using filebeat on Linux, please make sure to also install the official collector package, since the filebeat binary is not part of the Sidecar package anymore.

And http://docs.graylog.org/en/3.0/pages/sidecar.html#beats-on-linux in addition

LuisFFFerreira commented 5 years ago

Thank you for your fast response.

In fact, as i mentioned on the description of the problem, installing filebeat ("filebeat-6.6.1-amd64.deb") downloaded from the official website has made the problem disapear. Now i understand why.

Best regards. Keep the great work.