Nested for loop in logstash / calling logstash filters from ruby


Currenly I'm dealing with a development roadblock to shorten a pipeline config.

The logic in any other programming language would be a nested for loop. An iteration over values on array A for each value in array B.

But the code I'm working on makes an explicit call for each combination. Leading me to have to develop with Regex. It's maddening.

I know there isn't a for loop option in logstash. But is there a way I can call a series of filters, or even a separate conf file, for each combination within the ruby plugin?

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