<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine. in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365071#M128717</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems the zip file is corrupted. We will check it with the article author to see if there is any valid source for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to that, you can enable log4j and log4j2 logging configured in Talend Studio for tasks running on Remote Engines.&lt;/P&gt;&lt;P&gt;Here is online user guide about: &lt;A href="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" alt="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" target="_blank"&gt;TalendHelpCenter: Enabling custom logging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Sep 2021 07:24:01 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-09-08T07:24:01Z</dc:date>
    <item>
      <title>How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365064#M128710</link>
      <description>&lt;P&gt;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&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to make that happens: make log4j2.xml in project settings in Studio goes with the job to Remote Engine.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 23:46:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365064#M128710</guid>
      <dc:creator>nvtd4000</dc:creator>
      <dc:date>2024-11-15T23:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365065#M128711</link>
      <description>&lt;P&gt;Thanks for the reply. But you haven't answer my question: How to do that?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 03:25:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365065#M128711</guid>
      <dc:creator>nvtd4000</dc:creator>
      <dc:date>2021-09-07T03:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365066#M128712</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please have a look at this article about: h&lt;A href="https://community.talend.com/s/article/Do-you-want-to-write-the-logs-in-a-specific-way-in-TMC-when-run-against-the-Remote-Engine-j5JHp" alt="https://community.talend.com/s/article/Do-you-want-to-write-the-logs-in-a-specific-way-in-TMC-when-run-against-the-Remote-Engine-j5JHp" target="_blank"&gt;ttps://community.talend.com/s/article/Do-you-want-to-write-the-logs-in-a-specific-way-in-TMC-when-run-against-the-Remote-Engine-j5JHp&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Let us know if it is what you are looking for.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 09:25:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365066#M128712</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-07T09:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365067#M128713</link>
      <description>&lt;P&gt;The Link youshare  is invalid. Could you please give me the link again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 15:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365067#M128713</guid>
      <dc:creator>nvtd4000</dc:creator>
      <dc:date>2021-09-07T15:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365068#M128714</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It is not invalid. This is an internal KB article.&lt;/P&gt;&lt;P&gt;I pasted the content here and uploaded related zip files.&lt;/P&gt;&lt;P&gt;Problem Description&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have a requirement to&amp;nbsp;compose&amp;nbsp;the&amp;nbsp;log, in so and so way in Studio? Do you want to have the same setup, that it writes the log to the Remote Engine also the same way when executed from the TMC?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Attached job test_test.zip used in our testing.&lt;/P&gt;&lt;P&gt;2) Attached log4j2_modified.xml&lt;/P&gt;&lt;P&gt;3) In the job tJava having below snippet log4j api .&lt;/P&gt;&lt;P&gt;4) JVM arguments having -Dlog4j.configurationFile= file:///C:/tmp/log4j2_modified.xml (file:///C:/tmp/log4j2.xml)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When deployed and run from TMC we can get the desired log in above log4j.configurationFile mentioned location and output is as below,&lt;/P&gt;&lt;P&gt;Starting job Copy_of_test_test at 16:20 30/04/2020.&lt;/P&gt;&lt;P&gt;[INFO ] 2020-04-30 16:20:49,643 Copy_of_test_test.runJobInTOS() - TalendJob: 'Copy_of_test_test' - Start.&lt;/P&gt;&lt;P&gt;[statistics] connecting to socket on port 3837&lt;/P&gt;&lt;P&gt;[statistics] connected&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:49,691 Copy_of_test_test.tDBInput_1Process() - tLogRow_1 - Start to work.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:49,692 Copy_of_test_test.limitLog4jByte() - tLogRow_1 - Parameters:BASIC_MODE = true | TABLE_PRINT = false | VERTICAL = false | FIELDSEPARATOR = "|" | PRINT_HEADER = false | PRINT_UNIQUE_NAME = false | PRINT_COLNAMES = false | USE_FIXED_LENGTH = false | PRINT_CONTENT_WITH_LOG4J = true | &lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:49,693 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Start to work.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:49,695 Copy_of_test_test.limitLog4jByte() - tDBInput_1 - Parameters:DB_VERSION = MYSQL_5 | USE_EXISTING_CONNECTION = false | HOST = "localhost" | PORT = "3306" | DBNAME = "log_test" | USER = "root" | PASS = enc:... | TABLE = "backup" | QUERYSTORE = "" | QUERY = "SELECT * FROM `backup`" | SPECIFY_DATASOURCE_ALIAS = false | PROPERTIES = "noDatetimeStringSync=true" | ENABLE_STREAM = false | TRIM_ALL_COLUMN = false | TRIM_COLUMN = [{TRIM=false, SCHEMA_COLUMN=newColumn}] | UNIFIED_COMPONENTS = tMysqlInput | &lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:51,634 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Driver ClassName: com.mysql.jdbc.Driver.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:51,635 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Connection attempt to 'jdbc:mysql://localhost:3306/log_test?noDatetimeStringSync=true' with the username 'root'.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,017 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Connection to 'jdbc:mysql://localhost:3306/log_test?noDatetimeStringSync=true' has succeeded.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,018 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Executing the query: 'SELECT *&lt;/P&gt;&lt;P&gt;FROM `backup`'.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,027 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Retrieving records from the database.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,028 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Closing the connection to the database.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,029 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Connection to the database closed.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,030 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Retrieved records count: 0 .&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,030 Copy_of_test_test.tDBInput_1Process() - tDBInput_1 - Done.&lt;/P&gt;&lt;P&gt;[INFO ] 2020-04-30 16:20:52,030 Copy_of_test_test.tDBInput_1Process() - tLogRow_1 - Printed row count: 0.&lt;/P&gt;&lt;P&gt;[DEBUG] 2020-04-30 16:20:52,030 Copy_of_test_test.tDBInput_1Process() - tLogRow_1 - Done.&lt;/P&gt;&lt;P&gt;[statistics] disconnected&lt;/P&gt;&lt;P&gt;[INFO ] 2020-04-30 16:20:52,032 Copy_of_test_test.main() - TalendJob: 'Copy_of_test_test' - Done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Job Copy_of_test_test ended at 16:20 30/04/2020. [Exit code  = 0]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know if it helps.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 02:47:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365068#M128714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-08T02:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365069#M128715</link>
      <description />
      <pubDate>Wed, 08 Sep 2021 02:47:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365069#M128715</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-08T02:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365070#M128716</link>
      <description>&lt;P&gt;Thanks. The log4j.xml is a html file:&lt;/P&gt;&lt;P&gt;&amp;lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;head&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;title&amp;gt;Submit Form&amp;lt;/title&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;body onload="javascript:document.forms[0].submit()"&amp;gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test_test.zip is correupted and I am not able to import it to talend studio.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 04:17:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365070#M128716</guid>
      <dc:creator>nvtd4000</dc:creator>
      <dc:date>2021-09-08T04:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365071#M128717</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;It seems the zip file is corrupted. We will check it with the article author to see if there is any valid source for it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition to that, you can enable log4j and log4j2 logging configured in Talend Studio for tasks running on Remote Engines.&lt;/P&gt;&lt;P&gt;Here is online user guide about: &lt;A href="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" alt="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" target="_blank"&gt;TalendHelpCenter: Enabling custom logging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 07:24:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365071#M128717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-08T07:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365072#M128718</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm encountering exactly the same issue. Did you find a solution?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:37:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365072#M128718</guid>
      <dc:creator>DBOUAKKAZ</dc:creator>
      <dc:date>2021-09-13T12:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365073#M128719</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;So far, we are not able to find this test_test file.&lt;/P&gt;&lt;P&gt;You can enable log4j and log4j2 logging configured in Talend Studio for tasks running on Remote Engines.&lt;/P&gt;&lt;P&gt;Here is online user guide about: &lt;A href="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" alt="https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-windows/enabling-custom-logging" target="_blank"&gt;TalendHelpCenter: Enabling custom logging&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 02:59:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365073#M128719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-09-14T02:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365074#M128720</link>
      <description>&lt;P&gt;Hello and thank you for your answer, but I've already tried setting the "&lt;B&gt;job.log.config.embedded" &lt;/B&gt;parameter value to true and nothing happened (even the logs on the&amp;nbsp;&lt;B&gt;&lt;I&gt;TMC&lt;/I&gt;&lt;/B&gt;&amp;nbsp;are still there)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to just have the snippet&amp;nbsp;log4j&amp;nbsp;api in the tjava that he's referring to?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 08:53:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365074#M128720</guid>
      <dc:creator>DBOUAKKAZ</dc:creator>
      <dc:date>2021-09-14T08:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to make log4j2.xml in project settings in Studio goes with the job to Remote Engine.</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365075#M128721</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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:&lt;/P&gt;&lt;P&gt;https://help.talend.com/r/en-US/Cloud/remote-engine-user-guide-linux/collecting-microservice-logs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 21:14:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-make-log4j2-xml-in-project-settings-in-Studio-goes-with/m-p/2365075#M128721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-12-27T21:14:23Z</dc:date>
    </item>
  </channel>
</rss>

