<?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 Audit Custom reports in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96786#M10353</link>
    <description>&lt;P&gt;It sounds like you want to pull out a lot of data, so I would definitely not use Ranger's RestAPI (not even sure Ranger allows audit export via RestAPI). If you are using DB Audits, which we do not recommend in production systems, you can connect Tableau directly to your DB (check the supported drivers =&amp;gt; &lt;A target="_blank" href="http://www.tableau.com/support/drivers"&gt;http://www.tableau.com/support/drivers&lt;/A&gt;) &lt;/P&gt;&lt;P&gt;Personally I'd go with one of the following solutions:&lt;/P&gt;&lt;P&gt;A) Enable HDFS Audit Logs (good idea in general), put a Hive table on top of the audit logs and use Tableau's Hive connector to retrieve and visualize/analyze the data. (Check this out =&amp;gt; &lt;A target="_blank" href="http://kb.tableau.com/articles/knowledgebase/hadoop-hive-connection"&gt;http://kb.tableau.com/articles/knowledgebase/hadoop-hive-connection&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;B) If you are using the SolrCloud you could query the Solr index and export the relevant data into a data format that is supported by Tableau (this could be done by Nifi, etc.) . Unfortunately there is no Tableau Solr Driver yet as far as I know. &lt;/P&gt;</description>
    <pubDate>Tue, 10 Nov 2015 06:24:28 GMT</pubDate>
    <dc:creator>jstraub</dc:creator>
    <dc:date>2015-11-10T06:24:28Z</dc:date>
    <item>
      <title>Ranger Audit Custom reports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96784#M10351</link>
      <description>&lt;P&gt;one of our customers would like to pull ranger audit information to external db source and use tableau to generate some reports.&lt;/P&gt;&lt;P&gt;What do we suggest to our customers when it comes to best practices in this area? do we have sample queries where we can pull the information we are showing on the Ranger UI? or we recommend them to use Rest APIs for audit data pull? If REST is preferable, do we have a list of REST API calls/samples for me to get started? please suggest&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 05:43:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96784#M10351</guid>
      <dc:creator>rbalam</dc:creator>
      <dc:date>2015-11-10T05:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Audit Custom reports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96785#M10352</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam@hortonworks.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If you are using DB option for Ranger audit then you should be able to run queries against audit tables.&lt;/P&gt;&lt;P&gt;Mysql:&lt;/P&gt;&lt;P&gt;mysql&amp;gt; show databases;&lt;/P&gt;&lt;P&gt;+--------------------+&lt;/P&gt;&lt;P&gt;| Database           |&lt;/P&gt;&lt;P&gt;+--------------------+&lt;/P&gt;&lt;P&gt;| information_schema |&lt;/P&gt;&lt;P&gt;| hive               |&lt;/P&gt;&lt;P&gt;| mysql              |&lt;/P&gt;&lt;P&gt;| ranger             |&lt;/P&gt;&lt;P&gt;| ranger_audit       |&lt;/P&gt;&lt;P&gt;| test               |&lt;/P&gt;&lt;P&gt;+--------------------+&lt;/P&gt;&lt;P&gt;6 rows in set (0.00 sec)&lt;/P&gt;&lt;P&gt;mysql&amp;gt; use ranger_audit&lt;/P&gt;&lt;P&gt;Reading table information for completion of table and column names&lt;/P&gt;&lt;P&gt;You can turn off this feature to get a quicker startup with -A&lt;/P&gt;&lt;P&gt;Database changed&lt;/P&gt;&lt;P&gt;mysql&amp;gt; show tables;&lt;/P&gt;&lt;P&gt;+------------------------+&lt;/P&gt;&lt;P&gt;| Tables_in_ranger_audit |&lt;/P&gt;&lt;P&gt;+------------------------+&lt;/P&gt;&lt;P&gt;| xa_access_audit        |&lt;/P&gt;&lt;P&gt;+------------------------+&lt;/P&gt;&lt;P&gt;1 row in set (0.00 sec)&lt;/P&gt;&lt;P&gt;mysql&amp;gt; &lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 05:46:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96785#M10352</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-10T05:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Audit Custom reports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96786#M10353</link>
      <description>&lt;P&gt;It sounds like you want to pull out a lot of data, so I would definitely not use Ranger's RestAPI (not even sure Ranger allows audit export via RestAPI). If you are using DB Audits, which we do not recommend in production systems, you can connect Tableau directly to your DB (check the supported drivers =&amp;gt; &lt;A target="_blank" href="http://www.tableau.com/support/drivers"&gt;http://www.tableau.com/support/drivers&lt;/A&gt;) &lt;/P&gt;&lt;P&gt;Personally I'd go with one of the following solutions:&lt;/P&gt;&lt;P&gt;A) Enable HDFS Audit Logs (good idea in general), put a Hive table on top of the audit logs and use Tableau's Hive connector to retrieve and visualize/analyze the data. (Check this out =&amp;gt; &lt;A target="_blank" href="http://kb.tableau.com/articles/knowledgebase/hadoop-hive-connection"&gt;http://kb.tableau.com/articles/knowledgebase/hadoop-hive-connection&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;B) If you are using the SolrCloud you could query the Solr index and export the relevant data into a data format that is supported by Tableau (this could be done by Nifi, etc.) . Unfortunately there is no Tableau Solr Driver yet as far as I know. &lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2015 06:24:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96786#M10353</guid>
      <dc:creator>jstraub</dc:creator>
      <dc:date>2015-11-10T06:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Ranger Audit Custom reports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96787#M10354</link>
      <description>&lt;P&gt;Whenever I execute this query : sqoop list-databases --connect jdbc:mysql://localhost:3306 --username xxx -password xxx . Only the following tables are displayed information_schema, hive, mysql, ranger, ranger_audit,test but not the databases which I created inside mysql workbench. Your guidance will be appreciated. &lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2016 11:18:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Ranger-Audit-Custom-reports/m-p/96787#M10354</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-01T11:18:30Z</dc:date>
    </item>
  </channel>
</rss>

