Hi
I'm just getting started with Logstash and the ability to execute inline ruby is pretty neat. Is it possible to invoke a ruby script in a similar manner? The advantage would be that I could make it look better as a standalone script, I could test it independently, and it would be easier to maintain. Consider something like this:
filter {
ruby {
script_path => "/path/to/script.rb maybe with argv"
}
}
Then...
#!/usr/bin/env ruby
class Script
def initialize(argv)
@something = argv[2]
end
def do_stuff
@something.gsub(" ", ":")
end
end
Script.new(ARGV).do_stuff
Is this currently possible and if not, I think it would make a great feature.