[rsyslog] 5.1.3 problems with conditions in rsyslog.conf
Rainer Gerhards
rgerhards at hq.adiscon.com
Thu Jul 30 11:14:57 CEST 2009
David,
thanks for bringing this up.
Actually, there were two problems in the code: number one was the segfault
but number two was that no message was ever discarded. I have fixed both, but
the second fix might cause some regression. The testbench (now extended to do
a basic test of the discard functionality) runs through without problems, but
obviously it does not yet cover all potential cases [and it will take more
time until it really does...]. I will now leave for my vacation very shortly,
so I cannot do any more in-depth testing and need to hope that this does not
case too bad regressions.
Rainer
> -----Original Message-----
> From: rsyslog-bounces at lists.adiscon.com [mailto:rsyslog-
> bounces at lists.adiscon.com] On Behalf Of david at lang.hm
> Sent: Thursday, July 30, 2009 3:24 AM
> To: rsyslog-users
> Subject: [rsyslog] 5.1.3 problems with conditions in rsyslog.conf
>
> I have the following in my config file
>
> :programname, isequal, "iaalog" ~
> :programname, isequal, "plug-gw" ~
> *.* @192.168.210.246:514;TraditionalFormat
>
> the first time a log entry comes along that has a program name of iaalog
> rsyslog crashes
>
> 6183.244020652:40f00950: msg parser: flags 30, from '192.168.210.6', msg
> '<5>Jul 29 18:09:43 192.168.242.178 iaalog[112682]:
AIB|leaderscu|2009/07/29
> 21:09:05|history|1428800'
> 6183.244047218:40f00950: Message has legacy syslog format.
> 6183.244051641:40f00950: Called action, logging to builtin-file
> 6183.244055509:40f00950: submitBatch: i:0, batch size 1, to process 1,
pMsg:
> 0x1926600
> 6183.244058853:40f00950: Action 0x1923b90 transitioned to state: itx
> 6183.244062030:40f00950: entering actionCalldoAction(), state: itx
> 6183.244066591:40f00950: file to log to: /var/log/messages
> 6183.244070038:40f00950: doWrite, pData->pStrm 0x1923560, lenBuf 100
> 6183.244073820:40f00950: strm 0x1923560: file 5 flush, buflen 100
> 6183.244079133:40f00950: strm 0x1923560: file 5 write wrote 100 bytes
> 6183.244083241:40f00950: Action 0x1923b90 transitioned to state: rdy
> 6183.244086454:40f00950: action call returned 0
> 6183.244091070:40f00950: Filter: check for property 'programname' (value
> 'iaalog') isequal 'iaalog': TRUE
> 6183.244096297:40f00950: Called action, logging to builtin-discard
> 6183.244100144:40f00950: submitBatch: i:0, batch size 1, to process 1,
pMsg:
> 0x1926600
> 6183.244103422:40f00950: Action 0x19241a0 transitioned to state: itx
> 6183.244106591:40f00950: entering actionCalldoAction(), state: itx
> 6183.244109759:40f00950:
> 6183.244113010:40f00950: action call returned -2002
>
> David Lang
> _______________________________________________
> rsyslog mailing list
> http://lists.adiscon.net/mailman/listinfo/rsyslog
> http://www.rsyslog.com
More information about the rsyslog
mailing list