如何将cassandra与logstash输入连接? [英] how to connect cassandra with logstash input?
问题描述
Logstash.conf
Logstash.conf
输入{tcp {端口=> 7199}}输出{elasticsearch {主机=> [本地主机"]}}
input { tcp { port => 7199 } } output { elasticsearch { hosts => ["localhost"] } }
在7199端口上运行的Cassandra和在localhost:8080上运行的jhipster应用程序. 我们无法通过my_application添加到logstash
Cassandra running on 7199 port and jhipster application running on localhost:8080. we are unable to add into logstash by my_application
未找到log4j2文件.
No log4j2 file found.
推荐答案
我遇到了同样的问题.通过从 DatabaseSchema 下载Cassandra JDBC解决了该问题.
I had the same issue. The issue was solved by downloading a Cassandra JDBC from DatabaseSchema.
也要添加jar文件时,请将其添加到 logstashFolder/logstash-core/lib/jar
also when You want to add the jar files, add it in the logstashFolder/logstash-core/lib/jar
似乎有一个与logstash有关的错误,该错误仅对于外部jar文件使用此路径.
there seems to be a bug with logstash which only looks this path for external jar files.
如果某些jar文件重复使用最新文件.
also if there were some jar files that were duplicated use the latest ones.
这篇关于如何将cassandra与logstash输入连接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!