Save Audit to Solr
Prerequisite: To save Ranger KMS audits to Solr, you must have Solr installed and running.
To save audits to Solr:
Edit the following Ranger properties in the Advanced ranger-admin.site list:
ranger.audit.solr.password = NONE
ranger.audit.solr.urls = http://solr_host:6083/solr/ranger_audits
ranger.audit.solr.username = ranger_solr
ranger.audit.source.type = solr
For example:
Restart Ranger.
Next, to enable Ranger KMS auditing to Solr, set the following properties in the Advanced ranger-kms-audit list:
Check the box next to
Enable audit to solr
in the Ranger KMS component.Check the
Audit provider summary enabled
box, and make sure thatxasecure.audit.is.enabled
is set to true.Restart Ranger KMS.
Note | |
---|---|
Check audit logs on Ranger UI, to make sure that they are getting through Solr:
|