Skip to content

Instantly share code, notes, and snippets.

@bearice
Created March 24, 2022 10:40
Show Gist options
  • Save bearice/c9e8a437beb9c1c9d27fefc064f3f5e1 to your computer and use it in GitHub Desktop.
Save bearice/c9e8a437beb9c1c9d27fefc064f3f5e1 to your computer and use it in GitHub Desktop.
Loki LogQL for istio log
{app="istio-ingressgateway",namespace="istio-system"}|pattern `[<START_TIME>] "<METHOD> <PATH> <PROTOCOL>" <RESPONSE_CODE> <RESPONSE_FLAGS> <RESPONSE_CODE_DETAILS> <CONNECTION_TERMINATION_DETAILS> "<UPSTREAM_TRANSPORT_FAILURE_REASON>" <BYTES_RECEIVED> <BYTES_SENT> <DURATION> <UPSTREAM_SERVICE_TIME> "<X_FORWARDED_FOR>" "<USER_AGENT>" "<X_REQUEST_ID>" "<AUTHORITY>" "<UPSTREAM_HOST>" <UPSTREAM_CLUSTER> <UPSTREAM_LOCAL_ADDRESS> <DOWNSTREAM_LOCAL_ADDRESS> <DOWNSTREAM_REMOTE_ADDRESS> <REQUESTED_SERVER_NAME> <ROUTE_NAME>`
@mhawkins-globality
Copy link

I found this after 30 min of regexp 'ing istio logs; thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment