-
Notifications
You must be signed in to change notification settings - Fork 72
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
[Validation] Detect incorrectly defined dynamic mappings #624
Comments
As of elastic/integrations@eaa7acf this problem occurs 61 times across 12 integrations. |
@andrewkroh thanks for reporting, this actually looks like a definition we shouldn't allow. I wonder if it was assumed that this should behave as if I have started #628 to fix this. I am disallowing any case of |
A field of type object without object_type probably assumes that the type should be keyword, but Fleet is producing invalid mappings (see #624). So better to disallow these mappings to remove ambiguities.
I think we are missing a comprehensive guide to declaring dynamic mappings. We need a list of all the conditions that lead to a dynamic mapping being added by Fleet. This will help guide us in deciding what validations to apply. These are case I have observed, and I wonder if there are more.
It is true that there can be There is another area where this proposed validation would cause issues in the incorrect usage of |
Hi @andrewkroh @jsoriano , after specifying
and as we have Am I missing smth in the understanding of how the indexing work in that case? Btw |
Detect cases where a developer thinks they have declared a dynamic mapping, but have not. Example:
The rule would detect fields where
name
contains an asterisktype == "object"
object_type
is not setWithout specifying an
object_type
the result index template will declare a mapping for a literal name containing*
asterisks and that is unexpected/surprising/wrong.The text was updated successfully, but these errors were encountered: