From b62b7668d896f0106e4d8c8ed62ca39c46b85167 Mon Sep 17 00:00:00 2001 From: jonashartwig Date: Tue, 23 Sep 2025 11:14:56 +0200 Subject: [PATCH] Added audit configuration example for Elastic Search --- .../sphinx/security/ranger-access-control.md | 45 ++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/docs/src/main/sphinx/security/ranger-access-control.md b/docs/src/main/sphinx/security/ranger-access-control.md index a1e5e4cdbb43..b39b3cd39e40 100644 --- a/docs/src/main/sphinx/security/ranger-access-control.md +++ b/docs/src/main/sphinx/security/ranger-access-control.md @@ -8,7 +8,7 @@ column-masking, row-filtering and audit logging. ## Requirements * Access to a Apache Ranger deployment with the desired authorization policies. -* Access to an audit store using Solr, HDFS, Log4J, or S3 to save audit logs. +* Access to an audit store using Solr, HDFS, Log4J, Elastic Search, or S3 to save audit logs. * Apache Ranger 2.5.0 and greater include the required Trino service definition. Earlier versions of Apache Ranger require an [update to the service definition available on @@ -134,6 +134,49 @@ The following table lists the configuration properties for the Ranger access con URL to Solr deployment where the plugin should send access audits to + + + xasecure.audit.destination.elasticsearch + disabled + Is es audit enabled? Allowed values to enable: enable, enabled, true + + + + xasecure.audit.destination.elasticsearch.urls + host1,host2 + Comma (,) separated list of es hosts. + + + + xasecure.audit.destination.elasticsearch.index + ranger_audits_write + The index to write audits to. Default: ranger_audits + + + + xasecure.audit.destination.elasticsearch.port + 9200 + The port for es. Default: 9200 + + + + xasecure.audit.destination.elasticsearch.protocol + http + The http protocol to use during communication. Default: http + + + + xasecure.audit.destination.elasticsearch.user + write_user + The username to authenticate towards es. + + + + xasecure.audit.destination.elasticsearch.password + changeme + The password to authenticate towards es. + + ```