0

Can I use the For Statement with Logstash?

And if so, how?

I know we can use the IF statement and I've been using it successfully

hello_its_me
  • 743
  • 2
  • 19
  • 52

1 Answers1

0

Yes, you can.

You can use 'RUBY' plugin and write the ruby code to do your For statement.

filter 
{ 
    ruby {
         code => "
              #RUBY CODE HERE
         "
    }
}
Ban-Chuan Lim
  • 7,840
  • 4
  • 35
  • 52