On Thu, 14 Aug 2014, Edmonds, Alan wrote:

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


or with the v7 action() format
action(type="omfile" dynaFile="HostFileTemplate" format="HostFileFormat")

David Lang
_______________________________________________
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