<?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: Read log file and get specific information in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371363#M134314</link>
    <description>&lt;P&gt;I think&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLomAAG"&gt;@SachinD&lt;/A&gt;&amp;nbsp;is asking about how to read in&amp;nbsp;a file with the contents that they've provided, and extract the section they're interested in as individual rows in a flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that's the case, and if the file always has the same number of lines before and after the actual data lines, then the answer would be to use&amp;nbsp;a tFileInputDelimited,&amp;nbsp;specifying (for the example provided) a header of 6 lines, a footer of 3, and a field separator of " | " (space-pipe-space) or maybe just "|" and trim all columns depending on whether the expected data should have leading/trailing spaces.&lt;/P&gt;</description>
    <pubDate>Thu, 05 Oct 2017 16:45:19 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-05T16:45:19Z</dc:date>
    <item>
      <title>Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371361#M134312</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a text file in below format (unstructured, but has one pipe separated table in middle of file).&lt;/P&gt;&lt;P&gt;=============Text FIle======================&lt;/P&gt;&lt;P&gt;Starting the session...&lt;BR /&gt;Session started.&lt;BR /&gt;Active session: [1] sfdsdf$sdfsdf@ftp-sdfsdf.dsfsf.com&lt;BR /&gt;/Shared/ETL_Testing/Incoming&lt;BR /&gt;C:\ddd\ssss\DEV\DATA\IN&lt;BR /&gt;&amp;lt;Downloading_files&amp;gt;&lt;BR /&gt;File_1.csv | 650 B | 0.8 KB/s | binary | 100%&lt;BR /&gt;File_2.xlsx | 887 B | 0.7 KB/s | binary | 100%&lt;BR /&gt;File_3.csv | 888 B | 0.7 KB/s | binary | 100%&lt;BR /&gt;File_4.csv | 44 B | 0.5 KB/s | binary | 100%&lt;BR /&gt;&amp;lt;Downloading_files&amp;gt;&lt;BR /&gt;Session 'sdsd$sdsd@ftp-sdsd.sdsd.com' closed.&lt;BR /&gt;No session.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;================END============================&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From above file i just want to read below table and store it somewhere, for now we can display in tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File_1.csv | 650 B | 0.8 KB/s | binary | 100%&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File_2.xlsx | 887 B | 0.7 KB/s | binary | 100%&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File_3.csv | 888 B | 0.7 KB/s | binary | 100%&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;File_4.csv | 44 B | 0.5 KB/s | binary | 100%&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:17:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371361#M134312</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2017-10-05T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371362#M134313</link>
      <description>Hi,&lt;BR /&gt;So you're arrived. Just have to replace tLogRow by a tFileOutputDelimited component with "|" as a field separator.&lt;BR /&gt;No?</description>
      <pubDate>Thu, 05 Oct 2017 16:21:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371362#M134313</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-10-05T16:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371363#M134314</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LLomAAG"&gt;@SachinD&lt;/A&gt;&amp;nbsp;is asking about how to read in&amp;nbsp;a file with the contents that they've provided, and extract the section they're interested in as individual rows in a flow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If that's the case, and if the file always has the same number of lines before and after the actual data lines, then the answer would be to use&amp;nbsp;a tFileInputDelimited,&amp;nbsp;specifying (for the example provided) a header of 6 lines, a footer of 3, and a field separator of " | " (space-pipe-space) or maybe just "|" and trim all columns depending on whether the expected data should have leading/trailing spaces.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Oct 2017 16:45:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371363#M134314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-05T16:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371364#M134315</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKj7AAG"&gt;@TRF&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMPMAA4"&gt;@ciw1973&lt;/A&gt;&amp;nbsp;for taking time&amp;nbsp;and looking into my issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Let me explain my current scenario once again.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Mine unstructured log file looks like below, which can have&amp;nbsp;N no of rows in top (HDR) and Bottom (&lt;SPAN&gt;footer&lt;/SPAN&gt;), it can vary in each run.&lt;/P&gt; 
&lt;P&gt;and I am interested in only pipe delimited Table which come in between below Tag's , and neglect other rows.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;lt;Downloading_files&amp;gt;&amp;nbsp; &amp;nbsp;&amp;lt;Downloading_files&amp;gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have a control on this tags, and I have intentionally Printed this tags in log file so that we can identify from where this Table starts and Ends. and i need this table to be stored some where.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;FILE&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;=============Text FIle======================&lt;/P&gt; 
&lt;P&gt;Starting the session...&lt;BR /&gt;Session started.&lt;BR /&gt;Active session: [1] sfdsdf$sdfsdf@ftp-sdfsdf.dsfsf.com&lt;BR /&gt;/Shared/ETL_Testing/Incoming&lt;BR /&gt;C:\ddd\ssss\DEV\DATA\IN&lt;BR /&gt;&amp;lt;Downloading_files&amp;gt;&lt;BR /&gt;File_1.csv | 650 B | 0.8 KB/s | binary | 100%&lt;BR /&gt;File_2.xlsx | 887 B | 0.7 KB/s | binary | 100%&lt;BR /&gt;File_3.csv | 888 B | 0.7 KB/s | binary | 100%&lt;BR /&gt;File_4.csv | 44 B | 0.5 KB/s | binary | 100%&lt;BR /&gt;&amp;lt;Downloading_files&amp;gt;&lt;BR /&gt;Session 'sdsd$sdsd@ftp-sdsd.sdsd.com' closed.&lt;BR /&gt;No session.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;================END============================&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I apologize, if i have confused you..&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Sachin D.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:19:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371364#M134315</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2017-10-06T10:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371365#M134316</link>
      <description>&lt;P&gt;In which case, you'd still use the tFileInputDelimited component, specify a Field Separator of " | " (space-pipe-space), add the five fields to the schema,&amp;nbsp;tick the "Check each row structure against schema" option in Advanced settings, and your "Main" output will just be&amp;nbsp;the lines you want.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;To avoid seeing warnings in the output for lines which don't match, just direct the "Reject" output from the tFileInputDelimeted component somewhere.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you specifically want to parse just what's between the tags you've mentioned, then there's a bit more work involved, but this simple approach should&amp;nbsp;be sufficient in most cases.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 10:36:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371365#M134316</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-06T10:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Read log file and get specific information</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371366#M134317</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LMPMAA4"&gt;@ciw1973&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perfect!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Sachin D.&lt;/P&gt;
&lt;P&gt;Lets Share and Learn!&lt;/P&gt;</description>
      <pubDate>Fri, 06 Oct 2017 12:12:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Read-log-file-and-get-specific-information/m-p/2371366#M134317</guid>
      <dc:creator>SachinD</dc:creator>
      <dc:date>2017-10-06T12:12:44Z</dc:date>
    </item>
  </channel>
</rss>

