Adding mapping for hostname field (#37288)

This new `hostname` field is meant to be a replacement for its sibling `name` field. See https://github.com/elastic/beats/pull/9943, particularly https://github.com/elastic/beats/pull/9943#discussion_r245932581.

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.
This commit is contained in:
Shaunak Kashyap 2019-01-14 12:41:10 -08:00 committed by GitHub
parent 1e3702da0b
commit b86621c157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@
"name": {
"type": "keyword"
},
"hostname": {
"type": "keyword"
},
"os": {
"properties": {
"build": {