[syslog-ng] error on syslog-ng elasticsearch2 destination

joao reis joao at 7lan.net
Tue Jun 25 18:57:59 UTC 2019


Hi,

I'm getting the following error when trying to configure the 
elasticseach2 backend:

Error parsing destination statement, destination plugin java not found 
in block destination elasticsearch2() at 
/usr/share/syslog-ng/include/scl/elasticsearch/plugin.conf:25:4:3-4:7:
1
2       #Start Block block destination elasticsearch2() at 
/usr/share/syslog-ng/include/scl/elasticsearch/plugin.conf:25
3
4----->   java(
4----->   ^^^^
5 
class_path("//usr/lib64/syslog-ng/java-modules/*.jar://usr/lib64/syslog-ng/java-modules/elastic-jest-client/*.jar:/*.jar")
6 class_name("org.syslog_ng.elasticsearch_v2.ElasticSearchDestination")
7           option("index", "logserver1")
8           option("type", "syslog")
9           option("server", "localhost")


This is the block that causes the error:

destination d_es {
         elasticsearch2 (
                 cluster("logserver1")
                 client-mode("http")
                 index("logserver1")
                 type("syslog")
                 template("$(format-json --scope rfc5424 --scope 
nv-pairs --exclude DATE --key ISODATE)")
         );
};


root at elk-server1 conf.d]# rpm -qa|grep syslog-ng
syslog-ng-3.21.1-3.el7.x86_64
syslog-ng-java-3.21.1-3.el7.x86_64
syslog-ng-http-3.21.1-3.el7.x86_64

Any ideia?

Thanks in advance.




More information about the syslog-ng mailing list