-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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+] Change default of ignore_malformed
to true
in logs-*-*
data streams
#95329
[Logs+] Change default of ignore_malformed
to true
in logs-*-*
data streams
#95329
Conversation
ignore_malformed
to true
in logs-*-*
data streams
Pinging @elastic/es-data-management (Team:Data Management) |
...s/src/yamlRestTest/resources/rest-api-spec/test/data_stream/200_logs_datastream_defaults.yml
Outdated
Show resolved
Hide resolved
...s/src/yamlRestTest/resources/rest-api-spec/test/data_stream/200_logs_datastream_defaults.yml
Outdated
Show resolved
Hide resolved
...s/src/yamlRestTest/resources/rest-api-spec/test/data_stream/200_logs_datastream_defaults.yml
Show resolved
Hide resolved
...s/src/yamlRestTest/resources/rest-api-spec/test/data_stream/200_logs_datastream_defaults.yml
Outdated
Show resolved
Hide resolved
Hi @eyalkoren, I've created a changelog YAML for you. |
Hi @eyalkoren, I've updated the changelog YAML for you. |
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.
@felixbarny I do not want to expand the scope of this PR here. But can we keep track somewhere of these changes because I think most of these we should eventually also apply to metrics, traces, etc. for all of the data stream naming scheme.
…ormed' into logs-data-streams-ignore_malformed
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.
LGTM
Let's get in #95469 before merging this to make it easier for users to opt-out, without having to duplicate the whole default logs template. |
This issue is currently blocked on #95481 |
Description
Closes #95224
As part of our effort to accept all logs by default, one of the first issues we want to address is the rejection of whole log event documents due to field type not matching the corresponding mapping.
The intention of this issue is to change the default of
ignore_malformed
totrue
specifically forlogs-*-*
data streams, so that the log event will be indexed and the incorrectly typed field will be ignored. The ignored fields, as well as their values, are available through query, as shown in the added test.Checklist
ignore_malformed: true
at index level forlogs-*-*
data streams@timestamp
field, for which it should remainignore_malformed: false