Simple ruby filter failing


#1

I kept running into a wall trying to get a ruby file to work for a filter and I finally simplified my config file to simply this:

filter {
    ruby {
        code => "event.cancel"
    }
}

But even with this simple example, running logstash.bat -t gives me the following:

The given configuration is invalid. Reason: uninitialized constant LogStashCompilerLSCLGrammar::LogStash::Compiler::LSCL::AST::hash::ConfigurationError

Can anyone point me in the right direction to get a ruby filter to work at all?


#2

Found issue elsewhere. Made multiple changes at once and was chasing a red herring.


(system) #3

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