Error opening plugin module; module='mod-java', error='libjvm.so: cannot open shared object file: No such file or directory' or plugin java not found
The syslog-ng application uses libjvm.so to embed a Java Virtual Machine inside syslog-ng. Java libraries tend to have a large binary footprint, even just the Java Runtime Environment (JRE) part of it. This is why Java is not bundled with syslog-ng: it would multiple the size of the syslog-ng package. Instead, syslog-ng uses the Java installed on the host. The syslog-ng Premium Edition (PE) supports only Oracle Java 1.7 or later. Oracle Java is used both for development and testing of syslog-ng Java destination drivers.
RESOLUTION 1:
1 - Use the following command to locate the Java library on the system find /usr -name libjvm.so
2 - Review the file /opt/syslog-ng/etc/environment and check the JAVA_LIBRARY_PATH and the LD_LIBRARY_PATH is correct.
Example:
LD_LIBRARY_PATH="$JAVA_LIBRARY_PATH:$LD_LIBRARY_PATH"
3. If changes have been made in step 2 you must restart syslog-ng.
1. Install Oracle Java 1.7 or higher
© 2021 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy