Can you post the relevant part oft he debug log?
> -----Original Message----- > From: [email protected] [mailto:rsyslog- > [email protected]] On Behalf Of Brian Knox > Sent: Wednesday, May 02, 2012 3:44 PM > To: rsyslog-users > Subject: [rsyslog] omfile output with templates > > Last question of the day, hopefully. > > I'm playing around with v6 config format and I'm having trouble passing a > template to an omfile output action. Here's my sample config: > > $ModLoad immark # provides -MARK- message capability > $ModLoad imuxsock # provides support for local system logging (e.g. > via logger command) > $ModLoad imklog # kernel logging (formerly provided by rklogd) > > $template test, "%msg%\n" > > *.* /var/log/test.log;test > > if ($msg) then { > action(type="omfile" file="/var/log/with_template.log" > name="test_me" template="test") > action(type="omfile" file="/var/log/without_template.log" > name="test_me2") > } > > With this config, I get meswsages in test.log and without_template.log, but > nothing in with_template.log. I'm also getting this error message: > > 2012-05-02T09:41:50.719197-04:00 localhost rsyslogd-3003: Could not find > template '??' - action disabled > > I suspect I'm trying to pass the template value incorrectly? > > Brian > _______________________________________________ > 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 _______________________________________________ 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

