You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For array fields treated as unordered sets, we should add synthetic_source_keep: "none" to the mappings to optimize storage under LogsDB. Fields like host.ip and related.ip would be candidates because order and duplicates are irrelevant.
Adding this option prevents the array field from being stored in _source.
Support for this is in-progress in Elasticsearch and will be first available in 8.16.
A first step that can be taken here is to add support into the ECS repo to allow expressing which fields are unordered sets. This can be done before Elasticsearch has the synthetic_source_keep: "none" mapping parameter. Once Elasticsearch has it then we can update the generators to output Elasticsearch mappings containing the parameter.
I would like to begin the process of annotating the fields that can receive this optimization, but we need support in the schema/*.yml files first.
This work can proceed. LogsDB is enabled by default in Serverless and will be on by default in ES 9.0. So now is a great time to implement the optimizations for fields like tags and related.ip.
The changes should also be added to the ecs@mappings dynamic template that is bundled into Elasticsearch.
For array fields treated as unordered sets, we should add
synthetic_source_keep: "none"
to the mappings to optimize storage under LogsDB. Fields likehost.ip
andrelated.ip
would be candidates because order and duplicates are irrelevant.Adding this option prevents the array field from being stored in
_source
.Support for this is in-progress in Elasticsearch and will be first available in 8.16.
References
Related
The text was updated successfully, but these errors were encountered: