AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[Feature] Configurable log levels for addons

Open pierluigilenoci opened this issue 5 years ago • 74 comments

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

pierluigilenoci avatar May 03 '21 14:05 pierluigilenoci

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:

  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 May 03 '21 14:05 ghost

Triage required from @Azure/aks-pm

ghost avatar May 05 '21 18:05 ghost

Action required from @Azure/aks-pm

ghost avatar May 10 '21 19:05 ghost

Issue needing attention of @Azure/aks-leads

ghost avatar May 26 '21 00:05 ghost

I appreciate your effort Mr @msftbot but you're completely ignored. ❤️

DefiantGranularFrilledlizard-size_restricted

pierluigilenoci avatar May 26 '21 15:05 pierluigilenoci

Issue needing attention of @Azure/aks-leads

ghost avatar Jun 10 '21 18:06 ghost

Thank you @msftbot, you make me feel less alone ❤️

giphy

pierluigilenoci avatar Jun 11 '21 07:06 pierluigilenoci

@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:

Needs Attention :wave:, action-required, addon/container-insights, triage

Milestone: -

ghost avatar Jun 11 '21 15:06 ghost

@robbiezhang thoughts regarding the addons?

miwithro avatar Jun 11 '21 15:06 miwithro

Thank you too @miwithro

Azure response times have been getting dramatically long lately. Could it be due to the epidemic?

200

pierluigilenoci avatar Jun 15 '21 08:06 pierluigilenoci

Action required from @Azure/aks-pm

ghost avatar Jul 15 '21 16:07 ghost

@msftbot thanks...

tenor

pierluigilenoci avatar Jul 16 '21 07:07 pierluigilenoci

Let's see if, by disturbing some random people, we get some feedback.

@qpetraroia @justindavies @miwithro

tenor

pierluigilenoci avatar Jul 16 '21 07:07 pierluigilenoci

@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 avatar Jul 16 '21 07:07 justindavies

@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).

pierluigilenoci avatar Jul 16 '21 07:07 pierluigilenoci

@justindavies

tenor

pierluigilenoci avatar Jul 22 '21 13:07 pierluigilenoci

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.

lupusllc avatar Aug 11 '21 18:08 lupusllc

@justindavies

FUjRaQe

pierluigilenoci avatar Aug 12 '21 08:08 pierluigilenoci

@justindavies could you please give us a feedback?

pierluigilenoci avatar Aug 23 '21 12:08 pierluigilenoci

@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?

Kaarthis-zz avatar Sep 28 '21 20:09 Kaarthis-zz