Application order of gsub

Hi everyone, I would like to ask you a question about the gsub filter.

Replacements are applied in the order set in the array?

I have the following filter:

 mutate {
         gsub => ["message", "\"\"", "NULL",
                         "message", "\""," ",
                         "message", ",", ""]
 }

I need to replace the double quotes first, then delete the ones that are alone, ending with the commas replacement.

By placing this in order, is it done in that order?

I thank you in advance for the help, greetings!

It iterates over the array in groups of three, and arrays are ordered, so with the current implementation order is preserved.

Thanks a lot for your answer! Doing tests in effect does it that way

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