[rsyslog-notify] Forum Thread: filters don't work - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Wed Oct 8 13:50:46 CEST 2014
User: ifr38
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24982#p24982
Message:
----------
hi all,
i’m a newbie with Rsyslog and i need help.
I receive on my server, some logs with $programme == ‘radiusN2′. I would
like to redirect logs who go in "/var/log/syslog" and with $programme =
‘radiusN2′ and concerning user, toward "/var/log/radiusN2/radiusN2.log"..
I tested this code :
[code:55z1b5tb]
if $programme == 'radiusN2' then {
user.* -/var/log/radiusN2/radiusN2.log
}
& ~
[/code:55z1b5tb]
but he didn’t work, his errors appears : Oct 8 11:23:17 dorad rsyslogd: the
last error occured in /etc/rsyslog.d/radiusN2.conf, line 1:"if $programme
== ‘radiusN2′ then {"
Oct 8 11:23:17 dorad rsyslogd: warning: selector line without actions will
be discarded
Oct 8 11:23:17 dorad rsyslogd-3000: unknown priority name "" [try <!-- m
--><a class="postlink"
href="http://www.rsyslog.com/e/3000">http://www.rsyslog.com/e/3000</a><!--
m --> ]
Oct 8 11:23:17 dorad rsyslogd: the last error occured in
/etc/rsyslog.d/radiusN2.conf, line 3:"}"
Thank in advance
More information about the rsyslog-notify
mailing list