i want to use spilt function in ruby to split one list into two arrays. however there are some type of values that i want to ignore based on some regex.
i have defined some regex in patterns dir of logstash. can someone please tell me how to access those regex in ruby filter. i am able to get those regex in grok filter by adding this line
patterns_dir => ["/etc/logstash/patterns"]
but i dont know how to do the same for ruby filter. if i am adding the same line in ruby filter then logstash is giving error.