Yes, it does. service:
pipelines:
logs:
exporters:
- otlp
processors:
- transform
- attributes/upsert So far I have tried these options but none seem to work. processors:
attributes/upsert:
actions:
- key: upstream_namespace
action: upsert
value: "REDACTED_NS"
transform:
log_statements:
- context: log
statements:
- replace_all_patterns(attributes,"value","upstream_namespace", "REDACTED_NS")
- replace_all_patterns(attributes,"key","upstream_namespace", "REDACTED_NS")
- replace_match(attributes["upstream_namespace"], "*" , "REDACTED_NS")
- replace_match(attributes["upstream_namespace"], "system-monitoring" , "REDACTED_NS")
- delete_key(attributes,"upstream_namespace")
- delete_key(resource.attributes,"upstream_namespace")
- replace_all_patterns(attributes["upstream_namespace"],"value","upstream_namespace", "REDACTED_NS")
- replace_all_patterns(attributes["upstream_namespace"],"value","system-monitoring", "REDACTED_NS") The attribute/upsert and set() however appends to existing value. upstream_namespace: REDACTED_NS
system-monitoring Not sure what is missing here, any suggestions to resolve this? Thanks
... View more