-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
logs-apm.error-*: define log.level field as keyword #112440
logs-apm.error-*: define log.level field as keyword #112440
Conversation
This commit sets `log.level: "error"` as a `constant_keyword` for all apm error logs. Part of elastic/apm-server#13956 Signed-off-by: Marc Lopez Rubio <[email protected]>
Pinging @elastic/es-data-management (Team:Data Management) |
Hi @marclop, I've created a changelog YAML for you. |
@@ -26,6 +26,9 @@ template: | |||
processor.event: | |||
type: constant_keyword | |||
value: error | |||
log.level: | |||
type: constant_keyword |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure about using constant_keyword
for this. I think OTel exception logs could explicitly set a log level to something other than "error", which could conflict with this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh... I wasn't aware of that case. Should it then be mapped in apm-data
and just added as a keyword?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not convinced we should set a default value for log.level
, so wouldn't make a change to apm-data; but it makes sense to map the field as keyword
.
Signed-off-by: Marc Lopez Rubio <[email protected]>
Defines `log.level` as a `keyword` for all apm error logs. --------- Signed-off-by: Marc Lopez Rubio <[email protected]>
This commit defines a new mapping
log.level
as akeyword
for all apm error logs.Part of elastic/apm-server#13956