SAMEEL .N
08/21/2024, 6:18 AMnitya-signoz
08/21/2024, 7:48 AMSAMEEL .N
08/22/2024, 2:04 AMAug 22 02:03:33 fth-api-06 otelcol-contrib[3709402]: 2024/08/22 02:03:33 collector server run finished with error: invalid configuration: processors::transform: unable to parse OTTL statement "set(attributes[\"log\"], RegexReplace(attributes[\"log\"], \"(?<=phoneNumber\\\":\\\\s?\\\")[^\\\"]+\", \"****\"))": error while parsing arguments for call to "set": invalid argument at position 1: undefined function "RegexReplace"
my config is
processors:
transform:
log_statements:
- context: log
statements:
- set(attributes["log"], RegexReplace(attributes["log"], "(?<=phoneNumber\":\\s?\")[^\"]+", "****"))
SAMEEL .N
08/23/2024, 2:49 PM