[英]Installing a local Logstash plugin gem
Writing a Logstash output plugin for AWS Kinesis. 为AWS Kinesis编写Logstash输出插件。
Using this tutorial , logstash-output-sqs-0.1.3.gem
was built from this GitHub repo . 使用本教程 ,从该GitHub存储库构建了
logstash-output-sqs-0.1.3.gem
。
Installing the gem file using the plugin install
command: 使用
plugin install
命令安装gem文件:
bin/plugin install ~/logstash-output-sqs-0.1.3.gem
Can only install contrib at this time... Exiting.
The error reported is:
sqs must set a milestone.
Error reading plugin file ~/logstash-output-sqs-0.1.3.gem, caused by NameError
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.