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

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

Merged
merged 4 commits into from
Feb 4, 2020

Conversation

urso
Copy link

@urso urso commented Jan 31, 2020

  • 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

@urso urso requested a review from a team as a code owner January 31, 2020 21:06
@urso urso added in progress Pull request is currently in progress. refactoring Team:Beats labels Jan 31, 2020
@urso urso added [zube]: In Review review and removed in progress Pull request is currently in progress. labels Feb 3, 2020
@urso urso requested a review from kvch February 3, 2020 15:51
@urso urso merged commit bc71069 into elastic:master Feb 4, 2020
@urso urso deleted the logp-global-common-bus branch February 4, 2020 19:06
@urso urso added the v7.7.0 label Feb 4, 2020
urso pushed a commit to urso/beats that referenced this pull request Feb 4, 2020
…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 pushed a commit that referenced this pull request Feb 5, 2020
* 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)
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants