diff --git a/elastic/logs/templates/component/track-custom-mappings.json b/elastic/logs/templates/component/track-custom-mappings.json index 65ac8bee..84e2e37e 100644 --- a/elastic/logs/templates/component/track-custom-mappings.json +++ b/elastic/logs/templates/component/track-custom-mappings.json @@ -1,6 +1,15 @@ { "template" : { "mappings" : { + {% if index_mode | default('standard') is equalto 'standard' %} + "runtime": { + "rally.doc_size": { + "type": "long" + }, + "rally.message_size": { + "type": "long" + } + },{% endif %} "properties" : { "event": { "properties": { @@ -13,17 +22,19 @@ "format": "strict_date_optional_time" } } - }, + }{% if index_mode | default('standard') is equalto 'logsdb' %}, "rally": { "properties" : { "doc_size": { - "type": "long" + "type": "long", + "index": false }, "message_size": { - "type": "long" + "type": "long", + "index": false } } - } + }{% endif %} } } },