Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
nvtd4000
Contributor III
Contributor III

How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.

I am using Talend Studio 7.3.1 and Remote Engine 2.10.6 on DEV server. I have a very simple job and in project settings, i modified log4j2.xml to log information to a seperate files. When i run the job in Talend Studio, I can see information in log files that i specified in log4j2.xml

 

Then I deploy the job to Remote Engine. So far so good. Job is running okay. But there is no log file created (log files that i want to log information to). I goto TalendRemoteEngine/data/dsrunner/exec/microservices/7ad99da8-68c5-438e-a840-a8da8eee9eae/rest1/config and see a brand new log4j2.xml with all default values (rest1 in the path is my job name). It looks like my project settings log4j2.xml only belongs to Studio in local. When we deploy job to Remote Engine, It doesn't go with the job to Remote engine.

 

Do you know how to make that happens: make log4j2.xml in project settings in Studio goes with the job to Remote Engine.

Labels (5)
11 Replies
DBOUAKKAZ
Contributor
Contributor

Hello and thank you for your answer, but I've already tried setting the "job.log.config.embedded" parameter value to true and nothing happened (even the logs on the TMC are still there)

 

Is it possible to just have the snippet log4j api in the tjava that he's referring to?

Anonymous
Not applicable

Hello,

 

I noticed that the ESB tag is used and you are looking under the microservices folder for your Remote Engine. Custom log4j is configured differently than standard jobs. Please review the documentation below and let me know if you are able to get your logging working:

https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-linux/collecting-microservice-logs

 

 

Best Regards,

Chris