This message was deleted.
# general
s
This message was deleted.
s
redaction process doesn’t support logs.
g
Hi @Srikanth Chekuri /anyone else interested, I solved this using transform processor. See below config
Copy code
processors:
  transform/redact_sensitive_info:
    error_mode: ignore
    log_statements:
    - context: log
      statements:
      - replace_pattern(attributes["message"], "XnHyH4QALxXnQwmvw7XtB2brs63K4pby", "******")
      - replace_pattern(body, "XnHyH4QALxXnQwmvw7XtB2brs63K4pby", "******")


service:
  pipelines:
    logs:
      receivers: [xyz]
      processors: [transform/redact_sensitive_info, xyz]
      exporters: [xyz]
PS - In my case, I have the log in the body section as well as in the attributes.message that's why there are two replace pattern statements. Transform processor documentation - https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/processor/transformprocessor/README.md