<?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>question Re: Nifi TailFile Processor does not detect vast insertion into a file in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182494#M144660</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/74186/msoury.html" nodeid="74186"&gt;@Mohammad
 Soori
&lt;/A&gt;&lt;P&gt;Just to make sure I understand correctly...&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;The TailFile is producing only 20 output FlowFiles; however, all 500 records are included within those 20 FlowFiles.  correct?&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;With a Run Schedule of 0 secs, the processor will be scheduled toe execute and then scheduled to execute again immediately following completion of last execution.  During its execution, it will consume all new lines seen since last execution.  There is no configuration option that will force this processor to output a separate FlowFile for each line read from the file being tailed.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;You could however feed the output FlowFiles to a splitText processor to split each FlowFile in to a separate FlowFile per line.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;When an "Answer" addresses/solves your question, please select "Accept" beneath that answer.  This encourages user participation in this forum.&lt;/P&gt;</description>
    <pubDate>Wed, 11 Jul 2018 21:29:24 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2018-07-11T21:29:24Z</dc:date>
    <item>
      <title>Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182493#M144659</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80454-nifi-3.png" style="width: 759px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19151iABBD28DE33B3C59B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80454-nifi-3.png" alt="80454-nifi-3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80455-capture.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19152iEA3D9DC06F07FDEF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80455-capture.png" alt="80455-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We have setup Nifi site-to-site to transfer Snort logs (alert.csv) to a remote Nifi server, using Apache Metron (Hortonworks Cybersecurity). Once Snort is running, it produces a vast amount of logs in CSV format, more than 500 records only in 5 seconds for instance. The problem is that Nifi Tailfile cannot detect and separate all 500 records, it may detect around 20 changes (totally include 500 records). &lt;/P&gt;&lt;P&gt;Current configurations are attached to this message.How can we configure the Tailfile processor to detect every single line as a new packet (event)? Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="80453-nifi-2.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19153iA9B7C0AA7AAA266A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="80453-nifi-2.png" alt="80453-nifi-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:53:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182493#M144659</guid>
      <dc:creator>m_soury</dc:creator>
      <dc:date>2019-08-18T08:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182494#M144660</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/74186/msoury.html" nodeid="74186"&gt;@Mohammad
 Soori
&lt;/A&gt;&lt;P&gt;Just to make sure I understand correctly...&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;The TailFile is producing only 20 output FlowFiles; however, all 500 records are included within those 20 FlowFiles.  correct?&lt;BR /&gt;-&lt;/P&gt;&lt;P&gt;With a Run Schedule of 0 secs, the processor will be scheduled toe execute and then scheduled to execute again immediately following completion of last execution.  During its execution, it will consume all new lines seen since last execution.  There is no configuration option that will force this processor to output a separate FlowFile for each line read from the file being tailed.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;You could however feed the output FlowFiles to a splitText processor to split each FlowFile in to a separate FlowFile per line.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;When an "Answer" addresses/solves your question, please select "Accept" beneath that answer.  This encourages user participation in this forum.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jul 2018 21:29:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182494#M144660</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-11T21:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182495#M144661</link>
      <description>&lt;P&gt;Dear &lt;A rel="user" href="https://community.cloudera.com/users/525/mclarke.html" nodeid="525" target="_blank"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your great help. Actually, based on your help I used a SplitText after a TailFile processor, which ingest Squid logs (based on Apache Metron), with the following properties:&lt;/P&gt;&lt;P&gt;Line Split Count: 1&lt;/P&gt;&lt;P&gt;Maximum Fragment Size: (No value set)&lt;/P&gt;&lt;P&gt;Header Line Count: 0&lt;/P&gt;&lt;P&gt;Header Line Marker Characters: (No value set)&lt;/P&gt;&lt;P&gt;Remove Trailing Newlines: false&lt;/P&gt;&lt;P&gt;I checked all types of the relationship (including: failure / original / splits) in the "Connection Details" between SplitText and PutKafka processors.&lt;/P&gt;&lt;P&gt;The problem is the SplitText duplicates the input data. Please find the attachment which is completely obvious. Actually, there is an extra newline character at the end of each received FlowFile (if I increase the insertion rate, the extra newline only would be added after a bunch of lines in a FlowFile).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="83418-problem1.png" style="width: 3840px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19150i50823661A65F6E12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="83418-problem1.png" alt="83418-problem1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any advice?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182495#M144661</guid>
      <dc:creator>m_soury</dc:creator>
      <dc:date>2019-08-18T08:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182496#M144662</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/74186/msoury.html" nodeid="74186"&gt;@Mohammad
 Soori
&lt;/A&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;*** Forum tip:  Please try to avoid responding to an Answer by starting a new answer.  Instead use the "add comment" tp respond to en existing answer.  There is no guaranteed order to different answers which can make following a response thread difficult especially when multiple people are trying to assist you.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Based on what you are showing me, your flow is working as designed.&lt;/P&gt;&lt;P&gt;Since you have added all three outgoing relationships to the outgoing connection of the splitText processor, you would end up with duplication.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;the "original" relationship is basically a passthrough for the incoming Flowfiles to splitText.  This relationship is often auto-terminated unless you need to keep the original un-split flowfiles for something else in your flow.  IN that case the original relationship would be routed within its own outbound connection and not in the same connection as "splits".&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;The fact that splitText is not really splitting your source Flowfiles  (4 in and 4 out) tells me that the 4 source Flowfiles created do not contain any line returns from which to split that text.  So the question is what does the output of one of these ~115 byte FlowFiles look like?&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;I also do not recommend routing the "failure" relationship along with "success" or "original" in the same connection. Should a failure occur, how would you easily separate what failed and what was successful.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 20:20:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182496#M144662</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-07-25T20:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182497#M144663</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/74186/msoury.html" nodeid="74186" target="_blank"&gt;@Mohammad
 Soori
&lt;/A&gt;&lt;P&gt;Connect only &lt;STRONG&gt;splits relationship&lt;/STRONG&gt; from &lt;STRONG&gt;Split Text to Publish kafka processor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Auto terminate&lt;/STRONG&gt; &lt;STRONG&gt;original relationship&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Go to configure --&amp;gt; settings tab--&amp;gt; check the original box&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="84401-autoterminate.png" style="width: 692px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19148i298F8E5A58592639/image-size/medium?v=v2&amp;amp;px=400" role="button" title="84401-autoterminate.png" alt="84401-autoterminate.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and regarding &lt;STRONG&gt;failure relationship&lt;/STRONG&gt; connect to putEmail processor to get notified if some thing went wrong.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Flow:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="84402-flow.png" style="width: 1354px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19149i62F991FF061BFD1C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="84402-flow.png" alt="84402-flow.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:52:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182497#M144663</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T08:52:37Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182498#M144664</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929" target="_blank"&gt;@Shu&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/525/mclarke.html" nodeid="525" target="_blank"&gt;@Matt Clarke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I transferred alert.csv (snort alert) to Metron by NiFi site-to-site, But the number of topology state in storm is not equal to the number snort_index in Elasticsearch. for example:&lt;/P&gt;&lt;P&gt;the number of row in alert.csv is 140 and the number of topology state is 140, But I see 6 docs in Elasticsearch!&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85525-storm.png" style="width: 1304px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19146i1A9D3F3898C083EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85525-storm.png" alt="85525-storm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="85529-elastic.png" style="width: 267px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19147iADB8E29FDEF07DCF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="85529-elastic.png" alt="85529-elastic.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How can I solve it?&lt;/P&gt;&lt;P&gt;thanks for answering my question.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:52:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182498#M144664</guid>
      <dc:creator>moj_72</dc:creator>
      <dc:date>2019-08-18T08:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182499#M144665</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/75226/moj-72.html" nodeid="75226"&gt;@mojgan ghasemi&lt;/A&gt; &lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;I recommend starting a new question for this question.  This question was originally about tailFile and splitting files. It is best to keep one question per HCC post.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 06 Aug 2018 22:39:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182499#M144665</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2018-08-06T22:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi TailFile Processor does not detect vast insertion into a file</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182500#M144666</link>
      <description>&lt;P&gt;Thanks for your input.&lt;/P&gt;&lt;P&gt;As my question was related to the previous ones,I put it there, but I think you're right. I started a new one.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/210117/elasticsearch-dont-show-all-of-the-snort-s-index-1.html" target="_blank"&gt;https://community.hortonworks.com/questions/210117/elasticsearch-dont-show-all-of-the-snort-s-index-1.html&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2018 13:16:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Nifi-TailFile-Processor-does-not-detect-vast-insertion-into/m-p/182500#M144666</guid>
      <dc:creator>moj_72</dc:creator>
      <dc:date>2018-08-07T13:16:58Z</dc:date>
    </item>
  </channel>
</rss>

