I'm parsing the request_uri
from a log file:
_sourceName="/opt/zazma/var/logs/AuditRequest.log"
| parse "method=*, statusCode=*, requestURI=*," as method, status_code, request_uri
| count by method, request_uri, status_code
| sort by request_uri
The URI includes IDs and email addresses. I want to replace all existing IDs with '{Id}'
or '*'
, and all existing emails with '{email}'
, but Sumo's REPLACE
function doesn't support regex.
Is there any other way to replace the value
in the URI?