Skip to content

Commit

Permalink
Fallback to runtime field incase of standard index mode
Browse files Browse the repository at this point in the history
  • Loading branch information
martijnvg committed Dec 28, 2024
1 parent 30914eb commit b55bb13
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions elastic/logs/templates/component/track-custom-mappings.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -13,7 +22,7 @@
"format": "strict_date_optional_time"
}
}
},
}{% if index_mode | default('standard') is equalto 'logsdb' %},
"rally": {
"properties" : {
"doc_size": {
Expand All @@ -25,7 +34,7 @@
"index": false
}
}
}
}{% endif %}
}
}
},
Expand Down

0 comments on commit b55bb13

Please sign in to comment.