- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Ranger plugin / service access report - CDP 7.1.9 PB
Created on ‎02-25-2025 04:49 AM - edited ‎02-25-2025 05:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am trying to prepare a report listing Client IP addresses connecting to various Cloudera services. I know in Ranger Admin UI -> Audits -> Access, I can see this information. However, because of the huge list of records, it is not practical to copy each page from here. Hence, below are options i can think of to fetch the data:
1. Ranger database: I am unsure which table in ranger DB stores this information from where Ranger Admin UI gets the data.
2. Solr: For our Ranger instance, source is configured as Solr. However, for some reason I am unable to query Solr via Solr UI. Possibly it could be coz of some permissions issues, as when attempted to get this data using Solr API, i get authentication error. Unsure where should I check for the permissions as in Solr Policy in Ranger, I have given all the reasonable permissions that I could think of to myself. Still no luck.
Please suggest
Thanks
snm1523
Created ‎02-26-2025 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @snm1523
Thank you for reaching out to the community
You can take a look at Ranger API as well to achieve the same
Go to Ranger UI >> Profile >> API documentation >> Expand XAuditREST >> Click on GET/xaudit/access_audit >> Click on Try it out and Execute. You can get this data in CSV and perform the operations
For eg.
curl -X 'GET' \
'https://ccycloud-1.nightly-cm-qn.root.comops.site:6182/service/xaudit/access_audit' \
-H 'accept: application/json'
Created ‎02-26-2025 02:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @snm1523
Thank you for reaching out to the community
You can take a look at Ranger API as well to achieve the same
Go to Ranger UI >> Profile >> API documentation >> Expand XAuditREST >> Click on GET/xaudit/access_audit >> Click on Try it out and Execute. You can get this data in CSV and perform the operations
For eg.
curl -X 'GET' \
'https://ccycloud-1.nightly-cm-qn.root.comops.site:6182/service/xaudit/access_audit' \
-H 'accept: application/json'
Created ‎02-26-2025 06:19 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you @upadhyayk04. This helped.
