Access Log generation of deployed web application on Azure Kubernetes Service (AKS)

2/10/2019

I have deployed a web application on Azure Kubernetes Service (AKS). 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. I have used Application Gateway, but it is creating logs of Kubernetes Cluster, Nodes or Pods. I have also used Log Analytics on Azure, but it is also not giving me required logs.

-- Arslan Mahmood
azure
azure-aks
azure-kubernetes
kubernetes
web-applications

1 Answer

2/10/2019

You need your application to generate those logs in some form. kubernetes doesnt provide networking logs. Easiest way is outputting to stdout, or, perhaps using Application insights. Another option is using something like Zipkin or Jaeger to capture those.

-- 4c74356b41
Source: StackOverflow