Does ruby script in logstash not support inifile and iniparse?

I want to use inifile(iniparse is ok too) in ruby code (in my logstash conf file).
my code is:
ruby{
init => "require 'inifile'; @@causeList = IniFile.load('./causeList.ini');"
code =>"
if !(event.get('message').split('Cause:')[1].nil?)
......

the error logs:
[2018-01-26T22:16:00,253][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: LogStash::PipelineAction::Create/pipeline_id:main, action_result: false", :backtrace=>nil}
LoadError: no such file to load -- inifile

does, logstash not support ruby (inifile, iniparse)?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.