Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #16003 to 7.x: Reduce global logging in some docker/k8s + AD related packages #16083

Merged
merged 1 commit into from
Feb 5, 2020

Conversation

urso
Copy link

@urso urso commented Feb 4, 2020

Cherry-pick of PR #16003 to 7.x branch. Original message:

  • Refactoring

What does this PR do?

Reduce/Remove usage of global logging functions in docker and kubernetes related processors and Autodiscovery providers.

The change adds the structured logging field libbeat.processor: <name> to the add_kubernetes_metadata and add_docker_metadata processors. Structured logging is transitive. Error/debug logs produced by the libbeat/common/docker, and libbeat/common/kubernetes packages will also mention the processor name.

Why is it important?

Remove usage of global logging functions and improved structured logging support.

Checklist

  • My code follows the style guidelines of this project
    - [ ] I have commented my code, particularly in hard-to-understand areas
    - [ ] I have made corresponding changes to the documentation
    - [ ] I have made corresponding change to the default configuration files
    - [ ] I have added tests that prove my fix is effective or that my feature works

Author's Checklist

  • [ ]

How to test this PR locally

Related issues

Use cases

Screenshots

Logs

…ic#16003)

* Reduce global logging in some docker/k8s + AD related packages

Reduce/Remove usage of global logging functions in docker and kubernetes related processors and Autodiscovery providers.

The change adds the structured logging field `libbeat.processor: <name>` to the `add_kubernetes_metadata` and `add_docker_metadata` processors. Structured logging is transitive. Error/debug logs produced by the `libbeat/common/docker`, and `libbeat/common/kubernetes` packages will also mention the processor name. 

(cherry picked from commit bc71069)
@urso urso merged commit a771a2b into elastic:7.x Feb 5, 2020
@urso urso deleted the backport_16003_7.x branch February 5, 2020 13:21
@andresrc andresrc added the Team:Integrations Label for the Integrations team label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport review Team:Integrations Label for the Integrations team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants