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

Unable to read journal files from subdirectories under default path var/log/journal #98

Open Ahuja2023 opened 1 year ago

Ahuja2023 commented 1 year ago

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