Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Lorenzo_Cambria
Contributor

log4j integration on remote engine

Hello everyone

I'm just having troubles with my logs. I have built my own log4j structure for my logs and in talend Studio it works very well, but the results when I develop my job on the Remote Engine is totally different. I think maybe my log4j structure is not loaded on the Talend Managment Console (it's just a guess) althoug I have enabled log4j at project level.

I attach a file with the result of both log (Studio ed Remote Engine).

Hope anyone can help me.

 

Thank you ! 

2 Replies
Anonymous
Not applicable

Hello everyone

 

I have created the job in talend studio and updated the log4j configuration to redirect logs to file.

 

It works fine in the Studio but while running in the remote engine it takes a copy of logs(old log generated on the studio) to TMC. The  new logs were not written to the file 

 

I have also checked the following link  https://community.talend.com/t5/Design-and-Development/Studio-How-to-log-Job-output-to-a-file-as-wel...  but this one not working in the management console. The other approaches look like manual "do we need to create the log4j stuff again for getting the logs into a file?". This will be tedious and we don't want to reinvent the logic that is already in place.

 

I hope you guys understand the problem that the Talend is creating where the existing custom coding solved this problem.

 

I am not sure what makes Talend wait till this much time for writing the log into the file.

 

Thank you!

Anonymous
Not applicable

Hello,

You can enable log4j and log4j2 logging configured in Talend Studio for tasks running on Remote Engines.

Here is online user guide about: TalendHelpCenter: Enabling custom logging

Best regards

Sabrina