【问题标题】:Issue while installing custom logstash gem filter with logstash 2.3.1使用 logstash 2.3.1 安装自定义 logstash gem 过滤器时出现问题
【发布时间】:2016-08-18 14:21:44
【问题描述】:

我使用的是 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

这里有什么帮助,可能是什么问题?

提前致谢!!

【问题讨论】:

  • 你能用sudo /opt/logstash...试试同样的命令吗?
  • 用 sudo 试过 ....同样的问题
  • 如果我的回答有用,欢迎点赞并采纳:)

标签: ruby elasticsearch logstash logstash-configuration


【解决方案1】:

如果您要安装插件,则该插件位于您的本地目录中,而不是官方目录中。你应该修改,

“宝石文件”

在logstash 目录中。这就是您收到此错误的原因。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多