<?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 can I get the ranger audits from solr (Ambari Infra) using a curl call, in the similar format as ranger, my cluster is kerberised ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-get-the-ranger-audits-from-solr-Ambari-Infra-using/m-p/218848#M64052</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16909/pdegave.html" nodeid="16909"&gt;@Pankaj Degave&lt;/A&gt; &lt;/P&gt;&lt;P&gt;
	You can use the below call to get only the required fields mentioned in Ranger UI. &lt;/P&gt;&lt;PRE&gt;curl -o ranger.query --negotiate -u : -X GET "http://&amp;lt;ambari-infra-solr-instance-hostname&amp;gt;:8886/solr/ranger_audits_shard1_replica1/select?q=*%3A*&amp;amp;fq=evtTime%3A%5B2017-06-11T10%3A44%3A00Z+TO+NOW%5D&amp;amp;fl=policy,evtTime,reqUser,repo,resource,resype,access,result,enforcer,cliIP,cluster,event_count&amp;amp;sort=evtTime+desc&amp;amp;start=0&amp;amp;rows=307600&amp;amp;wt=csv&amp;amp;version=2" &lt;/PRE&gt;&lt;P&gt;
Depending on what all logs you want to pull adjust the evtTime, the above query pulls all the audit records, change the evtTime to the timestamp of the first record in ranger.&lt;/P&gt;</description>
    <pubDate>Fri, 30 Jun 2017 17:09:52 GMT</pubDate>
    <dc:creator>krajguru</dc:creator>
    <dc:date>2017-06-30T17:09:52Z</dc:date>
    <item>
      <title>How can I get the ranger audits from solr (Ambari Infra) using a curl call, in the similar format as ranger, my cluster is kerberised ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-get-the-ranger-audits-from-solr-Ambari-Infra-using/m-p/218847#M64051</link>
      <description />
      <pubDate>Fri, 30 Jun 2017 17:06:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-get-the-ranger-audits-from-solr-Ambari-Infra-using/m-p/218847#M64051</guid>
      <dc:creator>pdegave</dc:creator>
      <dc:date>2017-06-30T17:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I get the ranger audits from solr (Ambari Infra) using a curl call, in the similar format as ranger, my cluster is kerberised ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-get-the-ranger-audits-from-solr-Ambari-Infra-using/m-p/218848#M64052</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16909/pdegave.html" nodeid="16909"&gt;@Pankaj Degave&lt;/A&gt; &lt;/P&gt;&lt;P&gt;
	You can use the below call to get only the required fields mentioned in Ranger UI. &lt;/P&gt;&lt;PRE&gt;curl -o ranger.query --negotiate -u : -X GET "http://&amp;lt;ambari-infra-solr-instance-hostname&amp;gt;:8886/solr/ranger_audits_shard1_replica1/select?q=*%3A*&amp;amp;fq=evtTime%3A%5B2017-06-11T10%3A44%3A00Z+TO+NOW%5D&amp;amp;fl=policy,evtTime,reqUser,repo,resource,resype,access,result,enforcer,cliIP,cluster,event_count&amp;amp;sort=evtTime+desc&amp;amp;start=0&amp;amp;rows=307600&amp;amp;wt=csv&amp;amp;version=2" &lt;/PRE&gt;&lt;P&gt;
Depending on what all logs you want to pull adjust the evtTime, the above query pulls all the audit records, change the evtTime to the timestamp of the first record in ranger.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Jun 2017 17:09:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-get-the-ranger-audits-from-solr-Ambari-Infra-using/m-p/218848#M64052</guid>
      <dc:creator>krajguru</dc:creator>
      <dc:date>2017-06-30T17:09:52Z</dc:date>
    </item>
  </channel>
</rss>

