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 that you do not need, the easiest approach is to remove the attribute entirely using the attributes processor.
Example: Drop PII Attributes
Section titled “Example: Drop PII Attributes”This configuration will remove 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. This processor utilizes 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 completely discard entire spans, logs, or metrics based on their attributes, use the filter processor. This is highly effective for removing repetitive “noise” from your environment, 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 is targeting the /health endpoint, or if a log body contains the exact text "Healthcheck passed", the entire span or log record is dropped and will not be sent to KloudMate.