There is requirements to read job log file and send mail if job run fails

I want to read job log file . Each log line contains start time with key phrase job started with time stamp.
if the job start time takes more than 15 sec to complete we want to send status mail .
Please help me regarding this .
Attaching sample log file data .

5/08/22 00:00:13 Start
05/08/22 00:00:13 Looking in Job for Waiting users
08/08/22 10:10:13 END
05/08/22 00:00:43 Start
05/08/22 00:00:43 Looking in Job for Waiting users
05/08/22 00:00:43 END
05/08/22 00:01:13 Start
05/08/22 00:01:13 Looking in Job for Waiting users
05/08/22 00:01:13 END

Ashu0651,
Welcome to the forum. :wave:t4:

What kind of help do you need?

Please keep in mind - This forum is for scripting questions rather than script requests. We do not write customized and ready to use scripts or solutions on request.

We actually expect you to make an own attempt in the first place to get your task done or to solve your problem. If you have done so already please document here what exactly you have done and show your code. Then we probably might be able to help you step further.

And BTW: When you post code, sample data, console output or error messages please format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink:

Have you tried to search for it?

https://www.google.com/search?q=powershell+parse+log+file

or like this:

https://www.google.com/search?q=powershell+send+status+mail