How to emailing the TAC log file that was generated when running a job

One Star

How to emailing the TAC log file that was generated when running a job

When running a job through the job conductor, a log file is generated for each execution of the task. Is it possible to email this file to someone after the job completes? If so, how can this be accomplished? I don't know how to figure out the name of the file, so I don't know how to reference it.
One Star

Re: How to emailing the TAC log file that was generated when running a job

Hi
You can find jobexecution logs at Talend-JobServer\TalendJobServersFile\jobexecutions\logs directory.
I think tFileList will help you iterate these files.
Regards,
Pedro
One Star

Re: How to emailing the TAC log file that was generated when running a job

Pedro,
Is it possible to know which files are for which job? The files have cryptic names that don't mean much (like task_32). I don't know how I can figure out which file to use.
Thanks.
One Star

Re: How to emailing the TAC log file that was generated when running a job

Hi
You can add a tJava component in Job.
System.out.println(jobName);

Then write a bat or shell script to extract the Job name from logs.
Regards,
Pedro
One Star

Re: How to emailing the TAC log file that was generated when running a job

Hi,  anyone found the solution to this ?

Cloud Free Trial

Try Talend Cloud free for 30 days.

Tutorial

Introduction to Talend Open Studio for Data Integration.

Definitive Guide to Data Integration

Practical steps to developing your data integration strategy.

Definitive Guide to Data Quality

Create systems and workflow to manage clean data ingestion and data transformation.