Skip to content

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

@Ahuja2023

Description

@Ahuja2023

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions