fluent-plugins-nursery / fluent-plugin-systemd

This is a fluentd input plugin. It reads logs from the systemd journal.
Apache License 2.0
153 stars 43 forks source link

Not able to ship logs even after adding td-agent user to systemd-journal group #86

Closed somasusr closed 3 years ago

somasusr commented 3 years ago

Hi @errm we are facing issue in shipping logs from systemd. We have followed all the instructions and added "td-agent" user to "systemd-journal" group. Ours is Centos box and we have installed td-agent version 3 (td-agent.x86_64 3.8.0-0.el7). Looks like permission issue and when we add "td-agent" user to "root" group it works. Do we really need to provide root access to td-agent service for this plugin to work? Can you please help us in this?

Regards, Sri Ramanathan

errm commented 3 years ago

What do the permissions on the files in /var/log/journal look like?

somasusr commented 3 years ago

@errm We figured this and it worked after we set permission to "td-agent" user for "/var/log/journal". Thank you for your response.