Logs/Traces Sensitive Data Obfuscation
groundcover’s pipelines can be used to protect sensitive data in your Logs and Traces using Vector's redact function. Mask or remove sensitive information while preserving the usefulness of your data.
Examples
vector:
logsPipeline:
extraSteps:
- name: obfuscateVisaCards
transform:
type: remap
source: |-
pattern = r'(?:4\d{3}){4}|4\d{7}\d{8}|4\d{12}(?:\d{3})?'
# Redact content. Cast to string and redact
contentAsString, err = string(.content)
if err == null {
.content = redact(contentAsString, filters: [pattern])
}
# Redact all attributes. Iterate, cast to string, redact
.string_attributes = map_values(object!(.string_attributes), recursive:true) -> |value| {
asString, err = string(value)
if err == null {
redact(asString, filters: [pattern])
} else {
value
}
}Patterns Library
Description
Pattern
Description
Pattern
Description
Pattern
Last updated
