Search code examples
loggingunix-timestampsyslog-ng

using regex with syslog-ng input file


i use syslog-ng for logging Application Logs to remote Destinations.

I have application logs in the following pattern: javaservice.2017-05-11.log and i want to use a regex at the Source definition like:

file("/var/log/javaservice/javaservice.*.log"

Is this possible?


Solution

  • This will be possible in the upcoming 3.10 version of the syslog-ng Open Source Edition (the commercial version already has this feature). You can find developer RPM builds of syslog-ng here, and test this feature. See the docs for using wildcards in syslog-ng file sources.