This processor redacts sensitive information present as a string in log bodies using cockroachdb/redact
Follow the guide to build a custom OpenTelemetry collector which has this processor included in it.
# builder-config.yaml
# ...
processors:
- gomod:
github.com/thecomputerm/redactprocessor v0.0.1
# ...
And in the config for the collector:
processors:
redact:
service:
pipelines:
logs:
receivers: [...]
processors: [redact]
exporters: [...]