diff --git a/elastic/logs/README.md b/elastic/logs/README.md index 7cd1f561..5186e7a4 100644 --- a/elastic/logs/README.md +++ b/elastic/logs/README.md @@ -229,6 +229,7 @@ The following parameters are available: * `recovery_small_max_batch_size` (default: `4MB`) - The maximum estimated size for the batch of translog operations to return. * `recovery_large_max_batch_size` (default: `32MB`) - The maximum estimated size for the batch of translog operations to return. * `recovery_max_operations_count` (default: `16777216`) - The maximum number of translog operations to return in a single batch. +* `use_doc_values_sparse_index` (default: unset) - Whether a doc values sparse index is used for the host.name and @timestamp fields. ### Data Download Parameters diff --git a/elastic/logs/templates/component/track-shared-logsdb-mode.json b/elastic/logs/templates/component/track-shared-logsdb-mode.json index c533134f..eb546d99 100644 --- a/elastic/logs/templates/component/track-shared-logsdb-mode.json +++ b/elastic/logs/templates/component/track-shared-logsdb-mode.json @@ -16,6 +16,9 @@ {% if synthetic_source_keep %} ,"mapping.synthetic_source_keep": {{ synthetic_source_keep | tojson }} {% endif %} + {% if use_doc_values_sparse_index %} + ,"mapping.use_doc_values_sparse_index": {{ use_doc_values_sparse_index | tojson }} + {% endif %} } {% endif %} }