Skip to content

Commit

Permalink
fix: again something with codec
Browse files Browse the repository at this point in the history
  • Loading branch information
salvatore-campagna committed Feb 22, 2024
1 parent 5f7eb3e commit 576538b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions elastic/logs/templates/component/track-shared-logsdb-mode.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
"template": {
"settings": {
"index": {
{# 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" ]
"sort.order": [ "asc", "desc" ],
{% elif index_sorting == "timestamp" %}
"sort.field": [ "@timestamp", "host.name" ],
"sort.order": [ "desc", "asc" ]
"sort.order": [ "desc", "asc" ],
{% endif %}
{# 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 #}
}
},
"mappings": {
Expand All @@ -22,4 +22,4 @@
{% endif %}
}
}
}
}

0 comments on commit 576538b

Please sign in to comment.