How to split value in telemetry

Hello,

I am looking for syntax that can help to split and take a part of string in logentry. For example current logentry looks like this -

apiVersion: config.istio.io/v1alpha2
kind: logentry
metadata:
name: accesslog
namespace: istio-system
spec:
severity: ‘“Info”’
timestamp: request.time
variables:
clusterName: ‘"{{ .Values.global.clusterName }}"’
sourceIp: source.ip | ip(“0.0.0.0”)
sourcePrincipal: source.principal | “Not_Found”
monitored_resource_type: ‘“UNSPECIFIED”’

Value of “source.principal” is foo.boo.com/abc.xyz.pqr. I was looking to get only abc.xyz.pqr part of the value. Any help is appreciated :slight_smile:

Please share suggestions here https://github.com/istio/istio/issues/12454

There is very limited support for string regex parsing in the expression language right now, but it is easy to improve upon, if we know what is needed.

Thank you. Will take a look.