本文介绍了istio-proxy访问日志是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试通过查看istio-proxy访问日志(它记录每次访问)来对我的服务进行故障排除.但是,我找不到任何说明日志中每个条目含义的文档.

I am trying to troubleshoot my service by looking at the istio-proxy access log (it logs every access). However, I can't find any documentation that explains the meaning of each entry in the log.

例如

上面的日志是什么意思?

What does log above mean?

我尝试了 Vadim的答案,但找不到日志格式数据.这是输出json文件.我有什么想念的吗?我正在使用istio-1.0.0

I've tried Vadim's answer, but I couldn't find the log format data. Here's the output json file. Is there anything that I miss?I am using istio-1.0.0

推荐答案

Istio/Envoy访问日志带有默认格式.这是默认格式

Istio/Envoy access logs comes with a default format.Here is the default format

[%START_TIME%] "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%"\n

它与您提供的示例日志条目匹配.您可以找到有关字段的详细信息,以及有关特使访问日志的一般信息,这里

It matches with the sample log entry that you have given. You can find more details about the fields and generally about envoy's access logs here

这篇关于istio-proxy访问日志是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 13:25