[rsyslog-notify] Forum Thread: Re: Rsyslog 5.8.10 Dynamic Filename Regex Capabilities - (Mode 'reply')
noreply at adiscon.com
noreply at adiscon.com
Tue Jan 28 22:14:02 CET 2014
User: rjar
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24142#p24142
Message:
----------
I realize that I can create a dynamic file using templates. But is it
possible to use a substring within the message itself using regex to split
the file as I described in the example? The example they specify in the
documentation is the following:
$template DynFile,"/var/log/%HOSTNAME%/%programname%.log"
Rather than splitting by %HOSTNAME% or %PROGRAMNAME% (which are rsyslog
properties) I want to use a part of the msg that is determined by a regex.
More information about the rsyslog-notify
mailing list