Skip to content

Conversation

mhofstetter
Copy link
Member

Currently, the log level of the Envoy instance can only be configured (Helm) or adjusted during runtime (Rest API) globally.

Envoy itself provides the possibility to configure the log levels per logger / Envoy component via its Admin interface (https://www.envoyproxy.io/docs/envoy/latest/operations/admin).

This is helpful to reduce the amount of logs while investigating issues.

Therefore, this commit introduces new commands to the cilium-dbg binary to list and change the log levels.

  • cilium-dbg envoy admin logging list
  • cilium-dbg envoy admin logging set global <level>
  • cilium-dbg envoy admin logging set loggers <name>=<level>

Currently, the Envoy Admin Client that is used in the cilium-dbg
closes the underlying connection by keeping a reference to it.

This isn't necessary, as the HTTP client provides the method
`CloseIdleConnections`.

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter added kind/enhancement This would improve or streamline existing functionality. area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. area/cli Impacts the command line interface of any command in the repository. release-note/misc This PR makes changes that have no direct user impact. labels Oct 23, 2024
Currently, the log level of the Envoy instance can only be configured
(Helm) or adjusted during runtime (Rest API) globally.

Envoy itself provides the possibility to configure the log levels per
logger / Envoy component via its Admin interface
(https://www.envoyproxy.io/docs/envoy/latest/operations/admin).

This is helpful to reduce the amount of logs while investigating issues.

Therefore, this commit introduces new commands to the cilium-dbg
binary to list and change the log levels.

* `cilium-dbg envoy admin logging list`
* `cilium-dbg envoy admin logging set global <level>`
* `cilium-dbg envoy admin logging set loggers <name>=<level>`

Signed-off-by: Marco Hofstetter <marco.hofstetter@isovalent.com>
@mhofstetter mhofstetter force-pushed the pr/mhofstetter/cli-envoy-logging branch from d6de661 to d5b5f06 Compare October 23, 2024 10:36
@mhofstetter mhofstetter marked this pull request as ready for review October 23, 2024 12:22
@mhofstetter mhofstetter requested a review from a team as a code owner October 23, 2024 12:22
Copy link
Member

@sayboras sayboras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No comment except the one mentioned by Andrew.

@mhofstetter
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Oct 23, 2024
@borkmann borkmann merged commit a088ab9 into cilium:main Oct 23, 2024
69 checks passed
@mhofstetter mhofstetter deleted the pr/mhofstetter/cli-envoy-logging branch October 23, 2024 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Impacts the command line interface of any command in the repository. area/proxy Impacts proxy components, including DNS, Kafka, Envoy and/or XDS servers. kind/enhancement This would improve or streamline existing functionality. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants