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

support for Fedora based systems? #92

Open
stavrospassbase opened this issue Aug 20, 2021 · 1 comment
Open

support for Fedora based systems? #92

stavrospassbase opened this issue Aug 20, 2021 · 1 comment

Comments

@stavrospassbase
Copy link

stavrospassbase commented Aug 20, 2021

Hi Team,

we are leveraging Fedora Core OS and want to
gather systemd logs.

For some reason the plugin is not gathering logs. It is being added
without issues though.

Same setup on Ubuntu based system and logs are gathered.


`<source>
   @type systemd
    tag log.sre.systemd
    path /var/log/journal 
    read_from_head true
  <storage>
    @type local
    path /var/tmp/fluentd/tail_position/systemd-cursor.json
  </storage>

  <entry>
    fields_strip_underscores true
    fields_lowercase true
  </entry> 
</source>
`

My first idea was that it was related to SELinux so I disabled it to test but still. Do you have any idea why
it won't work. Fedora Core OS support for the plugin would be amazing.

@b-a-t
Copy link

b-a-t commented Nov 3, 2023

That actually looks like a permission problem as stated in https://github.com/fluent-plugins-nursery/fluent-plugin-systemd#when-i-look-at-fluentd-logs-everything-looks-fine-but-no-journal-logs-are-read-

Journal files are, by default, owned and readable by the "systemd-journal" system group but are not writable. Adding a user to this group thus enables her/him to read the journal files.

I had the same on the initial deployment.

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

2 participants