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