Something like this.  No doubt someone has something better.
...

$template 
HostFileTemplate,"/data/logs/portal/%$YEAR%/%$MONTH%/%$DAY%/%HOSTNAME%/host.log"

...

auth.info;authpriv.info;cron.info;daemon.info;kern.info;lpr.info;mail.info;mark.info;news.info;syslog.info;user.info;uucp.info;local0.emerg;local1.emerg;local2.emerg;local3.emerg;local4.emerg;local5.emerg;local6.emerg
               ?HostFileTemplate;HostFileFormat


Alan Edmonds

________________________________________
From: [email protected] [[email protected]] On 
Behalf Of Chris Bartram [[email protected]]
Sent: 14 August 2014 22:26
To: [email protected]
Subject: [rsyslog] Dynfile syntax in r7 stable

Trying to create a template to create a dynamic output file name; I need the 
path to include date (yyyy-mm-dd format) and %hostname%

Can someone provide an example?
Thanks
Chris Bartram

Sent from Yahoo Mail on Android

_______________________________________________
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.
_______________________________________________
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