![]() ![]() ![]() Send a request from sleep to httpbin: $ kubectl exec "$SOURCE_POD" -c sleep - curl -sS -v httpbin:8000/status/418Ĭheck sleep’s log: $ kubectl logs -l app=sleep -c istio-proxy \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" The following table shows an example using the default access log format for a request sent from sleep to httpbin: Log operator \"%REQ(:AUTHORITY)%\" \"%UPSTREAM_HOST%\" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME%\n \"%UPSTREAM_TRANSPORT_FAILURE_REASON%\" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% \"%REQ(X-FORWARDED-FOR)%\" \"%REQ(USER-AGENT)%\" \"%REQ(X-REQUEST-ID)%\" Istio will use the following default access log format if accessLogFormat is not specified: \"%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%\" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% Refer to global mesh options for more information You can also choose between JSON and text by setting accessLogEncoding to JSON or TEXT.įormat of the access log by editing accessLogFormat. Zip $ kubectl apply -f -set meshConfig.accessLogFile=/dev/stdout
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |