<?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: Logging in kibana dashboard in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228825#M19971</link>
    <description>You can redirect your logs in the Talend job to a file using a tJava at the start of the job. In the tJava, you place the following code - or something like it
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;java.io.File myLogFile = new java.io.File("C:/workbench/myTalendJobLogFile.log");&lt;BR /&gt;java.io.PrintStream ps = new java.io.PrintStream(new java.io.FileOutputStream(myLogFile));&lt;BR /&gt;System.setErr(ps);&lt;BR /&gt;System.setOut(ps);&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;You can make the file name dynamic for all your jobs per project, and time stamp them to segregate logging over time:&amp;nbsp;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;java.io.File&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;myLogFile&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;&amp;nbsp;=&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;&amp;nbsp;java.io.File("&lt;/FONT&gt;&lt;/FONT&gt;C:/workbench/" +&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;projectName +”_”+ jobName + "_" + TalendDate.getDate(“CCYYMMDDhhmmss”)+”.log”)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT face="Source Sans Pro, sans-serif"&gt;&lt;FONT size="2"&gt;Finally, you'd point Kibana to the directory where you're capturing your logs - C:workbench in this example. Kibana would consume those logs and populate its dashboard...&lt;/FONT&gt;&lt;/FONT&gt;</description>
    <pubDate>Tue, 04 Nov 2014 14:50:21 GMT</pubDate>
    <dc:creator>willm1</dc:creator>
    <dc:date>2014-11-04T14:50:21Z</dc:date>
    <item>
      <title>Logging in kibana dashboard</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228824#M19970</link>
      <description>Hi
&lt;BR /&gt;I have some jobs in which I am printing some usefull information through system.out.println.
&lt;BR /&gt;I have created one task in TAC to execute my job.
&lt;BR /&gt;I wanted to log those messages in Kibana dashboard &amp;nbsp;as message.
&lt;BR /&gt;Need suggestion How I can achive it.&amp;nbsp;
&lt;BR /&gt;Thanks
&lt;BR /&gt;Ashish</description>
      <pubDate>Tue, 04 Nov 2014 06:28:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228824#M19970</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-04T06:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Logging in kibana dashboard</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228825#M19971</link>
      <description>You can redirect your logs in the Talend job to a file using a tJava at the start of the job. In the tJava, you place the following code - or something like it
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;java.io.File myLogFile = new java.io.File("C:/workbench/myTalendJobLogFile.log");&lt;BR /&gt;java.io.PrintStream ps = new java.io.PrintStream(new java.io.FileOutputStream(myLogFile));&lt;BR /&gt;System.setErr(ps);&lt;BR /&gt;System.setOut(ps);&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;You can make the file name dynamic for all your jobs per project, and time stamp them to segregate logging over time:&amp;nbsp;
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;java.io.File&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;myLogFile&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;&amp;nbsp;=&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;new&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;&amp;nbsp;java.io.File("&lt;/FONT&gt;&lt;/FONT&gt;C:/workbench/" +&amp;nbsp;&lt;FONT size="2"&gt;&lt;FONT face="'Source Sans Pro', sans-serif"&gt;projectName +”_”+ jobName + "_" + TalendDate.getDate(“CCYYMMDDhhmmss”)+”.log”)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;
&lt;FONT face="Source Sans Pro, sans-serif"&gt;&lt;FONT size="2"&gt;Finally, you'd point Kibana to the directory where you're capturing your logs - C:workbench in this example. Kibana would consume those logs and populate its dashboard...&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Tue, 04 Nov 2014 14:50:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228825#M19971</guid>
      <dc:creator>willm1</dc:creator>
      <dc:date>2014-11-04T14:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logging in kibana dashboard</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228826#M19972</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Thanks willm for the reply and suggestion currently exactly the same &amp;nbsp;way I am doing. 
&lt;BR /&gt;But As per my requirement we should not make any changes in job level. 
&lt;BR /&gt;As job server used to execute our task so those message it would be printing somewhere in console but I am not getting where it is printing so that I can directly defined those configuration in logstash_talend.cfg file and take it from console directly. 
&lt;BR /&gt;Sorry My requirement is totaly crazy.. 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Ashish</description>
      <pubDate>Wed, 05 Nov 2014 07:01:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Logging-in-kibana-dashboard/m-p/2228826#M19972</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-05T07:01:02Z</dc:date>
    </item>
  </channel>
</rss>

