Save rsyslog data -
Bob Goodwin - Zuni, Virginia, USA
bobgoodwin at wildblue.net
Mon Aug 20 15:29:10 UTC 2012
On 20/08/12 10:54, Ed Greshko responds:
> On 08/20/2012 10:44 PM, Bob Goodwin - Zuni, Virginia, USA wrote:
>> I've tried several forms:
>>
>> /etc/rsyslog.d/emptyfile.conf
>>
>> :source, isequal, 192.168.1.9 /var/log/tomato.log
>> :source, isequal, 192.168.1.9 ~
>>
>> But can't find the right one.
> I believe you need either single or double quotes around the 'value'....
>
> :source, isequal, "192.168.1.9" /var/log/tomato.log
>
It doesn't seem to accept double quotes, single still yields an
error message.
[bobg at box9 ~]$ cat /var/log/tomato.log
Aug 20 11:02:27 box9 rsyslogd: the last error occured in
/etc/rsyslog.d/emptyfile.conf, line 3:":source, isequal,
'192.168.1.9' /var/log/tomato.log"
--
http://www.qrz.com/db/W2BOD
box9
More information about the users
mailing list