How to Log everything my job does?

One Star

How to Log everything my job does?

Hi,
I want to log everything my talend job does.
When running my job within talend I can see on the gui where the flow currently is, what its doing and it shows whether a flow was true, false, ok or error.
When deploying the executables of my job to a server and running it automated there I do not geht this information any more.
Of course I am able to do logs at several points but I dont want to create a log componenten after each single working-component, thats too much overhead.
Of course I could catch errors, but in my case the problem is, the process does not end its only reproducable on deployment not local with my open studio.
Thats why I want to catch as much information about all components and subjobs as possible.
We often get the case to have a look at any unknown behavior and it were much more comfortable to have A big log to look after.
Is there a way to get a predefined all logging-log like I am looking for?
Any suggestions else for easily creating something like this? (it mus be then a generic solution, not like creat a log componentent after every single working-component).
Thanks in advance.
One Star

Re: How to Log everything my job does?

In every component Advanced setting select tStatCatcher Statistic option and use tStatCatcher component at the last
Please look attached screenshot for reference
 
Four Stars

Re: How to Log everything my job does?

Hi,
Talend provides three types of logs to be catched using different components
- Statistics
- Error/warning
- Meter
You can enable these logging at project level or at job level. All the logs could be redirected to the file or database.
Even after doing these logging, you can't catch complete trace information available on console. In order to catch this information, you will have to use different technique to redirect consol trace information to flat file or database.
Vaibhav
Moderator

Re: How to Log everything my job does?

Hi,
And please refer to related documents:TalendHelpCenterSmiley Frustratedtats & LogsTalendHelpCenter:Logs & Errors components.
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 Log everything my job does?

Hey,
unfortunately the talend documentation seem to expect several prio knowledge.
In your linked documentation it says: "Select the Use Statistics, Use Logs and Use Volumetrics check boxes where relevant, to select the type of log information you want to set the path for."
Well I do not know which checkbox now is relevant and what effect it then will have.
Because of this I simple tested it: I hit the Checkbox for statistics, but console log doesnt change. Even the checkbox to use component-statistics wont make any change, no additionally logs.
Only when hitting the checkbox for component-statistics at every single component (in combination with component-statistic checkbox at job-level) will creat logs which indicates start and end of the specific component.
Well so I dont know what non-components-statistic-checkbox on job-level does, but it were great if it would just do what hitting every single components-checkbox does.
I could imagine that the non-components-statistic-checkbox on job-level would just catch all statistics caught by tStatCatcherbut if it were like this I would expect such a hint in documention on TalendHelpCenterSmiley Frustratedtats & Logs.
I now will make the setting at every component but this is not comfortable ob many and large mappings. Is there may a way to batch-activate thos checkboxes for all components?
Thanks for replies.
Moderator

Re: How to Log everything my job does?

Hi Kaspatoo,
You can use Job Setting Stats & Logs from job review. This option is working on current job.
See my screenshot.
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 Log everything my job does?

Hey, well thanks but ur last post delivers the same information as your post before.
So that my worries of my last post are still there.
Moderator

Re: How to Log everything my job does?

Hi,
Projecting setting Stats & Logs is working on my side without checking out any component-statistics at every single component.
Could you please indicate the build version you are using?
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.