-
Notifications
You must be signed in to change notification settings - Fork 25.2k
datastream doesn't work with ignore_malformed setting #71755
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
Comments
Pinging @elastic/es-core-features (Team:Core/Features) |
Thanks for reporting @eljohnson92. Document inside a data stream should always have a valid timestamp in the In this case, with an index wide |
Thanks for responding @martijnvg is there anything we should do to work around this outside of just turning off |
I was going to reply that the following template (with
Only it doesn't. Another validation error occurs, which in my opinion shouldn't. I will fix this. Unfortunately I don't see a work around this and it seems like disabling |
If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes elastic#71755
…2406) If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes #71755
Backporting elastic#72406 to 7.x branch. If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes elastic#71755
Backporting elastic#72406 to 7.13 branch. If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes elastic#71755
…2446) Backporting #72406 to 7.13 branch. If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes #71755
…2444) Backporting #72406 to 7.x branch. If `index.mapping.ignore_malformed` has been set to `true` then here is no way to overwrite that to `false` for a data stream's timestamp field. Before this commit, validation would fail that disallow the usage of `ignore_malformed` attribute on a data stream's timestamp field. This commit allows the usage of `ignore_malformed` attribute, so that `index.mapping.ignore_malformed` can be disabled for a data stream's timestamp field. The `ignore_malformed` attribute can only be set to false. This allows the following index template: ``` PUT /_index_template/filebeat { "index_patterns": [ "filebeat-*" ], "template": { "settings": { "index": { "mapping.ignore_malformed": true } }, "mappings": { "properties": { "@timestamp": { "type": "date", "ignore_malformed": false } } } }, "data_stream": {} } ``` Closes #71755
Elasticsearch version : 7.12.0
Plugins installed: [mapper-size]
Description of the problem including expected versus actual behavior:
We are using the index.mapping.ignore_malformed: true setting with datastream for our general purpose logging solution. the index-template would be applied successfully in elastic version 7.9.0 but after upgrading to 7.11.2, and then also trying 7.12.0 it errors out
Steps to reproduce:
request
response:
The text was updated successfully, but these errors were encountered: