Skip to content

Commit b86621c

Browse files
authored
Adding mapping for hostname field (#37288)
This new `hostname` field is meant to be a replacement for its sibling `name` field. See elastic/beats#9943, particularly elastic/beats#9943 (comment). This PR simply adds the new field (`hostname`) to the mapping without removing the old one (`name`), because a user might be running an older-version Beat (without this field rename in it) with a newer-version Monitoring ES cluster (with this PR's change in it). AFAICT the Monitoring UI isn't currently using the `name` field so no changes are necessary there yet. If it decides to start using the `name` field, it will also want to look at the value of the `hostname` field.
1 parent 1e3702d commit b86621c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

x-pack/plugin/core/src/main/resources/monitoring-beats.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@
5252
"name": {
5353
"type": "keyword"
5454
},
55+
"hostname": {
56+
"type": "keyword"
57+
},
5558
"os": {
5659
"properties": {
5760
"build": {

0 commit comments

Comments
 (0)