Update logstash mappings to use pipeline.id + correct metric types (elastic/x-pack-elasticsearch#2045)

In logstash parlance there really is no pipeline.name, its pipeline.id

This also removes support for deprecated gauge types `text` and `boolean` we will be removing those soon in logstash

This also renames `counters` to `long_counters` to be more explicit and for consistency with the gauge type. Also, if we ever decide to add other types of counters this will be more clear

Original commit: elastic/x-pack-elasticsearch@8f44a94579
This commit is contained in:
Andrew Cholakian 2017-07-20 14:30:37 -05:00 committed by GitHub
parent 30f2b3f90e
commit c8e42a0db6
1 changed files with 3 additions and 25 deletions

View File

@ -243,7 +243,7 @@
"pipelines": {
"type": "nested",
"properties": {
"name": {
"id": {
"type": "keyword"
},
"hash": {
@ -292,7 +292,7 @@
"events_out": { "type": "long" },
"duration_in_millis": { "type": "long" },
"queue_push_duration_in_millis": { "type": "long" },
"counters": {
"long_counters": {
"type": "nested",
"properties": {
"name": {
@ -313,28 +313,6 @@
"type": "double"
}
}
},
"text_gauges": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "keyword"
}
}
},
"boolean_gauges": {
"type": "nested",
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "boolean"
}
}
}
}
},
@ -386,7 +364,7 @@
},
"pipeline": {
"properties": {
"name": {
"id": {
"type": "keyword"
},
"hash": {