On Wed, May 4, 2016 at 9:12 PM, opensource.cbc <[email protected]>
wrote:

>      I have run rsyslog in debug mode and the output   is wrong。All of
>  mask is X。    And I think there is a bug  in the  code。At conf.c line
> 394, it doesn't call decodeSyslogName.
>

Yes, it appears that it does not call decodeSyslogName() because it will be
called at either line 400 or 403.

So have you verified using a tool like "logger" that logging with info
priority fails to land in /var/log/test3?  E.g. "logger -p user.debug
message" lands only in /var/log/test3, and "logger -p user.info message2"
lands in /var/log/test1 and /var/log/test2, and "logger -p user.notice
message3" lands in /var/log/test1?  (I think I have that right.)

-peter

------------------------------------------------------------------发件人:Rainer
> Gerhards <[email protected]>发送时间:2016年5月3日(星期二)
> 15:41收件人:opensource.cbc <[email protected]>; rsyslog-users <
> [email protected]>主 题:Re: [rsyslog] how to config for Logging
> anything except specific level?
> 2016-04-29 14:37 GMT+02:00 opensource.cbc <[email protected]>:
> > Hi,     user. info     /var/log/test1
> >     user.=info    /var/log/test2
>
> >     user.!info    /var/log/test3     I have used these configurations, but 
> > the third configuration does not work。I want to log anything of user 
> > log,except info,Did I  do something wrong?
> > tks!
>
> I suggest to run rsyslog in debug mode and check what is output.
>
> Rainer
> _______________________________________________
> 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