Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
02-25-2025
04:49 AM
- last edited on
04-20-2026
11:21 PM
by
GrazittiAPI
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
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
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
Thank you @upadhyayk04. This helped.