简体   繁体   English

Logstash - 离线插件安装

[英]Logstash - Offline Plugin Installation

I have tried searching on various internet forums about the offline installation of Logstash plugins, but haven't found the solution that we can implement.我尝试在各种互联网论坛上搜索有关离线安装Logstash插件的信息,但没有找到我们可以实施的解决方案。

What I want to achieve is: Install the following two logstash plugins:我想要实现的是:安装以下两个logstash插件:

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

My Limitations Are: At my company, there is strictly no Internet connectivity on Linux servers.我的限制是:在我的公司,Linux 服务器上严格没有 Internet 连接。 Therefore, I need a solution where I could download some off-the-shelf package on my Windows machine, and then unpack it on the Linux machine, which would install the plugins I require.因此,我需要一个解决方案,我可以在我的 Windows 机器上下载一些现成的包,然后在 Linux 机器上解压缩它,这将安装我需要的插件。

I have looked at the Logstash documentation , which advises on how to install plugins offline, but that also needs a 'Staging' server which has logstash source-code and has Internet connectivity - the latter is non-existent in my organisation.我查看了Logstash 文档,该文档提供了有关如何离线安装插件的建议,但这还需要一个具有 Logstash 源代码并具有 Internet 连接的“暂存”服务器——后者在我的组织中不存在。

I would greatly appreciate if you could advise how to approach this.如果您能建议如何解决这个问题,我将不胜感激。 At present, when I try to install the 'mutate' plugin, here's the error I see:目前,当我尝试安装“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.

Thank you.谢谢。

If you want to install a logstash plugin in offline.如果您想离线安装 logstash 插件。 First way ;第一种方式; You must change gemfile in logstash directory.您必须更改 logstash 目录中的 gemfile。 As an example, download plugin source in somewhere of your logstash directory then modify gemfile in logstash directory with plugin name and path.例如,将插件源下载到您的 logstash 目录中的某个位置,然后使用插件名称和路径修改 logstash 目录中的 gemfile。

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

After that just run the below command之后只需运行以下命令

bin/logstash-plugin install --no-verify

You can follow this link :您可以点击此链接:

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

Second way;第二种方式; using with gem file of the plugin.与插件的 gem 文件一起使用。 As an example;举个例子;

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

You can follow this link :您可以点击此链接:

https://www.elastic.co/guide/en/logstash/current/working-with-plugins.html 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