Hello all.
I've read the documentation on property-based filters ( http://www.rsyslog.com/doc-rsyslog_conf_filter.html), and are trying to use this feature combined with file name templating ( http://www.rsyslog.com/Article60.phtml). What I'd like to do is to apply templates to groups of hosts based on their hostname. For example, I'd like to apply template "t1" to hosts such as "test01" and "test02", and template "t2" to hosts "prod01" and "prod02". In other words, different templates should be used based on parts of the file name. To accomplish this I tried this approach: *$template DynaFileTest,"/var/log/syslog/test/system-%HOSTNAME%.log" $template DynaFileProd,"/var/log/syslog/prod/system-%HOSTNAME%.log" * *:HOSTNAME, contains, "test" *.* -?DynaFileTest * *:HOSTNAME, contains, "prod" *.* -?DynaFileProd * This didn't work, so I must have got it wrong. Can anyone point out what I'm doing wrong? Or maybe there are better ways of doing this? Greets, Kenneth _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

