我已经下载了最新的logstash 1.4,当我使用以下配置运行它时:
input { eventlog { } } output { stdout {} }
我收到此错误:
D:\logstash-1.4.0\bin>logstash agent -f simpleConfig.config -l logs.log Sending logstash logs to agent.log. ?[33mUsing milestone 2 input plugin 'eventlog'. This plugin should be stable, bu t if you see strange behavior, please let us know! For more information on plugi n milestones, see http://logstash.net/docs/1.4.0/plugin-milestones {:level=>:war n}?[0m LoadError: no such file to load -- jruby-win32ole require at org/jruby/RubyKernel.java:1085 require at file:/D:/logstash-1.4.0/vendor/jar/jruby-complete-1 .7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require. rb:55 require at file:/D:/logstash-1.4.0/vendor/jar/jruby-complete-1 .7.11.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require. rb:53 require at D:/logstash-1.4.0/lib/logstash/JRUBY-6970.rb:27 require at D:/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/poly glot-0.3.4/lib/polyglot.rb:65 register at D:/logstash-1.4.0/lib/logstash/inputs/eventlog.rb:3 7 start_inputs at D:/logstash-1.4.0/lib/logstash/pipeline.rb:135 each at org/jruby/RubyArray.java:1613 start_inputs at D:/logstash-1.4.0/lib/logstash/pipeline.rb:134 run at D:/logstash-1.4.0/lib/logstash/pipeline.rb:72 execute at D:/logstash-1.4.0/lib/logstash/agent.rb:136 run at D:\logstash-1.4.0\lib\logstash\runner.rb:190 call at org/jruby/RubyProc.java:271 initialize at D:/logstash-1.4.0/vendor/bundle/jruby/1.9/gems/stud -0.0.17/lib/stud/task.rb:12
我认为win32ole jruby包丢失了,但我不知道如何添加它.
在此先感谢您的帮助
我安装了logstash-contrib-1.4.x.tar.gz
.
我没有找到下载链接,所以我复制了logstash下载链接并在文件名中添加了"-contrib",例如:https://download.elasticsearch.org/logstash/logstash/logstash-contrib-1.4.2.tar . gz
在我的情况下工作正常.安装仅在home directoy上解压缩文件并覆盖所有文件.现在它有效.