<div dir="ltr"><div>This PR should fix both issues (this one and the one you reported as an issue):</div><div><br></div><div><a href="https://github.com/syslog-ng/syslog-ng/pull/4405">https://github.com/syslog-ng/syslog-ng/pull/4405</a></div><div><br></div><div>Sorry for the inconvenience,</div><div>Balazs</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 28, 2023 at 11:58 PM Balazs Scheidler <<a href="mailto:bazsi77@gmail.com">bazsi77@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto">It was supposed to ignore type information if it's not specified. <div dir="auto"><br></div><div dir="auto">Just checked the code and it now seems to default to using string instead.</div><div dir="auto"><br></div><div dir="auto">It's on line 838 of pdbtool.c</div><div dir="auto"><br></div><div dir="auto">I'm fixing it tomorrow </div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 28, 2023, 19:01 Evan Rempel <<a href="mailto:erempel@uvic.ca" target="_blank">erempel@uvic.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm working with syslog-ng-4.1.1-1 and attempting to validate a <br>
patterndb xml file.<br>
<br>
I understand that the pattern parsers will produce type aware values, <br>
but it seems that if the tests in the patterndb xml file do not contain <br>
any type information that all tests against non-string values will fail.<br>
<br>
Is that intended behavior to require type information on all tests?<br>
<br>
If that is by design I propose that this makes thing difficult because <br>
@NUMBER:var@ and @STRING:var@ will both successfully parse the same <br>
value out of the syslog message, but the test would now have to be <br>
different. Tools that programmatically produce the patterndb need to <br>
become a lot smarter.<br>
<br>
Can anyone comment on this behavior?<br>
<br>
When attempting to validate the attached patterndb.xml file I get the error<br>
<br>
Testing message: program='xinetd' message='EXIT: gsiftp status=0 <br>
pid=23133 duration=0(sec)'<br>
Wrong match name='status', value='0', type='integer', expected='0', <br>
expected_type='string'<br>
Wrong match name='sec', value='0', type='integer', expected='0', <br>
expected_type='string'<br>
Wrong match name='pid', value='23133', type='integer', <br>
expected='23133', expected_type='string'<br>
<br>
<br>
-- <br>
Evan<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" rel="noreferrer noreferrer" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" rel="noreferrer noreferrer" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Bazsi</div>