Skip to content

Commit

Permalink
fix: cluster to index setting and default value
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Feb 22, 2024
1 parent e6b6db9 commit 28a74a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"template": {
"settings": {
"index": {
{# non-serverless-cluster-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%}
"codec": {{ p_index_codec }},
{%- endif -%}{# non-serverless-cluster-settings-marker-end #}
{# non-serverless-index-settings-marker-start #}{%- if build_flavor != "serverless" or serverless_operator == true -%}
"codec": {{ index_codec | default("best_compression") }},
{%- endif -%}{# non-serverless-index-settings-marker-end #}
{% if index_sorting == "hostname" %}
"sort.field": [ "host.name", "@timestamp" ],
"sort.order": [ "asc", "desc" ]
Expand Down
1 change: 0 additions & 1 deletion elastic/logs/track.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
{% 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_dsl_poll_interval = (dsl_poll_interval | default(false) ) %}
{% set p_dsl_default_rollover = (dsl_default_rollover | default(false) ) %}

Expand Down

0 comments on commit 28a74a9

Please sign in to comment.