I try to use ruby script file in my lostash conf file(filter).
but it failed, the error logs:
[2018-01-26T21:12:49,988][ERROR][logstash.filters.ruby ] Unknown setting 'path' for ruby
[2018-01-26T21:12:49,998][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:main, :exception=>"LogStash::ConfigurationError", :message=>"Something is wrong with your configuration.", :backtrace=>["/home/tool/elk/logstash-6.0.0/logstash-core/lib/logstash/config/mixin.rb:114:in `config_init'", "/home/tool/elk/logstash- ....
Seems like you for some reason have an old version of the ruby plugin. You can use the logstash-plugin command to check the version of the plugin as well as upgrade it.
I have tired to update the plugin logstash-filter-ruby, but it said:
No plugin updated.
my ruby version is:
[root@master bin]# ./ruby -v
jruby 9.1.13.0 (2.3.3) 2017-09-06 8e1c115 Java HotSpot(TM) 64-Bit Server VM 25.152-b16 on 1.8.0_152-b16 +indy +jit [linux-x86_64]
Yes, with that version the path option should work. How did you install Logstash? Have you tried deleting all traces of the installation and installing it again? It looks like you might have old files laying around.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.