How to handle multiple match in logstash filter

I have just edited my question. It was incomplete.