我在Google Cloud Platform服务器上安装了ELK,并希望安装Logstash插件。因此,我将其写入了SSH控制台:

cd /opt/bitnami/logstash
bin/logstash-plugin install logstash-input-mongodb

(一个插件通过logstash将数据从mongodb发送到elasticsearch)

但是我得到了以下错误:
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be remove
d in a future release.
2020-03-29T09:12:29.354Z [main] WARN FilenoUtil : Native subprocess control requires open access to sun.nio.ch
Pass '--add-opens java.base/sun.nio.ch=org.jruby.dist' or '=org.jruby.core' to enable.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.jruby.ext.openssl.SecurityHelper (file:/opt/bitnami/logstash/vendor/bundl
e/jruby/2.5.0/gems/jruby-openssl-0.10.4-java/lib/jopenssl.jar) to field java.security.MessageDigest.provider
WARNING: Please consider reporting this to the maintainers of org.jruby.ext.openssl.SecurityHelper
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
ERROR: File /opt/bitnami/logstash/Gemfile does not exist or is not writable, aborting

你能帮我吗

PS:我正在使用Bitnami btw的ELK

最佳答案

Bitnami工程师在这里,

这是与权限相关的问题,因此请执行:

cd /opt/bitnami/logstash
sudo bin/logstash-plugin install logstash-input-mongodb

在下面的入门文档中查找更多信息:
https://docs.bitnami.com/bch/apps/elk/get-started/get-started/

希望对您有所帮助

关于mongodb - 将插件安装到Logstash时发生ELK错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/60912278/

10-13 06:12