<div dir="auto">You are right it should do that. Can you open an issue?</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 18, 2023, 16:53 Evan Rempel <<a href="mailto:erempel@uvic.ca">erempel@uvic.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div>
    <p><font size="4">Now that syslog-ng has type hinting should the
        pdbtool test also validate the types of any values specified for
        a pattern.</font></p>
    <p><br>
    </p>
    <p><font size="4"><rule id="pid1" class="myclass"
        provider="me"><br>
            <patterns><br>
                <pattern>some pattern @NUMBER:mynum@ with
        number</pattern><br>
            </patterns><br>
            <tags><br>
                <tag>rate</tag><br>
            </tags><br>
            <values><br>
               <value name="more"
        type="integer">100A</value><br>
            </values><br>
            <examples><br>
               <example><br>
                  <test_message program="</font><font size="4"><font size="4">some pattern 123 with number</font></test_message><br>
                  <test_values><br>
                     <test_value name="mynum"
        type="integer">123</test_value><br>
                  </test_values><br>
               </example><br>
            </examples><br>
        </rule><br>
      </font></p>
    <p><font size="4"><br>
      </font></p>
    <p><font size="4">Currently the test_values are verified for both
        the value, and the type that the pattern parses, however, none
        of the values that are used to enrich this message are verified
        for type.</font></p>
    <p><font size="4">This results in a patterndb that passes
        validation, yet will fail at the time the pattern matches a log
        message.<br>
      </font></p>
    <p><br>
    </p>
    <p>comments?<br>
    </p>
    <pre cols="72">-- 
Evan</pre>
  </div>

______________________________________________________________________________<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>