aws / aws-network-policy-agent

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to change the logging level for the network policy agent container

uditsidana opened this issue · comments

What would you like to be added: Ability to control the logging level for network policy agent container.

Why is this needed:
As the default logging level for network policy agent container is set to "info", for long running nodes this can accumulate a lot of logs. Therefore, could we pass in an env variable just like ipamd or an argument to tune down the logging level.

That's what the log-level argument is for, isn't it?

Agreed. Can we allow the users to set the log level accordingly? And by default maybe not requiring to INFO, as there are way too many logs for it. With or without forwarding to cloud watch, it will be quite unnecessary.

Also, will the logs be rotating on the worker nodes ?