繁体   English   中英

Logstash - 离线插件安装

[英]Logstash - Offline Plugin Installation

我尝试在各种互联网论坛上搜索有关离线安装Logstash插件的信息,但没有找到我们可以实施的解决方案。

我想要实现的是:安装以下两个logstash插件:

logstash-filter-mutate-master
logstash-filter-aggregate-master

我的限制是:在我的公司,Linux 服务器上严格没有 Internet 连接。 因此,我需要一个解决方案,我可以在我的 Windows 机器上下载一些现成的包,然后在 Linux 机器上解压缩它,这将安装我需要的插件。

我查看了Logstash 文档,该文档提供了有关如何离线安装插件的建议,但这还需要一个具有 Logstash 源代码并具有 Internet 连接的“暂存”服务器——后者在我的组织中不存在。

如果您能建议如何解决这个问题,我将不胜感激。 目前,当我尝试安装“mutate”插件时,我看到了以下错误:

$ bin/logstash-plugin install --local --no-verify
Installing...

Plugin not found, aborting

ERROR: Installation Aborted, message: Could not find gem 'ci_reporter_rspec (>= 0) java' in any of the gem sources listed in your Gemfile or installed on this machine.

谢谢。

如果您想离线安装 logstash 插件。 第一种方式; 您必须更改 logstash 目录中的 gemfile。 例如,将插件源下载到您的 logstash 目录中的某个位置,然后使用插件名称和路径修改 logstash 目录中的 gemfile。

gem "logstash-input-example-plugin", :path => "./plugins/logstash-input-example-plugin"

之后只需运行以下命令

bin/logstash-plugin install --no-verify

您可以点击此链接:

https://www.tutorialspoint.com/logstash/logstash_plugins.htm

第二种方式; 与插件的 gem 文件一起使用。 举个例子;

bin/logstash-plugin install /path/to/logstash-output-kafka-1.0.0.gem

您可以点击此链接:

https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM