Docs Labs Redact Information in JSON Messages This example shows you how to use Redpanda data transforms to redact information in JSON messages. The demo runs using Docker Compose, with the following containers: redpanda: Includes a single Redpanda broker. console: Includes Redpanda Console. owl-shop: Includes the Owlshop demo application that produces e-commerce data to the Redpanda broker. transform: Includes all the requirements for deploying the transforms function to the Redpanda broker, including rpk, Go, and the redaction transform code. The source code for the redaction transform is available in the redaction directory. Prerequisites You must have Docker and Docker Compose installed on your host machine. Run the lab Clone the repository: git clone https://github.com/redpanda-data/redpanda-labs.git Change into the data-transforms/redaction/demo/ directory: cd redpanda-labs/data-transforms/go/redaction/demo Set the REDPANDA_VERSION environment variable to at least version 23.3.1. Data transforms was introduced in this version. For all available versions, see the GitHub releases. For example: export REDPANDA_VERSION=24.3.2 Set the REDPANDA_CONSOLE_VERSION environment variable to the version of Redpanda Console that you want to run. For all available versions, see the GitHub releases. For example: export REDPANDA_CONSOLE_VERSION=2.8.1 Build the data transforms container: docker compose build If you are running on an ARM-based device such as the Apple M1 chip, open the docker-compose.yml file and uncomment the platform: 'linux/amd64' line. Start the containers: docker compose up --detach --wait Navigate to http://localhost:8080 to see the Redpanda Console. Go to Topics and select owlshop-orders-redacted and see the redacted orders. Clean up To stop the containers: docker compose down Back to top × Simple online edits For simple changes, such as fixing a typo, you can edit the content directly on GitHub. Edit on GitHub Or, open an issue to let us know about something that you want us to change. Open an issue Contribution guide For extensive content updates, or if you prefer to work locally, read our contribution guide . Was this helpful? thumb_up thumb_down group Ask in the community mail Share your feedback group_add Make a contribution