[syslog-ng] can not load geoip2 plugin

Russell Fulton r.fulton at auckland.ac.nz
Tue Apr 7 19:49:39 UTC 2020


HI

This is a locally compiled application (version 3.26.1) and I am trying to get the geoip2 stuff working.  I had similar problems a week or two back with elasticsearch_http destination plugin.  This seems like it might be easier to diagnose since the error says where it is looking for the plugin.

rful011 at secmgrprd02:~$ /usr/local/syslog-ng-3.26.1/sbin/syslog-ng  -s -f /etc/syslog-ng/geoip.conf
[2020-04-08T07:30:19.551845] Plugin module not found in 'module-path'; module-path='/usr/local/syslog-ng-3.26.1/lib/syslog-ng', module='geoip2'
Error parsing config, syntax error, unexpected LL_ERROR, expecting $end in /etc/syslog-ng/geoip.conf:4:1-5:1:
1       @version: 3.21
2       
3       @include "scl.conf"
4-----> @module geoip2
4-----> ^^^^^^^^^^^^^^^
5-----> # 
6       
7       options {
8               use_dns (no);
9               use_fqdn (no);

rful011 at secmgrprd02:~$ ls -l  /usr/local/syslog-ng-3.26.1/lib/syslog-ng/libgeoip2-plugin.*
-rwxr-xr-x 1 root root   1271 Mar 31 08:57 /usr/local/syslog-ng-3.26.1/lib/syslog-ng/libgeoip2-plugin.la
-rwxr-xr-x 1 root root 158912 Mar 31 08:57 /usr/local/syslog-ng-3.26.1/lib/syslog-ng/libgeoip2-plugin.so


any ideas why it is not loading the library?


More information about the syslog-ng mailing list