Mask and Drop Sensitive Data
Preventing sensitive data—such as Personally Identifiable Information (PII), passwords, or API keys—from leaving your infrastructure is a critical security practice. Additionally, dropping noisy, low-value telemetry (like repeated health checks) helps keep your dashboards clean and reduces data transfer costs.
The OpenTelemetry Collector provides several processors, including the attributes, filter, and transform processors, to redact, mask, or drop telemetry before it is exported to KloudMate.
Deleting Sensitive Attributes
Section titled “Deleting Sensitive Attributes”If specific attributes consistently contain sensitive data you do not need, remove the attribute entirely with the attributes processor.
Example: Drop PII Attributes
Section titled “Example: Drop PII Attributes”This configuration removes the user.email and credit_card_number attributes from any incoming spans or logs.
Masking Values with the Transform Processor
Section titled “Masking Values with the Transform Processor”If you need to keep an attribute but redact portions of its value (e.g., masking a password within a URL or a token within a log body), use the transform processor. It uses the OpenTelemetry Transformation Language (OTTL).
Example: Mask Passwords in HTTP URLs
Section titled “Example: Mask Passwords in HTTP URLs”This configuration uses a regex pattern to find password=... in the http.url attribute and replaces the value with password=***.
Dropping Unnecessary Logs or Spans
Section titled “Dropping Unnecessary Logs or Spans”To discard entire spans, logs, or metrics based on their attributes, use the filter processor. It is useful for removing repetitive noise, such as load balancer health checks.
Example: Drop Health Check Telemetry
Section titled “Example: Drop Health Check Telemetry”This configuration evaluates incoming spans and logs. If a span targets the /health endpoint, or a log body contains the exact text "Healthcheck passed", the entire span or log record is dropped and not sent to KloudMate.