简体   繁体   English

安装本地Logstash插件gem

[英]Installing a local Logstash plugin gem

What is the interest? 有什么兴趣?

Writing a Logstash output plugin for AWS Kinesis. 为AWS Kinesis编写Logstash输出插件。

What was already achieved? 已经取得了什么?

Using this tutorial , logstash-output-sqs-0.1.3.gem was built from this GitHub repo . 使用本教程 ,从该GitHub存储库构建了logstash-output-sqs-0.1.3.gem

What is the problem? 问题是什么?

Installing the gem file using the plugin install command: 使用plugin install命令安装gem文件:

bin/plugin install ~/logstash-output-sqs-0.1.3.gem

Logstash 1.4.2 Logstash 1.4.2

Can only install contrib at this time... Exiting.

Logstash 1.5.0 beta1 Logstash 1.5.0 beta1

The error reported is:
  sqs must set a milestone.

Logstash 1.5.0 rc2 Logstash 1.5.0 rc2

Error reading plugin file ~/logstash-output-sqs-0.1.3.gem, caused by NameError

What are the questions 有什么问题

  • Which Logstash version is preferable for plugin development? 哪个Logstash版本更适合插件开发?
  • How can this error be solved? 如何解决此错误?

I was able to work with Logstash 1.5.0 beta1 as follow: 我能够按以下方式使用Logstash 1.5.0 beta1:

In my class in lib/logstash/outputs/kinesis.rb I added: lib/logstash/outputs/kinesis.rb我添加了:

milestone 1

In logstash-output-kinesis.gemspec I changed dependency from: logstash-output-kinesis.gemspec我将依赖项从以下位置更改:

s.add_runtime_dependency "logstash-core", '>= 1.4.0', '< 2.0.0'

to

s.add_runtime_dependency "logstash", '>= 1.4.0', '< 2.0.0'

BTW the plugin is ready: 顺便说一句,插件已准备就绪:

https://github.com/adience-code/logstash-output-kinesis https://github.com/adience-code/logstash-output-kinesis

This commit is compatible with Logstash 1.5.0 beta1. 该提交与Logstash 1.5.0 beta1兼容。

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

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