my system executes unique tasks that produce 2 logs - a summary and a raw log.
the source naming is something like: job-JOBID123-summary.log and job-JOBID123-raw.log
in summary.log, I have a high level "success" "failure" to indicate whether the task has failed or not.
In raw.log, the pass/fail information is not available, but a specific ERROR is logged.
The problem is that on some of the success, there are some ERRORs logged. For example, I see error="socket" in both pass/fail but need to investigate further if the summary is FAIL and error=socket
How would I go about counting the number of specific errors (from one source) only if my summary reports failure? (another source)
Thanks in advance,
... View more