New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't find class; class_name='org/syslog_ng/SyslogNgClassLoader' #620
Comments
I think we have a fix for this on current master. |
I am afraid that I have this fix and it doesn't fix. Pulled from master one hour ago. jacek@uwbTestField:~/syslog-ng-master/modules/java$ git log
commit 1f8a0fb
commit 90e8deb
|
Do you have ElasticSearch jars in |
Yes, I have. jacek@uwbTestField:~/syslog-ng-master$ ls /usr/share/elasticsearch/lib/ Here is strace: |
@OortJacek you also have to add |
Didn't help. @Version: 3.7 @module mod-java destination d_elastic {
); source s_local { destination d_local { log {
}; |
could you check if the files |
How can I do this? |
|
just list the directory ( |
jacek@uwbTestField:~$ ls /opt But I have added /usr/local/lib/syslog-ng/java-modules/*.jar also. jacek@uwbTestField:~$ ls /usr/local/lib/syslog-ng/java-modules/ |
please, use the markdown formatting :-) |
also, at this point could you please pastebin the whole config (using markdown) |
Ok, sorry. But I still cant paste this *jars to look good. :( Here config: Here jars: Here my configure process: |
hmm... your config is strange a little bit |
I have just run make install. Default location is in /usr/local/ I modify my config: http://pastebin.com/wmsZz8p3 but still doesn't work. |
We found what caused this problem, I'm waiting for Travis, and, after that I'm going to merge it. |
@OortJacek : |
Ok, it is fixed. |
ok, then I'll close it. |
Hello,
there is problem when I am trying to use elasticsearch destination. The error occurs when "destination(d_elastic);" line is added.
There is installation configure: http://pastie.org/10331217
There is my config:
@Version: 3.7
@include "scl.conf"
@module mod-java
destination d_elastic {
java(
class_path("/opt/syslog-ng/lib/syslog-ng/java-modules/elastic.jar:/usr/share/elasticsearch/lib/*.jar")
class_name("org.syslog_ng.elasticsearch.ElasticSearchDestination")
);
};
source s_local {
system();
internal();
};
destination d_local {
file("/var/log/jacekmessages");
};
log {
source(s_local);
};
There is the error:
jacek@uwbTestField:$ sudo syslog-ng
[2015-08-06T05:01:51.664423] Can't find class; class_name='org/syslog_ng/SyslogNgClassLoader'
**
ERROR:modules/java/native/java_machine.c:126:java_machine_get_class_loader: assertion failed: (self->loader)
The text was updated successfully, but these errors were encountered: