<?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: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280167#M55097</link>
    <description>&lt;P&gt;Thanks for the reply and support. I tried yours tJavaRow Code&lt;/P&gt; 
&lt;P&gt;output_row.content = (input_row.content.toString()).replaceAll("\r\n at","@");&lt;/P&gt; 
&lt;P&gt;It is not showing any changes&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;my Input file contains first \n after \r and at. may be for that.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;By yours tJavaCode &amp;nbsp;i am getting same output like below (after executing)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;so after trying with yours i changed to&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;output_row.content = (input_row.content.toString()).replaceAll("\n\tat","@");&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;which is giving&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;now i want to get the above output in a single line.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for that tJavaRow2 i used with&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;output_row.content = (input_row.content.toString()).replaceAll("\n@","@");&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But getting the above output only no changes means not able to remove the \n&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In this I put the exported talend job (Archive file to import) and input file&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Can U Please check if posible&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A title="Talend job" href="https://drive.google.com/open?id=0B-hwVI6s7kodd0dWWFUtVWZHRTg" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/open?id=0B-hwVI6s7kodd0dWWFUtVWZHRTg&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A title="Input file" href="https://drive.google.com/open?id=0B-hwVI6s7kodSlVSMXNKbmNYeDg" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/open?id=0B-hwVI6s7kodSlVSMXNKbmNYeDg&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 07:53:32 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-05-18T07:53:32Z</dc:date>
    <item>
      <title>Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280163#M55093</link>
      <description>&lt;P&gt;My Input log file looks like this&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.743 INFO  (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.u.p.LogUpdateProcessorFactory [UIMATestCollection1]  webapp=/solr path=/update params={}{} 0 66
2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;I am using tFileInputRegex component&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The regex to parse the file is as shown here&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;"^"+
"([0-9]{4}\\-[0-9]{2}\\-[0-9]{2})"+" "+
"([0-9]{2}\\:[0-9]{2}\\:[0-9]{2}\\.[0-9]{3})"+" "+
"(.*?)"+" "+
"\\((.*)\\)"+" "+
"\\[(.*)\\]"+" "+
"(.*)"&lt;/PRE&gt; 
&lt;P&gt;I am getting the partial output as shown below&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;.----------+------------+---------+----------------+--------------------------------------------------------------------------------------------------------+-------------------------------------------.
|                                                                                               tLogRow_1                                                                                               |
|=---------+------------+---------+----------------+--------------------------------------------------------------------------------------------------------+------------------------------------------=|
|Date      |Time        |Log_Level|App_Thread      |Collection                                                                                              |Message                                    |
|=---------+------------+---------+----------------+--------------------------------------------------------------------------------------------------------+------------------------------------------=|
|2017-05-09|10:18:52.743|INFO     |qtp1543727556-22|   x:UIMATestCollection1] o.a.s.u.p.LogUpdateProcessorFactory [UIMATestCollection1                      | webapp=/solr path=/update params={}{} 0 66|
|2017-05-09|10:18:52.745|ERROR    |qtp1543727556-22|   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1|unknown field 'sentence'                   |
'----------+------------+---------+----------------+--------------------------------------------------------------------------------------------------------+-------------------------------------------'&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="tFileInputRegex Configaration" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LuVU.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145339i8125650857B50BFB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LuVU.png" alt="0683p000009LuVU.png" /&gt;&lt;/span&gt;&lt;SPAN class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;tFileInputRegex Configaration&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;But i want &amp;nbsp;tFileInputRegex to ignore the row separator ("\n") &amp;nbsp;when parsing the above input file and need to include the error message in the second line in the last column by ignoring the row separator. Please suggest if any solution.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2017 14:46:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280163#M55093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-15T14:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280164#M55094</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tFileInputRegex read the file line by line, each line will be parsed with regex. As a workaround, read the whole file content as a string, replace all the new line character+at character to a special character, output the string to a temporary file before parsing it with regex. After parsing the file, replace all the special characters with new line character+at if needed, for example:&lt;/P&gt; 
&lt;P&gt;tfileinputRaw--main--tJavaRow1--main--tFileOutputDelimited&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;|&lt;/P&gt; 
&lt;P&gt;onsubjobok&lt;/P&gt; 
&lt;P&gt;&amp;nbsp; &amp;nbsp;|&lt;BR /&gt;tFileInputRegex--main--tJavaRow2--main--tLogRow&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tFileInputRegex: read the new file generated by tfileOuputDelimited.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;on tJavaRow1:&lt;/P&gt; 
&lt;P&gt;output_row.content = (input_row.content.toString()).replaceAll("\r\n at","@");&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;on tJavaRow2:&lt;/P&gt; 
&lt;P&gt;output_row.Date=input_row.Date;&lt;/P&gt; 
&lt;P&gt;//...other columns....&lt;/P&gt; 
&lt;P&gt;output_row.Message=input_row.replaceAll("@","\r\n");&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;</description>
      <pubDate>Wed, 17 May 2017 06:10:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280164#M55094</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T06:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280165#M55095</link>
      <description>&lt;P&gt;Thanks For your Support. Really It helped a lot.&lt;/P&gt; 
&lt;P&gt;I am working on it. But Got stuck with very little Error..&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;tfileinputRaw--main--tJavaRow1--main--tFileOutputD&lt;/SPAN&gt;&lt;SPAN&gt;elimited&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;This is my tJavaRow1&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;output_row.content = (input_row.content.toString()).replaceAll("\n\tat","@");&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Below is my input file&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Output in the tFileOutputDelimiteris&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;if i use tJavaRow2 and put the following command below&amp;nbsp;replaceAll("\n@","@") is not working. I am getting output as above&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tLogRow output is&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)
[statistics] disconnected&lt;/PRE&gt; 
&lt;P&gt;Now I want to remove \n before&amp;nbsp;@ &amp;nbsp; in my output file.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;My expected output is&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence’@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;if I put the same multiline in Eclipse and use&amp;nbsp;&amp;nbsp;val b&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;tring = a.replaceAll("\n@", "@"); in scala output is getting in single line.&lt;/P&gt; 
&lt;P&gt;can u please suggest something on this.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks In Advance....&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 13:29:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280165#M55095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-17T13:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280166#M55096</link>
      <description>Hi 
&lt;BR /&gt;This is my tJavaRow1:
&lt;BR /&gt;output_row.content = (input_row.content.toString()).replaceAll("\r\n at","@");
&lt;BR /&gt;It generates only line in the output file, it seems you don't use the same code on tJavaRow1.
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 18 May 2017 03:32:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280166#M55096</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T03:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280167#M55097</link>
      <description>&lt;P&gt;Thanks for the reply and support. I tried yours tJavaRow Code&lt;/P&gt; 
&lt;P&gt;output_row.content = (input_row.content.toString()).replaceAll("\r\n at","@");&lt;/P&gt; 
&lt;P&gt;It is not showing any changes&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;my Input file contains first \n after \r and at. may be for that.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;By yours tJavaCode &amp;nbsp;i am getting same output like below (after executing)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
	at org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
	at org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
	at org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
	at org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
	at org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;so after trying with yours i changed to&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;output_row.content = (input_row.content.toString()).replaceAll("\n\tat","@");&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;which is giving&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;now i want to get the above output in a single line.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;for that tJavaRow2 i used with&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;output_row.content = (input_row.content.toString()).replaceAll("\n@","@");&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;But getting the above output only no changes means not able to remove the \n&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;2017-05-09 10:18:52.745 ERROR (qtp1543727556-22) [   x:UIMATestCollection1] o.a.s.h.RequestHandlerBase org.apache.solr.common.SolrException: ERROR: [doc=1] unknown field 'sentence'
@ org.apache.solr.update.DocumentBuilder.toDocument(DocumentBuilder.java:183)
@ org.apache.solr.update.AddUpdateCommand.getLuceneDocument(AddUpdateCommand.java:82)
@ org.apache.solr.update.DirectUpdateHandler2.doNormalUpdate(DirectUpdateHandler2.java:277)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc0(DirectUpdateHandler2.java:211)
@ org.apache.solr.update.DirectUpdateHandler2.addDoc(DirectUpdateHandler2.java:166)
@ org.apache.solr.update.processor.RunUpdateProcessor.processAdd(RunUpdateProcessorFactory.java:67)&lt;/PRE&gt; 
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;In this I put the exported talend job (Archive file to import) and input file&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Can U Please check if posible&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;A title="Talend job" href="https://drive.google.com/open?id=0B-hwVI6s7kodd0dWWFUtVWZHRTg" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/open?id=0B-hwVI6s7kodd0dWWFUtVWZHRTg&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;A title="Input file" href="https://drive.google.com/open?id=0B-hwVI6s7kodSlVSMXNKbmNYeDg" target="_self" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/open?id=0B-hwVI6s7kodSlVSMXNKbmNYeDg&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 07:53:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280167#M55097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-18T07:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280168#M55098</link>
      <description>&lt;P&gt;Try to change "\n" by "\\n" as "\" is a special&amp;nbsp;character for regex.&lt;/P&gt;&lt;PRE&gt;output_row.content = (input_row.content.toString()).replaceAll("\\n@","@")&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 May 2017 09:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280168#M55098</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-05-18T09:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need to parse the log file with tFileInputRegex by ignoring the new line character as row separator</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280169#M55099</link>
      <description>&lt;P&gt;Thanks a &amp;nbsp;lot it Worked for me.....&lt;/P&gt;&lt;P&gt;Thanks for Support....&lt;/P&gt;</description>
      <pubDate>Tue, 23 May 2017 11:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-to-parse-the-log-file-with-tFileInputRegex-by-ignoring-the/m-p/2280169#M55099</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-05-23T11:45:09Z</dc:date>
    </item>
  </channel>
</rss>

