Add tags in filebeat modules

Hello,
I have read this information:

Can I add a tag in ibmmq module ? tried with:

 errorlog:
    enabled: true
    var.paths: ["/var/mqm/qmgrs/*/errors/*.json"]
#    json.tags: ibmmq
#    tags: ["ibmmq", json]

and after that in logstash:

filter {
#   if "ibmmq" in [tags] {
     json {
        source => "message"
        target => "message"
     }
#   }
}

Nothing is happening in this way.
If I add # - all is fine..

thank you

I have added :

if [event][module] == "ibmmq" {
...
}

hopefully, this is the correct way - to read the fields from the incoming json.