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

Unable to read and output journal files from default path var/log/journal #107

Open
SuyashTandon opened this issue Aug 29, 2023 · 1 comment

Comments

@SuyashTandon
Copy link

SuyashTandon commented Aug 29, 2023

Hi Team,

I'm using this plugin using default directory (i.e. var/log/journal)

<source>
  @type systemd
  tag kubelet
  path /var/log/journal/*.journal
  read_from_head true
 

  <storage>
    @type local
    path /var/log/fluentd-journald-kubelet-cursor.json
  </storage>

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

I am trying to output these logs to check whether its working or not by using:

<match kubelet**>
  @type stdout
</match>

Expected result is Logs should be present with matching "kubelet" tag, but I am not able to get any logs.
There are '.journal' files in my var/log/journal directory.

Thanks

@errm
Copy link
Collaborator

errm commented Oct 16, 2023

I think the issue could be providing a glob for .journal files rather than a directory name.

Could you try with path /var/log/journal

If this is the case perhaps we can add an error message in the case that the configured path is not a directory ...

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