<?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 Ranger audit log is empty .... although policy is applied in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140964#M23600</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a fresh installation of HDP2.2.4 including Ranger 0.4&lt;/P&gt;&lt;P&gt;After enabling and configuring HDFS policy, that policy is getting applied, but I have no entries in the Audit=&amp;gt;Access tab of Ranger UI, it is empty, even after waiting for some minutes and triggering several actions. In the Audit=&amp;gt;Agents tab I can see all the HDFS/Hive/HBase agents connected.&lt;/P&gt;&lt;P&gt;Where can I check for issues what is going wrong here ?&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
    <pubDate>Wed, 23 Mar 2016 22:45:02 GMT</pubDate>
    <dc:creator>geko</dc:creator>
    <dc:date>2016-03-23T22:45:02Z</dc:date>
    <item>
      <title>Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140964#M23600</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a fresh installation of HDP2.2.4 including Ranger 0.4&lt;/P&gt;&lt;P&gt;After enabling and configuring HDFS policy, that policy is getting applied, but I have no entries in the Audit=&amp;gt;Access tab of Ranger UI, it is empty, even after waiting for some minutes and triggering several actions. In the Audit=&amp;gt;Agents tab I can see all the HDFS/Hive/HBase agents connected.&lt;/P&gt;&lt;P&gt;Where can I check for issues what is going wrong here ?&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 22:45:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140964#M23600</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-03-23T22:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140965#M23601</link>
      <description>&lt;P&gt;Make sure the Audit Source is set to DB in Ambari (see Ranger configuration). Also could you check if the database (mysql?) contains any audit entries?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2016 23:58:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140965#M23601</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2016-03-23T23:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140966#M23602</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113" target="_blank"&gt;@Jonas Straub&lt;/A&gt; , thanks for answering.&lt;/P&gt;&lt;P&gt;yep, audit-to-db is marked in HDFS Ranger plugin config, I checked MySQL directly as user 'rangeradmin', but the table xa_access_audit is empty.&lt;/P&gt;&lt;P&gt;These are the settings for Ranger MySQL in Ambari =&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2956-ranger-db-config.png" style="width: 342px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21737i2096FE676E3351EC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2956-ranger-db-config.png" alt="2956-ranger-db-config.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:16:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140966#M23602</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2019-08-19T08:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140967#M23603</link>
      <description>&lt;P&gt;@Gerd Koening. Check in Ranger -&amp;gt; Config &amp;gt; Advanced ranger-admin-site
ranger.audit.source.type = db&lt;/P&gt;&lt;P&gt;Do you see any exception in namenode log related to Ranger Auditing? Also check that the policy is having the audit enabled. Also hdfs operation you are doing should be for the resources which are in the Policy.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 02:21:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140967#M23603</guid>
      <dc:creator>rmani</dc:creator>
      <dc:date>2016-03-24T02:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140968#M23604</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; , many thanks.&lt;/P&gt;&lt;P&gt;In my Ambari version(2.1.2.1, Ranger 0.4, HDP2.2.4)) I cannot find that property in Ranger config. There is just "advanced ranger-site" but also there, no property "ranger.audit.source.type".&lt;/P&gt;&lt;P&gt;The only place where I can configure where to log, is the Policy configuration itself, like in HDFS=&amp;gt;advanced ranger-hdfs-plugin-configuration" where I clicked/marked the checkbox "Audit to DB"&lt;/P&gt;&lt;P&gt;The namenode log seems to be the correct hint, there I saw db errors like "connection refused", so I have to investigate into that. I think it is more a mysql problem now, not really a ranger issue....I will catchup on this after after the long weekend...&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2016 15:37:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140968#M23604</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-03-24T15:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger audit log is empty .... although policy is applied</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140969#M23605</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/113/jstraub.html" nodeid="113"&gt;@Jonas Straub&lt;/A&gt; , Hi &lt;A rel="user" href="https://community.cloudera.com/users/218/rmani.html" nodeid="218"&gt;@Ramesh Mani&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;I just wanted to update with the solution of that issue. At the end it turned out, that after Ambari upgrade (from 2.0.1 initially to Ambari 2.1.2.1), the placeholder-variables were not set/applied correctly via Ambari. In HDFS =&amp;gt; advanced ranger-plugin config there were variables like {{xaaudit_db_XYZ}}, and I replaced those with their real values (xaaudit.db.username, xaaudit.db.database, xaaudit.db.password, ...) , restarted HDFS and now the audit log entries are being written.&lt;/P&gt;&lt;P&gt;Regards, Gerd&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2016 17:34:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-audit-log-is-empty-although-policy-is-applied/m-p/140969#M23605</guid>
      <dc:creator>geko</dc:creator>
      <dc:date>2016-03-26T17:34:01Z</dc:date>
    </item>
  </channel>
</rss>

