Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to send mail for start/end of job execution along with any failure with attached log file for error.

Hi Team,

 

We would like to send mail for start / end for data processing where we have parent job with multiple child job. In case of any point of error, we need to send mail with attached log to identify the issue.

 

Please suggest the approach with any challenges or prerequisite to do this.

FYI, we are maintaining the error log using tredirect component so, need approach add the file in the failure case.

 

We are using TOS.

Labels (2)
5 Replies
fdenis
Master
Master

you may use a master job who send email and logs if fail.
use trunjob to run your job us on subjob erre to get failure.
but if job fail for hier problem !....

the second way is to keep logs and manage warning on it,
Talend Administration Center is made for That.

good luck
Anonymous
Not applicable
Author

Thanks for your reply.

 

So, if I understand you correctly, we should have tsendmail job at the beginning and end of master job to send Start and end mail. And to handle the failure mail scenario, we should add tsendmail to all the trunjob with trigger on "run on Subjob error" isn't? Please confirm.

fdenis
Master
Master

something like that. ( if you are using the free version. )

the real question is: what type of error do you want to catch, java exception error, operating ones, system errors, and what is the process in case of error.
Anonymous
Not applicable
Author

We are catching all type of error directly by redirecting the console output in a file using redirectoutput component. Now with that file location and file name , I hope we can attach/send the mail in case of component error.

I hope this will work.

cmendels
Contributor III
Contributor III

You can also use a tLogCatcher component linked to a tSendMail component. Populate the message portion with string labels and the relevant fields from tLogCatcher (like "project: "+row1.project). Make sure you edit the Job Settings>Stats & Logs portion of your project properties to include logs. You can put one of these subjobs in your parent job and each of your child jobs.

 

Edit - just noticed your file requirement. You can add that as an attachment in the tSendMail.