<?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: TailFile Multiple Directory Same File not working in nifi 1.6.0? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209028#M79207</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/81272/raghu.html" nodeid="81272" target="_blank"&gt;@Raghu VN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you are using Windows os and the specified path(with forward slashes) will work fine for single file as Tailing Mode. &lt;/P&gt;&lt;P&gt;For Multiple files not able to read the regex that you are specifying in files to tail.&lt;/P&gt;&lt;P&gt;I have recreated your scenario and with the below configs i'm able to tail multiple files&lt;BR /&gt;Change the configs in your &lt;STRONG&gt;TailFile processor&lt;/STRONG&gt; as keep &lt;STRONG&gt;two back slashes(\)&lt;/STRONG&gt; on &lt;STRONG&gt;File(s) to Tail and Base directory&lt;/STRONG&gt; property values &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77571-tailfile.png" style="width: 1597px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16842i3C7A9304619BC6F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77571-tailfile.png" alt="77571-tailfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tailing mode&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Multiple files&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;File(s) to Tail&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;test[1-3]\flowlog.csv&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Rolling Filename Pattern&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;flowlog.csv&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Base directory&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;C:\cw-data&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Initial Start Position&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Beginning of File&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;State Location&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Local&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Recursive lookup&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;true&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Lookup frequency&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;10 minutes&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Maximum age&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;24 hours&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;If you are using &lt;STRONG&gt;linux&lt;/STRONG&gt; the directory path will have &lt;STRONG&gt;forward slashes(/) &lt;/STRONG&gt;will work without any issues but in &lt;STRONG&gt;windows&lt;/STRONG&gt; directory path will have &lt;STRONG&gt;back slashes&lt;/STRONG&gt; we need to keep t&lt;STRONG&gt;wo back slashes(\)&lt;/STRONG&gt; to get correct directory path.&lt;/P&gt;</description>
    <pubDate>Sun, 18 Aug 2019 04:20:08 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T04:20:08Z</dc:date>
    <item>
      <title>TailFile Multiple Directory Same File not working in nifi 1.6.0?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209027#M79206</link>
      <description>&lt;P&gt;I am facing a very similar issue as in the issue &lt;A href="https://community.hortonworks.com/questions/141403/in-nifi-tailing-multiple-directories-with-the-same.html" target="_blank"&gt;https://community.hortonworks.com/questions/141403/in-nifi-tailing-multiple-directories-with-the-same.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;I tried the solution in the above question. The only difference is that there is no 'Rolling Strategy' property available as I'm using nifi 1.6.0 and Rolling Strategy seems to be removed in this &lt;A href="https://github.com/apache/nifi/commit/45df23b1e09f340fb2c7f3c3234462570ddb5f6b#diff-31f71fcca521964241a748e5d467afa9"&gt;commit&lt;/A&gt;.
Given below is my configuration. &lt;/P&gt;&lt;P&gt;Tailing mode
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Multiple files&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;File(s) to Tail
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;test[1-3]/flowlog.csv&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Rolling Filename Pattern
No value set
Base directory
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;C:/cw-data&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Initial Start Position
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Beginning of File&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;State Location
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Local&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Recursive lookup
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;true&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Lookup frequency
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;5 minutes&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Maximum age
&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;24 hours&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;I'm changing the file C:/cw-data/test1/flowlog.csv, but it is not working. &lt;/P&gt;&lt;P&gt; I'm new in nifi. What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2018 19:02:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209027#M79206</guid>
      <dc:creator>raghu1</dc:creator>
      <dc:date>2018-06-05T19:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: TailFile Multiple Directory Same File not working in nifi 1.6.0?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209028#M79207</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/81272/raghu.html" nodeid="81272" target="_blank"&gt;@Raghu VN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As you are using Windows os and the specified path(with forward slashes) will work fine for single file as Tailing Mode. &lt;/P&gt;&lt;P&gt;For Multiple files not able to read the regex that you are specifying in files to tail.&lt;/P&gt;&lt;P&gt;I have recreated your scenario and with the below configs i'm able to tail multiple files&lt;BR /&gt;Change the configs in your &lt;STRONG&gt;TailFile processor&lt;/STRONG&gt; as keep &lt;STRONG&gt;two back slashes(\)&lt;/STRONG&gt; on &lt;STRONG&gt;File(s) to Tail and Base directory&lt;/STRONG&gt; property values &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="77571-tailfile.png" style="width: 1597px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/16842i3C7A9304619BC6F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="77571-tailfile.png" alt="77571-tailfile.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Tailing mode&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Multiple files&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;File(s) to Tail&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;test[1-3]\flowlog.csv&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Rolling Filename Pattern&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;flowlog.csv&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Base directory&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;C:\cw-data&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Initial Start Position&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Beginning of File&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;State Location&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;Local&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Recursive lookup&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;true&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Lookup frequency&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;10 minutes&lt;/PRE&gt;
&lt;/DIV&gt;&lt;P&gt;Maximum age&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;24 hours&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;If you are using &lt;STRONG&gt;linux&lt;/STRONG&gt; the directory path will have &lt;STRONG&gt;forward slashes(/) &lt;/STRONG&gt;will work without any issues but in &lt;STRONG&gt;windows&lt;/STRONG&gt; directory path will have &lt;STRONG&gt;back slashes&lt;/STRONG&gt; we need to keep t&lt;STRONG&gt;wo back slashes(\)&lt;/STRONG&gt; to get correct directory path.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 04:20:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209028#M79207</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T04:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: TailFile Multiple Directory Same File not working in nifi 1.6.0?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209029#M79208</link>
      <description>&lt;P&gt;Thanks for your help. That was the problem. &lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 15:09:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/TailFile-Multiple-Directory-Same-File-not-working-in-nifi-1/m-p/209029#M79208</guid>
      <dc:creator>raghu1</dc:creator>
      <dc:date>2018-06-06T15:09:26Z</dc:date>
    </item>
  </channel>
</rss>

