I found my mistake; I forgot to link the library when compiling by setting -ldbi in LIBDBI_LIBS environment variable.<div>So for now I&#39;m not getting any error about libafsql anymore but when I first started syslog-ng I got this error &quot;Error reading serialized data; error=&#39;Error reading file (short read)&#39; Persistent configuration file is in invalid format; ignoring;&quot;</div>
<div><br></div><div>I created syslog-ng.persist file in /usr/local/syslog-ng-test/var</div>