[Feature] Configurable log levels for addons
What happened:
To date, the addon pods produce large amounts of logs, even of non-relevant information (for example: level INFO or DEBUG).
It would be desirable, during the cluster deployment phase, to be able to configure, through configMap or another way, the output level of the logs in order to reduce the impact.
Addons that are more relevant (at least for my usage scenario):
- Calico
- CoreDNS
- Kube Proxy
- OMS Agent
Configured in this way, each AKS cluster produces tens of thousands of useless log lines every day. This information becomes relevant only in case of problems but otherwise, it creates only background noise and costs.
What you expected to happen:
Define in deploy phase and after with a ConfigMap the desired level of logs for AKS addons.
How to reproduce it (as minimally and precisely as possible):
Not relevant
Anything else we need to know?:
Not relevant
Hi pierluigilenoci, 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:
- If this case is urgent, please open a Support Request so that our 24/7 support team may help you faster.
- Please abide by the AKS repo Guidelines and Code of Conduct.
- If you're having an issue, could it be described on the AKS Troubleshooting guides or AKS Diagnostics?
- Make sure your subscribed to the AKS Release Notes to keep up to date with all that's new on AKS.
- 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.
- If you have a question, do take a look at our AKS FAQ. We place the most common ones there!
Triage required from @Azure/aks-pm
Action required from @Azure/aks-pm
Issue needing attention of @Azure/aks-leads
I appreciate your effort Mr @msftbot but you're completely ignored. ❤️

Issue needing attention of @Azure/aks-leads
Thank you @msftbot, you make me feel less alone ❤️

@vishiy, @saaror would you be able to assist?
Issue Details
What happened:
To date, the addon pods produce large amounts of logs, even of non-relevant information (for example: level INFO or DEBUG).
It would be desirable, during the cluster deployment phase, to be able to configure, through configMap or another way, the output level of the logs in order to reduce the impact.
Addons that are more relevant (at least for my usage scenario):
- Calico
- CoreDNS
- Kube Proxy
- OMS Agent
Configured in this way, each AKS cluster produces tens of thousands of useless log lines every day. This information becomes relevant only in case of problems but otherwise, it creates only background noise and costs.
What you expected to happen:
Define in deploy phase and after with a ConfigMap the desired level of logs for AKS addons.
How to reproduce it (as minimally and precisely as possible):
Not relevant
Anything else we need to know?:
Not relevant
| Author: | pierluigilenoci |
|---|---|
| Assignees: | - |
| Labels: |
|
| Milestone: | - |
@robbiezhang thoughts regarding the addons?
Thank you too @miwithro
Azure response times have been getting dramatically long lately. Could it be due to the epidemic?

Action required from @Azure/aks-pm
@msftbot thanks...

Let's see if, by disturbing some random people, we get some feedback.
@qpetraroia @justindavies @miwithro

@pierluigilenoci apologies for the delay on this, we have a rather large backlog of issues we are trying to triage. I would be concerned about dropping log information that may help during RCA on your and our side. If this is a Log Analytics issue (too much data being stored, we may need to look at this in a different way)
@keikhara let's discuss this when you wake up to see if we can reduce chatter before hitting LA
@justindavies this is not a Log Analytics problem.
As I wrote it is a problem that pods produce tons of useless logs (INFO and DEBUG level). Too many logs just generate noise and drive costs up.
The first choice would be to be able to configure, for each pod managed by Azure, the log level of interest (in my case only WARN/ERROR/FATAL would be of interest).
In case of malfunctions, you can always lower the log level again (if useful).
@justindavies

For Calico, there was an addon for the AKS-Engine ( https://github.com/Azure/aks-engine/pull/3396 ). I imagine this change could also be used for managed AKS to fix this issue for Calico. I just tried editing and adding "CALICO_STARTUP_LOGLEVEL" to the environment variables for the Calico daemonset but the change immediately disappears.
The info default level for Calico is entirely too noisy and when we're backing up the logs to Log Analytics. This is wasting AKS resources to process and it is also adding to our logs in Log Analytics.
@justindavies

@justindavies could you please give us a feedback?
@pierluigilenoci just confirming that you are looking to control log generation during deployment and not verbosity controls to 'view the logs' in loganalytics or Kubectl?