[rsyslog] Auto-creating directories, when using templates and the property replacer.
Ryan Lynch
ryan.b.lynch at gmail.com
Sat Nov 28 05:45:42 CET 2009
I recently migrated a few Fedora and CentOS hosts from Rsyslog 4.x to
5.x. Several of my systems use output file path templates like this,
with multiple dynamically-named directory components:
`template DefaultOutputPath,"/var/log/rsyslog/%hostname:::secpath-replace%/%syslogfacility-text:::secpath-replace%/%programname:::secpath-replace%/%$year%/%$month%/%$day%/%$hour%/%$minute%/_.log"`
Under 4.x, Rsyslog will automatically create any directories that
don't already exist, as needed. But under 5.x, it just fails silently
if any of the directories in the path don't exist.
Is there a configuration setting that governs this in 5.x, or some way
to get back the old automatic directory creation behavior?
-Ryan
Ryan B. Lynch
ryan.b.lynch at gmail.com
More information about the rsyslog
mailing list