logstash-input-kafka的所有版本见:
https://rubygems.org/gems/logstash-input-kafka/versions
目前最新版本是2.0.2,说明见:
https://rubygems.org/gems/logstash-input-kafka
安装说明见:
http://www.rubydoc.info/gems/logstash-input-kafka/2.0.2
This is a plugin for Logstash.
这是Logstash的一个插件。
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
它完全免费,而且开源。许可证是Apache2.0,意味着你可以用你喜欢的方式完全免费地使用它。
Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one central location.
Logstash提供了可以自动为此插件生成文档的基础组件。我们使用asciidoc格式写文档,所以任何源代码中的意见会先被转换车程asciidoc格式,然后转换成html格式。所有插件文档被放在一个中心位置。
[source,ruby]
directiveNeed help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
可以在IRC(一款聊天工具)或论坛寻找答案。
To get started, you'll need JRuby with the Bundler gem installed.
想要启动,你需要安装捆绑有gem的JRuby。
Create a new plugin or clone and existing from the GitHub logstash-plugins organization. We also provide example plugins.
产生一个Github的logstash-plugins板块中的新的插件或拷贝,我们提供了插件例子。
Install dependencies sh bundle install
安装依赖sh捆绑安装
bundle install
捆绑安装
bundle exec rspec
捆绑函数簇驱动开发
Gemfile
and add the local plugin path, for example: ruby gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
编辑Logstash的Gemfile,添加本机插件路径,例如,ruby的gem“logstash-filter-awesome”,路径是“/your/local/logstash-filter-awesome”。
sh bin/plugin install --no-verify
安装插件 sh bin/plugin install --no-verify
sh bin/logstash -e 'filter {awesome {}}'
At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash. You can use the same 2.1 method to run your plugin in an installed Logstash by editing its Gemfile
and pointing the :path
to your local plugin development directory or you can build the gem and install it using:
你可以使用2.1中的方法来在已安装的Logstash中运行你的插件,通过编辑它的Gemfile和这点:你本地插件发展目录的路径或者按下面的方法生成gem文件并使用它:
sh gem build logstash-filter-awesome.gemspec
生成你的插件gem,使用sh gem build logstash-filter-awesome.gemspec
sh bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
从Logstash目录安装插件,使用sh bin/plugin install /your/local/plugin/logstash-filter-awesome.gem
All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
It is more important to the community that you are able to contribute.
For more information about contributing, see the CONTRIBUTING file.