DEV Community

Wajahat Ali Abid
Wajahat Ali Abid

Posted on

1

Enable ContainerLogV2 on AKS

ContainerLogV2 provides additional data over ContainerLog (which is v1). The additional data includes

  • ContainerName
  • PodName
  • PodNamespace

To enable ContainerLogV2 on an existing AKS cluster, you need to create a configmap. Here's how you do this

  • Download the template ConfigMap YAML file for ContainerLog
  • Set containerlog_schema_version = "v2" in the yaml file
  • Update the exclude_namespaces under log_collection_settings.stdout and log_collection_settings.stderr as per your use case
  • Save the changes
  • Connect to Kubernetes cluster using CLI
kubectx my-cluster
Enter fullscreen mode Exit fullscreen mode
  • Run the following command to create the configmap.
kubectl apply -f container-azm-ms-agentconfig.yaml
Enter fullscreen mode Exit fullscreen mode
  • Done

I hope this helps. Refer to Container insights log schema and Configure data collection in Container insights using ConfigMap for more insights.

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series 📺

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series 👀

Watch the Youtube series