<?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: How to get the last n  lines of a text file (&amp;quot;tail -n log.file&amp;quot;) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/340173#M233284</link>
    <description>&lt;P&gt;Hi André,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is what I needed. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those who are facing the same problem in windows; &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;'s solution also works with Powershell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Nifi ExecuteStreamCommand Powershell.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34073i49A6CEB3139B082D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nifi ExecuteStreamCommand Powershell.png" alt="Nifi ExecuteStreamCommand Powershell.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 17:06:10 GMT</pubDate>
    <dc:creator>templarian</dc:creator>
    <dc:date>2022-03-31T17:06:10Z</dc:date>
    <item>
      <title>How to get the last n  lines of a text file ("tail -n log.file")</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/339957#M233222</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An external process creates an error.file on certain events and updates the process log file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The process that I'm creating starts when the error.file is created and need to read the last 10 - 15 lines of the log.file. My problem is that the log.file does not rollover and just grows continually and neither follows a log standard in order to use SysLog processors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I get that last 10 - 15 lines of the log file? Something like ( &lt;EM&gt;"tail -15 log.file"&lt;/EM&gt; ).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 19:34:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/339957#M233222</guid>
      <dc:creator>templarian</dc:creator>
      <dc:date>2022-03-29T19:34:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last n  lines of a text file ("tail -n log.file")</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/339974#M233229</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86328"&gt;@templarian&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use something like the example below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="araujo_0-1648594388252.png" style="width: 258px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34047iC0D30254915D6B7F/image-dimensions/258x237?v=v2" width="258" height="237" role="button" title="araujo_0-1648594388252.png" alt="araujo_0-1648594388252.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="araujo_1-1648594412531.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34048iF010B2A0DBCF22C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="araujo_1-1648594412531.png" alt="araujo_1-1648594412531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2022 22:54:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/339974#M233229</guid>
      <dc:creator>araujo</dc:creator>
      <dc:date>2022-03-29T22:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the last n  lines of a text file ("tail -n log.file")</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/340173#M233284</link>
      <description>&lt;P&gt;Hi André,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is what I needed. Thanks a lot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For those who are facing the same problem in windows; &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/11191"&gt;@araujo&lt;/a&gt;'s solution also works with Powershell&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Nifi ExecuteStreamCommand Powershell.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/34073i49A6CEB3139B082D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nifi ExecuteStreamCommand Powershell.png" alt="Nifi ExecuteStreamCommand Powershell.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 17:06:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-get-the-last-n-lines-of-a-text-file-quot-tail-n-log/m-p/340173#M233284</guid>
      <dc:creator>templarian</dc:creator>
      <dc:date>2022-03-31T17:06:10Z</dc:date>
    </item>
  </channel>
</rss>

