Hi,
I am migrating my inline ruby script to an external ruby script file.
First I create an new event with : service_trace_event = LogStash::Event.new
After filling the fields like : service_trace_event.set("id",result_set.getString(1).to_i) ,
I do the following call: new_event_block.call(service_trace_event)
But then I get the following error:
undefined local variable or method `new_event_block' for #<LogStash::Filt
ers::Ruby::Script::ExecutionContext:0x681d402a>
What am I doing wrong?
Regards Hans