Simple ruby filter failing

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?

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

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