Auditing with Ranger

Ranger records the access decisions of the services that it protects in an audit store in OpenSearch, so that you can review who accessed which resource, when, and whether the request was allowed.

Each service that Ranger protects sends an audit record for its access decisions. The Ranger audit service collects the records and stores them in OpenSearch, and the Ranger Admin web UI reads them from there. An access audit record includes the time, the user, the service, the resource, the access type, and whether the request was allowed or denied. Ranger access audits have no retention period, so audit records are not removed automatically.

What is audited

  • Engine services, such as Cloudera Harmony Catalog, Trino, Spark, and Kafka, send audit records for the requests that their Ranger plugins evaluate.
  • The awc_udf service records denied requests to the catalog metadata.
  • The Ranger Remote Authorization Service (RAZ) and Policy Decision Point (PDP) send audit records for the authorization decisions that they return.

Ranger Admin also records administrative activity, such as policy changes and sign-ins, in separate audit views.

Change history of assets

Ranger audits record access decisions. Changes to catalog metadata, such as a new classification on an asset, are recorded separately in the change history of the asset, which you can view in the Asset Audit section of the asset details page in Data 360.