do we have any option to mask items in logs usging...
# general
s
do we have any option to mask items in logs usging any regx
s
I am getting below exceptions
Copy code
Aug 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
Copy code
processors:
  transform:
    log_statements:
      - context: log
        statements:
          - set(attributes["log"], RegexReplace(attributes["log"], "(?<=phoneNumber\":\\s?\")[^\"]+", "****"))
@nitya-signoz any help here