How to get a log when running Talend job in batch

One Star

How to get a log when running Talend job in batch

Hello,
I have built a talend job and deployed it on a linux machine.
a .sh script has been generated for me: dmtrzz_collecte_vsp_run.sh
When i run the script, the job does what's supposed to do.
But I have no log file, how to generate a log file for the job execution?
I added  > ./log_talend.log at the end of the command line, but the file log_talend.log is empty after running the job.
Thanks in advance.
Sidi
Community Manager

Re: How to get a log when running Talend job in batch

This should work. I did the same in a test I carried out this morning and it worked perfectly. I did do it on Windows and not Linux/Unix but that shouldn't make any difference here.
One Star

Re: How to get a log when running Talend job in batch

For me it doesn't work, the log file is always empty.
Is there a log level to specify in order to get someting in the log file?
Moderator

Re: How to get a log when running Talend job in batch

Hi hammamr,

Have you tried to set Stats&Logs in job view to send your log to a specify file or database table?

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: How to get a log when running Talend job in batch

Hello,
I tried but it doesn't work, any idea ?

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 2

Part 2 of a series on Context Variables

Blog

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog