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

Do not emit elastic_product_origin when value is empty #81757

Closed
pgomulka opened this issue Dec 15, 2021 · 1 comment · Fixed by #111683
Closed

Do not emit elastic_product_origin when value is empty #81757

pgomulka opened this issue Dec 15, 2021 · 1 comment · Fixed by #111683
Assignees
Labels
>bug :Core/Infra/Logging Log management and logging utilities Team:Core/Infra Meta label for core/infra team v8.0.0 v8.16.0

Comments

@pgomulka
Copy link
Contributor

In deprecation logs when elastic_product_origin is empty the field is emitted anyway

"elasticsearch.elastic_product_origin":""

The same applies to indexed deprecation logs.
We should fix the deprecation message to only emit a field if the value is not empty

This affects 8.1 and 8.0.
Should not affect 7.16 (just by looking at the code) but should be confirmed

@pgomulka pgomulka added >bug :Core/Infra/Logging Log management and logging utilities v8.0.0 v8.1.0 labels Dec 15, 2021
@pgomulka pgomulka self-assigned this Dec 15, 2021
@elasticmachine elasticmachine added the Team:Core/Infra Meta label for core/infra team label Dec 15, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (Team:Core/Infra)

@rjernst rjernst assigned rjernst and unassigned pgomulka Aug 7, 2024
rjernst added a commit to rjernst/elasticsearch that referenced this issue Aug 7, 2024
The elastic product origin may not always be present when deprecation
messages are emitted. This commit changes the log message created for
deprecations to only emit the product origin field if it is not empty.

closes elastic#81757
@rjernst rjernst closed this as completed in b31feb3 Aug 8, 2024
cbuescher pushed a commit to cbuescher/elasticsearch that referenced this issue Sep 4, 2024
The elastic product origin may not always be present when deprecation
messages are emitted. This commit changes the log message created for
deprecations to only emit the product origin field if it is not empty.

closes elastic#81757
davidkyle pushed a commit to davidkyle/elasticsearch that referenced this issue Sep 5, 2024
The elastic product origin may not always be present when deprecation
messages are emitted. This commit changes the log message created for
deprecations to only emit the product origin field if it is not empty.

closes elastic#81757
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Core/Infra/Logging Log management and logging utilities Team:Core/Infra Meta label for core/infra team v8.0.0 v8.16.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.