Hi Lak,

sorry to say this, but this is actually something we have not yet
ported to new style configuration. So you need to continue to use the
old style until the equivalent of that feature is implemented.

I have created a feature request for it:
https://github.com/rsyslog/rsyslog/issues/2479

Rainer

2018-02-14 11:37 GMT+01:00 putcha narayana via rsyslog
<rsyslog@lists.adiscon.com>:
> Hi,
>
> I am working on existing rsyslog configuration files in my project to adapt 
> the old style usage to new one.
> I had referred to Module parameters for omfile but did not find any parameter 
> matching my intent.
>
> Current:
> $outchannel Authlog,/var/log/auth.log,1050175078,/usr/bin/rsyslog-logrotate 
> /var/log/auth.log
>
> if ($syslogfacility-text == 'auth' or $syslogfacility-text == 'authpriv' )
> then :omfile:$Authlog;FileFormat
>
> I would like to Update the above line as below:
> if ($syslogfacility-text == 'auth' or $syslogfacility-text == 'authpriv' )
> then
> {
>      action(type="omfile:$AuthLog" template="FileFormat")
>      stop
> }
>
> Request you to revert if the updated usage type="omfile:$AuthLog" is an 
> acceptable way to use. If not please recommend an alternate method.
>
>
> Lak
> _______________________________________________
> 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