Skip to content

Commit

Permalink
feature: include index_codec setting to elastic/logs
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Feb 21, 2024
1 parent 217c893 commit 68d7c89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions elastic/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"sort.field": [ "@timestamp", "host.name" ],
"sort.order": [ "desc", "asc" ]
{% endif %}
"codec": {{ p_index_codec }}
}
},
"mappings": {
Expand Down
1 change: 1 addition & 0 deletions elastic/logs/track.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)) %}

Expand Down

0 comments on commit 68d7c89

Please sign in to comment.