Stats & Logs in project settings

One Star

Stats & Logs in project settings

If I activate both statistics and logs "On Console" and "On Files" in the project settings is there a way to distinguish between the settings for statistics and logs? For example I would like to print out logs on both console and files, but statistics only in files and not on console.
Moderator

Re: Stats & Logs in project settings

Hi,
Is there any begin Time, End Time info in your console?
Statistics table records details like begin Time, End Time which is generated by any job.
Logs table records the messages from Java Exception, tDie and/or tWarn (prerequisite: there must be an error in your job).
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.
Four Stars

Re: Stats & Logs in project settings

Hi,
As per my understanding it is not possible to -
print out logs on both console and files.
Vaibhav
Moderator

Re: Stats & Logs in project settings

Hi,
Actually, the log message from tLogCatcher is shown as schema structure: moment, pid, root_pid, father_pid, project, job, context, priority, type, origin, message and code, such as
2014-04-23 10:39:45;9u5mmP;9u5mmP;9u5mmP;DEMOJOB;forum35780;Default;6;Java Exception;tFixedFlowInput_1;java.lang.NumberFormatException:For input string: "a";1

and the stat log of tStatCatcher is shown as: moment, pid, father_pid, root_pid, system_pid, project, job, job_repository_id, java_version, context, origin, message_type, message, duration.
2014-04-23 10:39:44;9u5mmP;9u5mmP;9u5mmP;33104;DEMOJOB;forum35780;_iUNMcMqPEeOLrLyilW3AFA;0.1;Default;;begin;;
2014-04-23 10:39:45;9u5mmP;9u5mmP;9u5mmP;33104;DEMOJOB;forum35780;_iUNMcMqPEeOLrLyilW3AFA;0.1;Default;;end;failure;496

They can be printed out on both console and file.
In addition, if you want to print out the entire message printed on the console to a text file, you can use a custom component called tRedirectOutput.
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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

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

Tutorial

Introduction to Talend Open Studio for Data Integration.

Watch