Wildcard in conditionals?

Is this legal?

output{
    if "*error*" in [tags] or "*failure*" in [tags]{
        stdout{ codec => rubydebug }
    }
    else{
        # index in ES
    }
}

Did you try it?