Add the line "& ~" after. & continues the action and ~ discards the event
if $programname == 'applogTest' then /var/log/applogtest.log & ~ On Tue, Mar 29, 2011 at 5:20 PM, lanas <[email protected]> wrote: > Hello, > > What I would like to do is to have a special log file for one > application. I would like to have all logging from that app go to that > file and nowhere else. So I do: > > if $programname == 'applogTest' then /var/log/applogtest.log > > This works, but messages are also sent to the main system log file. > How can log messages be *only* sent to this applogtest.log file ? > > Thanks ! > > _______________________________________________ > rsyslog mailing list > http://lists.adiscon.net/mailman/listinfo/rsyslog > http://www.rsyslog.com > _______________________________________________ rsyslog mailing list http://lists.adiscon.net/mailman/listinfo/rsyslog http://www.rsyslog.com

