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 journal files from subdirectories under default path var/log/journal #98

Open
Ahuja2023 opened this issue Oct 27, 2022 · 0 comments

Comments

@Ahuja2023
Copy link

Ahuja2023 commented Oct 27, 2022

Hi Team,

I'm using this plugin using default directory (i.e. var/log/journal) with below config & able to receive messages using rabbitmq output plugin but problem starts when I try to read data from subdirectories.

@type systemd tag journal path /var/log/journal read_from_head true @type local path /var/log/fluentd-journald-cursor.json fields_strip_underscores true fields_lowercase true

Problem statement:
My unix box stores systemd journal files in subdirectory under default one ("dynamically-generated")
Eg1 today: var/log/journal/abc/system.journal
Eg2 tomorrow: var/log/journal/xyz/system.journal

I tried replacing path with below asterisk* without luck, please help.

var/log/journal/**
var/log/journal//
var/log/journal/*/.journal

Thanks in advance.
Sandeep

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