Creating logs for standalone Talend jobs

Highlighted
One Star

Creating logs for standalone Talend jobs

I want to schedule talend .sh files with cronjob daily.
How can I setup log files which logs daily run and in case of error details the error? 
Thanks 
Moderator

Re: Creating logs for standalone Talend jobs

Hi,
You can use tLogCatcher to fetch error in your job and output the error message into a file.
The workflow should be:
xxx-->xxxx-->xxx(Main subjob)
tLogCatcher-->tFileOutputDelimited(log error into a file)
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Creating logs for standalone Talend jobs

Thank you for the reply. 
I would also like that daily job run also logs different steps run in the job. 
What can I use for that?
Moderator

Re: Creating logs for standalone Talend jobs

Hi,
I would also like that daily job run also logs different steps run in the job.

For debug,  you can add some tLogRow components in the job to print the data on the console. Add this word "pause" at the end line of job script(.bat or .sh), to see the message printed on the console before the window closes.
Here is also static log(TalendHelpCenter:tStatCatcher) which gathers the Job processing metadata at the Job level and at the component level(Moment, pid, father_pid,root_pid...etc)
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog

How Media Organizations Achieved Success with Data Integration

Learn how media organizations have achieved success with Data Integration

Read

Why Companies Move to the Cloud: 7 Success Stories

Learn how and why companies are moving to the Cloud

Read Now