<p dir="ltr">Hmm. I dont see what dbparser is trying to persist there. Now as I think of it, its probably the correlation state table.</p>
<p dir="ltr">This seems to be a genuine bug.</p>
<div class="gmail_quote">On Apr 8, 2015 1:31 PM, &quot;Mikkel Leth Carlsen&quot; &lt;<a href="mailto:mlca@tdc.dk">mlca@tdc.dk</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
Are db-parsers defined in syslog-ng configurations not reusable for multiple logs?  A simplified example (syslog 3.6.2):<br>
<br>
parser myparser {<br>
        db_parser(<br>
                file(&quot;/usr/local/etc/patterndb.d/myparser.xml&quot;)<br>
        );<br>
};<br>
<br>
template mytemplate {<br>
         template(&quot;${A};${B};${C}\n&quot;);<br>
}<br>
<br>
filter filter_host1 {<br>
        netmask(<a href="http://10.0.0.1/255.255.255.255" target="_blank">10.0.0.1/255.255.255.255</a>);<br>
};<br>
<br>
filter filter_host2 {<br>
        netmask(<a href="http://10.0.0.2/255.255.255.255" target="_blank">10.0.0.2/255.255.255.255</a>);<br>
};<br>
<br>
destination dst_host1 {<br>
        file(&quot;host1.log&quot; perm(0644) template(mytemplate));<br>
};<br>
<br>
<br>
destination dst_host2 {<br>
        file(&quot;host2.log&quot; perm(0644) template(mytemplate));<br>
};<br>
<br>
log {<br>
        source(src_udp);<br>
        filter(filter_host1);<br>
        parser(myparser);<br>
        destination(dst_host1);<br>
        flags(final);<br>
};<br>
<br>
log {<br>
        source(src_udp);<br>
        filter(filter_host2);<br>
        parser(myparser);<br>
        destination(dst_host2);<br>
        flags(final);<br>
};<br>
<br>
This seems to work as expected and &#39;syslog-ng -s&#39; does not report any problems, but I see the following in the syslog-ng internal log:<br>
<br>
Internal error, duplicate configuration elements refer to the same persistent config; name=&#39;db-parser(/usr/local/etc/patterndb.d/myparser.xml)&#39;<br>
Internal error, duplicate configuration elements refer to the same persistent config; name=&#39;db-parser(/usr/local/etc/patterndb.d/myparser.xml)&#39;<br>
<br>
/Mikkel<br>
______________________________________________________________________________<br>
Member info: <a href="https://lists.balabit.hu/mailman/listinfo/syslog-ng" target="_blank">https://lists.balabit.hu/mailman/listinfo/syslog-ng</a><br>
Documentation: <a href="http://www.balabit.com/support/documentation/?product=syslog-ng" target="_blank">http://www.balabit.com/support/documentation/?product=syslog-ng</a><br>
FAQ: <a href="http://www.balabit.com/wiki/syslog-ng-faq" target="_blank">http://www.balabit.com/wiki/syslog-ng-faq</a><br>
<br>
</blockquote></div>