Hi Splunkers,
I want to mask the PII data during the search time for specific users.
I checked all the existing questions and answers, but was not able to achieve it. I tried the below option,
I masked the data using the below search, and I saved as a macro, and then, I tried to give access to the user for only this macro, but the macro did not run.
my search|rex field=_raw "(?.*)TYPE\s\[PHONE\]\s*\[\+\w{12}\](?.*)"
| eval _raw=head."TYPE [PHONE] [############] ".tail
I tried to use regex in props/transforms in the search head, but it did not help.
I don't want re-index the data because the volume is large.
I tried to do event type, but the query cannot have the pipe symbol.
Any help is appreciated.
Thanks,
Purush
... View more