Skip to content

Commit

Permalink
Don't index rally.* fields in elastic/logs track (elastic#718)
Browse files Browse the repository at this point in the history
* Don't index rally.* fields

* Fallback to runtime field incase of standard index mode
  • Loading branch information
martijnvg authored Dec 30, 2024
1 parent 76072a1 commit d5697bd
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 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,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 %}
}
}
},
Expand Down

0 comments on commit d5697bd

Please sign in to comment.