Logstash filter pipeline Dynamic if on fields

Hello,

is there any way how to match any field while constructing if in filter pipeline, for example:
Tried but it seems it matches half of the fields, and half it does not..

    if [coad][queueStatus][queueByTypes][*][status]{
    // do something
    }

Or:

 if [coad][queueStatus][queueByTypes][*][response][*][connectedTypes]{
    // do something
    }

An if statement does not support wildcards. You would need to use a ruby filter and iterate over the items in the array or hash.

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