[resolved] Sending Log file as an attachment using tsendmail

Hi,
I want to send the the logs created by tLogCatcher, tStatCatcher, tFlowMeterCatcher at the end of each job as an "attachment file" using tSendMail. I couldnt figure out how to save the file context.File_StatsCatcher at any destination so i can attach it in the mail. Please help me with this.

Regards
Asif
1 ACCEPTED SOLUTION

Accepted Solutions
One Star

Re: [resolved] Sending Log file as an attachment using tsendmail

Hi
Create job as follow.
tStatCatcher --> tFileOutputDelimited
|
OnSubjobOk
|
tSendMail
Regards,
Pedro
6 REPLIES
One Star

Re: [resolved] Sending Log file as an attachment using tsendmail

Hi
What do you mean "context.File_StatsCatcher"?
You can link tStatCatcher with tFileOutputDelimited.
tStatCatcher --> tFileOutputDelimited
Regards,
Pedro

Re: [resolved] Sending Log file as an attachment using tsendmail

Sorry let me rephrase...I meant to say how can i save log to txt file and than email as attachment.
One Star

Re: [resolved] Sending Log file as an attachment using tsendmail

Hi
Create job as follow.
tStatCatcher --> tFileOutputDelimited
|
OnSubjobOk
|
tSendMail
Regards,
Pedro

Re: [resolved] Sending Log file as an attachment using tsendmail

Thanks Perdo I got the idea. One last thing, is it possible i create an independent (generic) job like you said above and somehow link it with rest of my jobs so i could get emails for each job.
Regards
Asif
One Star

Re: [resolved] Sending Log file as an attachment using tsendmail

Hi Asif
If you are the user of Talend Integration Suite(Commercial Version), you can create a joblet for this stuff.
Then you can add this joblet like a custom component into any new jobs.
Regards,
Pedro

Re: [resolved] Sending Log file as an attachment using tsendmail

Okay I think I am using the community version. Thanks for the help Smiley Happy

Regards
Asif