Hi,  I am using rsyslog-5.8.10 on linux.

I want to define some output logs that look something like this:

$basename-$date.log

Where $basename comes from the syslog TAG value and $date is composed with
the $now/$hour/$minute properties on the syslog message. Thus, under some
prefix like /var/log/app, different components can log to syslog to their
own log files just by providing the tag for their component name.

I am unclear as to how to get my output filename to be dynamic. I'm pretty
clear on how to use the tag to filter things to existing places with
constant names, but when I try to see how to use tag to compose an output
file rather than hard coding the path to a constant file, I find myself a
bit stuck.

Thanks in advance for any tips.

-- 
J.
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to