diff --git a/elastic/logs/README.md b/elastic/logs/README.md index 3a2b0cec..cf699987 100644 --- a/elastic/logs/README.md +++ b/elastic/logs/README.md @@ -249,6 +249,7 @@ The following parameters are available: * `index_sorting` (default: unset): Whether index sorting should be used. Accepted values: `hostname` and `timestamp`. * `synthetic_source_mode` (default: `false`): Whether to enable synthetic source. * `force_merge_max_num_segments` (default: unset): An integer specifying the max amount of segments the force-merge operation should use. Only supported in `logging-querying` track. +* `index_codec` (default: `best_compression`) - The index codec to use, one of `best_compression` or `best_speed`. ### Querying parameters diff --git a/elastic/logs/templates/component/track-shared-logsdb-mode.json b/elastic/logs/templates/component/track-shared-logsdb-mode.json index e8ee4027..8d01b6dd 100644 --- a/elastic/logs/templates/component/track-shared-logsdb-mode.json +++ b/elastic/logs/templates/component/track-shared-logsdb-mode.json @@ -9,6 +9,7 @@ "sort.field": [ "@timestamp", "host.name" ], "sort.order": [ "desc", "asc" ] {% endif %} + "codec": {{ p_index_codec }} } }, "mappings": { diff --git a/elastic/logs/track.json b/elastic/logs/track.json index 2f9774f4..f3423713 100644 --- a/elastic/logs/track.json +++ b/elastic/logs/track.json @@ -41,6 +41,7 @@ {% set p_restore_data_streams = (restore_data_streams | default("logs-*")) %} {% set p_snapshot_metadata = (snapshot_metadata | default({}))%} {% set p_snapshot_rename_suffix = (snapshot_rename_suffix | default("") ) %} +{% set p_index_codec = (index_codec | default("best_compression") ) %} {% set p_worker_threads_enabled = (worker_threads_enabled | default(true)) %}