AKS icon indicating copy to clipboard operation
AKS copied to clipboard

Logs from Pods not always collected

Open trhumphries opened this issue 5 years ago • 8 comments

What happened: We have Azure Monitor with Container Insights hooked up to our AKS clusters. In some cases the log for individual pods are not being collected and forwarded to Azure monitor. In some cases no log entries for a pod are collected in other cases only part of the log entries get collected. We use Console logging for all of our logs. Note that in all cases I can dump the logs from the pod and the entries do exist. The Log entries are going to stderr

What you expected to happen: I expect all entries written to stderr and stdout to be reflected in the ContainerLogs table in Azure Monitor

How to reproduce it (as minimally and precisely as possible): Setup a cluster using Azure Monitor

Anything else we need to know?: This only started happening with in the last 10 days. I only noticed today because I was trying to diagnose an issue

Environment: AKS

  • Kubernetes version (use kubectl version): 1.20.9
  • Size of cluster (how many worker nodes are in the cluster?) 10
  • General description of workloads in the cluster (e.g. HTTP microservices, Java app, Ruby on Rails, machine learning, etc.) Http Micro services and cron jobs
  • Others:

trhumphries avatar Oct 20 '21 16:10 trhumphries

Hi trhumphries, AKS bot here :wave: Thank you for posting on the AKS Repo, I'll do my best to get a kind human from the AKS team to assist you.

I might be just a bot, but I'm told my suggestions are normally quite good, as such:

  1. If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
  2. Please abide by the AKS repo Guidelines and Code of Conduct.
  3. If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
  4. Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
  5. Make sure there isn't a duplicate of this issue already reported. If there is, feel free to close this one and '+1' the existing issue.
  6. If you have a question, do take a look at our AKS FAQ. We place the most common ones there!

ghost avatar Oct 20 '21 16:10 ghost

@trhumphries , would be able to contact [email protected] with your cluster resource ID, and the name of the node w/ missing logs. We can help you investigate the issue there.

austonli avatar Oct 22 '21 16:10 austonli

Triage required from @Azure/aks-pm

ghost avatar Nov 03 '21 06:11 ghost

Action required from @Azure/aks-pm

ghost avatar Nov 08 '21 16:11 ghost

In the future, for something specifically related to your cluster like this, please open a service request. This kind of transient problem is usually specific to a single cluster or region and needs to be investigated by support. If you're still experiencing the issue now, please open a support request. Otherwise, please open one if it reoccurs

phealy avatar Nov 14 '21 23:11 phealy

Hi there :wave: AKS bot here. This issue has been tagged as needing a support request so that the AKS support and engineering teams have a look into this particular cluster/issue.

Follow the steps here to create a support ticket for Azure Kubernetes Service and the cluster discussed in this issue.

Please do mention this issue in the case description so our teams can coordinate to help you.

Thank you!

ghost avatar Nov 14 '21 23:11 ghost

Case being worked with Microsoft Support, adding stale label for automatic closure if not other reports are added.

ghost avatar Nov 22 '21 00:11 ghost

This issue will now be closed because it hasn't had any activity for 7 days after stale. trhumphries feel free to comment again on the next 7 days to reopen or open a new issue after that time if you still have a question/issue or suggestion.

ghost avatar Nov 29 '21 01:11 ghost