ramackri commented on code in PR #986:
URL: https://github.com/apache/ranger/pull/986#discussion_r3437750780


##########
dev-support/ranger-docker/README.md:
##########
@@ -106,6 +106,72 @@ docker compose -f docker-compose.ranger.yml -f 
docker-compose.ranger-trino.yml u
 ~~~
 docker compose -f docker-compose.ranger.yml -f 
docker-compose.ranger-opensearch.yml up -d
 ~~~
+
+#### OpenSearch audit flow (replace Solr for access audits)
+
+OpenSearch can replace Solr for **audit storage and UI queries**. Ranger Admin 
reads audits via
+`audit_store=opensearch` using a native low-level REST client (compatible with 
any OpenSearch version).
+
+**Write path:** access audits flow through audit-server ingestor, Kafka, and 
the Java
+`ranger-audit-dispatcher-opensearch` service into the OpenSearch 
`ranger_audits` index.
+Ranger Admin policy/admin transaction audits remain DB-backed; this is the 
same boundary
+used by the Solr audit path.
+
+##### Quick start
+
+~~~
+# Prerequisites: build the audit-dispatcher tarball and download archives
+mvn clean package -DskipTests -pl distro -am
+cp target/ranger-*-audit-dispatcher.tar.gz dev-support/ranger-docker/dist/
+cd dev-support/ranger-docker
+./download-archives.sh kafka opensearch hadoop
+
+# Run the E2E test (starts stack, tests, tears down automatically)
+./scripts/audit/e2e-audit-opensearch.sh
+
+# Or keep the stack running after the test for debugging
+./scripts/audit/e2e-audit-opensearch.sh --no-teardown
+
+# Re-run just the test against an already-running stack
+./scripts/audit/e2e-audit-opensearch.sh --skip-start
+~~~
+
+##### Manual setup (advanced)
+
+For finer control, the individual steps can be run manually:
+
+~~~
+export RANGER_DB_TYPE=postgres
+
+# 1. Start OpenSearch first (Ranger Admin's bootstrapper needs it on startup)
+docker compose -f docker-compose.ranger.yml -f 
docker-compose.ranger-opensearch.yml \

Review Comment:
   Good catch



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to