<?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 Empty log when running Talend in batch mode (Linux) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255178#M37965</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have built a talend job and deployed it on a linux machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a .sh script has been generated for me and w&lt;/SPAN&gt;&lt;SPAN&gt;hen i run the script, the job does what's supposed to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have no log file, how to generate a log file for the job execution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added&amp;nbsp;&amp;nbsp;&amp;gt; ./log_talend.log at the end of the command line, but the file log_talend.log is empty after running the job.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I've also activated all the log options in the job (see screenshot), but still the log file is empty.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Log settings.png" style="width: 936px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZwD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137082i5B6FF45A897F735A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZwD.png" alt="0683p000009MZwD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 15:58:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-07-09T15:58:09Z</dc:date>
    <item>
      <title>Empty log when running Talend in batch mode (Linux)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255178#M37965</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have built a talend job and deployed it on a linux machine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a .sh script has been generated for me and w&lt;/SPAN&gt;&lt;SPAN&gt;hen i run the script, the job does what's supposed to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But I have no log file, how to generate a log file for the job execution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I added&amp;nbsp;&amp;nbsp;&amp;gt; ./log_talend.log at the end of the command line, but the file log_talend.log is empty after running the job.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;I've also activated all the log options in the job (see screenshot), but still the log file is empty.&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Roland&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Log settings.png" style="width: 936px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZwD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137082i5B6FF45A897F735A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZwD.png" alt="0683p000009MZwD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:58:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255178#M37965</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-09T15:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Empty log when running Talend in batch mode (Linux)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255179#M37966</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;You need to capture the logs &amp;amp; stats using components (such as tLogCatcher, tStatCapture) in the job or activate the logs &amp;amp; stats in the job settings views, and output the logs&amp;amp;stats to a file.&lt;/P&gt;&lt;P&gt;Can you confirm the File path is set to a directory path on the machine where the job is executed? &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 09:04:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255179#M37966</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-14T09:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Empty log when running Talend in batch mode (Linux)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255180#M37967</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can add this in a tJava component on a pre-job (as first componenet)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.io.File file = new java.io.File(jobName + "_" + TalendDate.formatDate("yyyy-MM-dd", TalendDate.getCurrentDate())+"_verbose");&lt;/P&gt;&lt;P&gt;java.io.PrintStream ps = new java.io.PrintStream(new java.io.FileOutputStream(file));&lt;/P&gt;&lt;P&gt;System.setOut(ps);&lt;/P&gt;&lt;P&gt;System.setErr(ps);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will redirect all your logs console into file. You must enable the log to the console in project proprities&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 11:06:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Empty-log-when-running-Talend-in-batch-mode-Linux/m-p/2255180#M37967</guid>
      <dc:creator>JohnRMK</dc:creator>
      <dc:date>2020-07-15T11:06:48Z</dc:date>
    </item>
  </channel>
</rss>

