The wildcard-file() source collects log messages from multiple plain-text files from multiple directories.The syslog-ng OSE application notices if a file is renamed or replaced with a new file.

StatusPermalink

Architecture Status
x86 Works
ARM Works

Important InformationPermalink

When syslog-ng OSE is restarted, it records the position of the last sent log message in the persist file, and continues to send messages from this position after the restart. The location of the persist file depends on the package you installed syslog-ng OSE from.

How to testPermalink

To test the wildcard_file source driver, we will use it to display the contents of multiple files that we create. Steps taken will be demonstrated in the proof images.

Configuration File UsedPermalink

config
@version: 3.31
@include "scl.conf"

source s_files {
    wildcard-file(
        base-dir("/Users/yash/Documents")
        filename-pattern("*.txt")
        recursive(no)
        follow-freq(1)
    );
};

destination console{
    file(/dev/stdout);
};

log {
    source(s_files);
    destination(console);
};

ProofPermalink

Testing wildcard_file() with macOS (x86)

Testing wildcard_file() with macOS (ARM)

Updated: