[英]Access Log generation of deployed web application on Azure Kubernetes Service (AKS)
I have deployed a web application on Azure Kubernetes Service (AKS). 我已经在Azure Kubernetes服务(AKS)上部署了Web应用程序。 I want to generate access logs (which include HTTP method, path, request body, if possible HTTP headers, and timestamp) of deployed web application and not of Kubernetes Cluster, Nodes and Pods. 我想生成已部署的Web应用程序而不是Kubernetes Cluster,Nodes和Pod的访问日志(包括HTTP方法,路径,请求正文,可能的HTTP标头和时间戳)。 I have used Application Gateway, but it is creating logs of Kubernetes Cluster, Nodes or Pods. 我已经使用了Application Gateway,但是它正在创建Kubernetes集群,节点或Pod的日志。 I have also used Log Analytics on Azure, but it is also not giving me required logs. 我还在Azure上使用过Log Analytics,但它也没有提供所需的日志。
You need your application to generate those logs in some form. 您需要您的应用程序以某种形式生成那些日志。 kubernetes doesnt provide networking logs. kubernetes不提供网络日志。 Easiest way is outputting to stdout, or, perhaps using Application insights. 最简单的方法是输出到标准输出,或者使用应用程序见解。 Another option is using something like Zipkin or Jaeger to capture those. 另一种选择是使用Zipkin或Jaeger之类的东西来捕获它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.