【发布时间】: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