my logs are not passing into the if and else if condition, when the if is removed it works fine.
logstash 7.1.1
> filter {
>         if [source] =~ "gid" {
>          grok {
>             match => {"message" => "%{TIMESTAMP_ISO8601:timestamp}\|(\[%{BASE10NUM:nbr}\])\|%{IPORHOST:ClientIP}\|%{USERNAME:User};%{DATA:Node}\|%{URIPATH:Url}\|%{NOTS$
>          }
>         }
> }