Graylog2 / collector-sidecar

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

Sidecar 1.4.0 with filebeat doesn’t change path.data & path.logs #475

Closed zyxep closed 1 year ago

zyxep commented 1 year ago

Problem description

On linux, the runtime doesn't change path.data & path.logs based on the config settings in the filebeat configuration. You need different path.data & path.logs directories for the runtime to work when using the tags system, but seems like path.data & path.logs are "hardcoded" some where and therefor doesn't get the directory listed in filebeat's config.

Steps to reproduce the problem

default config for filebeat: Screenshot 2023-08-01 at 2 12 20 PM

the systemd service starts filebeat with: /usr/share/filebeat/bin/filebeat --path.home /usr/share/filebeat --path.config /etc/filebeat --path.data /var/lib/filebeat --path.logs /var/log/filebeat -c /var/lib/graylog-sidecar/generated/648a0c4345c6352ac3bc9698/filebeat.conf

Environment

drewmiranda-gl commented 1 year ago

I believe this is related to https://github.com/Graylog2/graylog2-server/issues/14228 .

zyxep commented 1 year ago

ya, seems like there is a good chance for it.

bernd commented 1 year ago

Duplicate of https://github.com/Graylog2/graylog2-server/issues/14228.