簡體   English   中英

使用 logstash 2.3.1 安裝自定義 logstash gem 過濾器時出現問題

[英]Issue while installing custom logstash gem filter with logstash 2.3.1

我使用的是 logstash 1.5.4 並且能夠安裝從第三方團隊收到的自定義 logstash 過濾器,現在我已將 logstash 從 1.5.4 更新到 2.3.1,當我嘗試安裝 logstash 過濾器時,它給了我以下錯誤:

failed: [site1elk01] => {"changed": true, "cmd": "/opt/logstash/bin/logstash-plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem", "delta": "0:00:11.883231", "end": "2016-04-25 00:38:30.545048", "rc": 1, "start": "2016-04-25 00:38:18.661817", "warnings": []}
stderr: Error Bundler::GemspecError, retrying 1/10
There was a Errno::ENOENT while loading logstash-filter-abc.gemspec:
No such file or directory - git from
  /opt/logstash/vendor/local_gems/bdd6b4de/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
No such file or directory - git from
  /opt/logstash/vendor/local_gems/a945cf06/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
Too many retries, aborting, caused by Bundler::GemspecError
ERROR: Installation Aborted, message: There was a Errno::ENOENT while loading logstash-filter-abc.gemspec:
No such file or directory - git from
  /opt/logstash/vendor/local_gems/a945cf06/logstash-filter-abc-1.0.0/logstash-filter-abc.gemspec:14:in `eval_gemspec'
stdout: Validating /opt/logstash/logstash-filter-abc-1.0.0.gem
Installing logstash-filter-abc

在 1.5.4 早期,我使用以下命令安裝過濾器:

/opt/logstash/bin/plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem

現在,在我使用 bin 文件夾中的 logstash-plugin 出現錯誤后,我正在使用以下內容:

/opt/logstash/bin/logstash-plugin install /opt/logstash/logstash-filter-abc-1.0.0.gem

這里有什么幫助,可能是什么問題?

提前致謝!!

如果您要安裝插件,則該插件位於您的本地目錄中,而不是官方目錄中。 你應該修改,

“寶石文件”

在 logstash 目錄中。 這就是您收到此錯誤的原因。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM