adding another field to SED output

Dear experts,

I have a file called "check" with contents like below

i used the sed command like below to get the value of "success" and "failed" only

My question is how can i get the value to include the time "03:15", so that i can get a value such as below : -

Appreciate any advice. Thanks.

Using awk:

awk '/[0-9]:[0-9]/ { TIME=$2 }/success/ { getline; print TIME, $0; exit }' file

Thanks scottn.
your answer actually works, but maybe i was not very clear with my file. Apologies.

My complete file actually has an input like below

How can i be sure that i am getting the outout for KPG-HF4-3 only?
Pls advice

awk '/KPG-HF4-3/{getline;s=$2;getline;getline;print s $0;exit}' file

Thank you franklin :slight_smile: