title: Apache Nifi TailFile missing last line
body: <p>I am trying to create a pipeline for delivering log files through <strong>Apache Nifi</strong>. For now i'v been able to set up proper log handling using
  <strong>TailFile</strong> -> <strong>ConvertRecord</strong> (<strong>GrokReader</strong> and <strong>JsonWriter</strong>) -> <strong>SplitJson</strong></p>
  
  <p>The problem i am dealing now is that <strong>TailFile</strong> appears to look for carriage return to tail file. So then the last line of the log will always be missing</p>
  
  <p>whel tailing something like:</p>
  
  <pre><code>2020-04-10 13:39:16,670 ERROR HomeController 1 logline
  
  2020-04-10 13:44:29,476 ERROR HomeController 2 logline
  
  2020-04-10 13:44:35,343 ERROR HomeController 3 logline
  
  2020-04-10 13:44:37,981 ERROR HomeController 4 logline
  </code></pre>
  
  <p>i always get:</p>
  
  <pre><code>2020-04-10 13:39:16,670 ERROR HomeController 1 logline
  
  2020-04-10 13:44:29,476 ERROR HomeController 2 logline
  
  2020-04-10 13:44:35,343 ERROR HomeController 3 logline
  </code></pre>
  
  <p>Delivering every line is crutial to me. Is there a way to to pick up logs in other way?</p>
  
  <p><strong>GetFile</strong> is a bad option. It is possible that files will be up to 1-2 Gb size before rotated.</p>