<?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: Ranger logs are in gz format - is there any way of extracting in the Nifi flow? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315986#M226665</link>
    <description>&lt;P&gt;Thanks, I tried something just like this yesterday, and it would work, but these logs don't have a file extension like what would be needed, (.gz) but I think I have an issue somewhere else, so will carry on trying to fix the overall issue.&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2021 13:28:12 GMT</pubDate>
    <dc:creator>robnew</dc:creator>
    <dc:date>2021-05-07T13:28:12Z</dc:date>
    <item>
      <title>Ranger logs are in gz format - is there any way of extracting in the Nifi flow?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315938#M226640</link>
      <description>&lt;P&gt;I have identified that some of my Ranger logs are coming in in gz format (but without the extension). Is there a way of extracting the log data within the Nifi flow?&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 11:20:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315938#M226640</guid>
      <dc:creator>robnew</dc:creator>
      <dc:date>2021-05-06T11:20:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger logs are in gz format - is there any way of extracting in the Nifi flow?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315957#M226649</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88165"&gt;@robnew&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The "&lt;STRONG&gt;CompressContent&lt;/STRONG&gt;" [1] processor can be used to decompress gz files.&lt;BR /&gt;&lt;BR /&gt;My suggestion here since only &lt;EM&gt;&lt;U&gt;some&lt;/U&gt;&lt;/EM&gt; log files are compressed is to set up a flow that passes these FlowFiles through an "&lt;STRONG&gt;IdentifyMimeType&lt;/STRONG&gt;" [2] processor.&amp;nbsp; This will write out a new &lt;EM&gt;mime.type&lt;/EM&gt; attribute on the FlowFiles.&amp;nbsp; Then use a "&lt;STRONG&gt;RouteOnAttribute&lt;/STRONG&gt;" [3] processor to route FlowFiles with mime.type =&amp;nbsp;application/gzip (each new dynamic property becomes a new outbound relationship) to that "&lt;STRONG&gt;CompressContent&lt;/STRONG&gt;" processor and the "unmatched" relationship (which will have every other non gz file) on through your flow without passing through "&lt;STRONG&gt;CompressContent&lt;/STRONG&gt;" processor.&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;[1]&amp;nbsp;&lt;A href="http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.CompressContent/index.html" target="_blank"&gt;http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.CompressContent/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[2]&amp;nbsp;&lt;A href="http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.IdentifyMimeType/index.html" target="_blank"&gt;http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.IdentifyMimeType/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;[3]&amp;nbsp;&lt;A href="http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.RouteOnAttribute/index.html" target="_blank"&gt;http://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.RouteOnAttribute/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;If you found this helpful with your question, please take a moment to login and click accept on this solution.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 20:37:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315957#M226649</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-05-06T20:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger logs are in gz format - is there any way of extracting in the Nifi flow?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315986#M226665</link>
      <description>&lt;P&gt;Thanks, I tried something just like this yesterday, and it would work, but these logs don't have a file extension like what would be needed, (.gz) but I think I have an issue somewhere else, so will carry on trying to fix the overall issue.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:28:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Ranger-logs-are-in-gz-format-is-there-any-way-of-extracting/m-p/315986#M226665</guid>
      <dc:creator>robnew</dc:creator>
      <dc:date>2021-05-07T13:28:12Z</dc:date>
    </item>
  </channel>
</rss>

