Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Log error when systemd logs are unable to be read due to permissions #9352

Open
lizziemac opened this issue Sep 4, 2024 · 0 comments

Comments

@lizziemac
Copy link

lizziemac commented Sep 4, 2024

Is your feature request related to a problem? Please describe.

I recently encountered an issue where fluent-bit was unable to access or read systemd logs due to permission or ownership issues, and there was no error or warning logged when trailing the fluent-bit logs. We spent a few days trying to understand if this was a server side issue, or a device side issue, tried changing the config, etc, before we realized it was a simple permissions problem related to grouping.

This happened months after the successful integration of fluent-bit, because we had removed a user from the system, causing the user/group IDs to be misaligned in our shared log partition (and systemd-resolve took ownership over from systemd-journal)

Describe the solution you'd like

I would like fluent-bit to log a clear error or warning when it encounters permission or ownership issues preventing access to systemd logs. This error should explicitly mention that log access was denied due to permissions and provide suggestions for correcting the issue, such as checking permissions or user configuration.

Describe alternatives you've considered

  • Erroring out of fluent-bit completely. I wouldn't recommend because that would break other log source streams.

Additional context

This was on version 2.2.2, and fluent-bit was running as a service with its own user that had access to systemd-journal

@lizziemac lizziemac changed the title Log error when systemd logs are unable to be read due to permissions Feature Request: Log error when systemd logs are unable to be read due to permissions Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant