Graylog2 / collector-sidecar

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

Graylog Sidecar does not work with redirect #473

Closed chris-y closed 1 year ago

chris-y commented 1 year ago

Problem description

Our Graylog Cloud service has been redirected, and now no devices are communicating.

The following appears in the log of one of our Linux servers every minute or so:

Jul 11 13:47:28 monitoring graylog-sidecar[1291026]: time="2023-07-11T13:47:28+01:00" level=error msg="Error fetching server version invalid character '<' looking for beginning of value"
Jul 11 13:47:28 monitoring graylog-sidecar[1291026]: time="2023-07-11T13:47:28+01:00" level=error msg="[UpdateRegistration] Bad response from Graylog server: 200 OK"

I'm not sure if it is the sidecar or the way the redirect has been done which is causing the problem.

Environment

mpfz0r commented 1 year ago

Our Graylog Cloud service has been redirected

what kind of redirect? the sidecar http client should follow up to 10 consecutive HTTP redirects automatically.

chris-y commented 1 year ago

Looks like a 302. Curl is giving this error though:

chris-y commented 1 year ago

This has been fixed on the cloud side, so nothing to do here!