Query details:
index=my_app processcreditcheck tmLogging (failure OR success)
Result needed:
][1]
You should have a field dedicated to success or failure. If you don't have an existing field, you can write a regular expression to capture the "success" and "failure" values. Once you have these values in a field, you can then do something like this
... | stats count by <FIELD_NAME>