How do I test my condition statement that is not working?

I suggest you read this for advice on how to create a grok pattern for a complex string.

You have newlines in your message, so the pattern has to match them. I would start with

        match => [ 'message', '^%{WORD}=%{INT:_nrings}
 %{WORD}=%{INT:_phone}
 %{WORD}=%{GREEDYDATA:_informat}
 %{WORD}=%{INT:_tries}
 %{WORD}=%{INT:_callTime}
 %{WORD}=%{GREEDYDATA:_newApp}
 %{WORD}=%{INT:_retryInterval}
 %{WORD}=%{URI:_initialScript}']

Extend that one line at a time. Personally I would replace the patterns like %{GREEDYDATA:_newApp} with (?<_newApp>[^_]+).