Skip to content

Commit c5c860d

Browse files
authored
Add template config for Beat state to X-Pack Monitoring (elastic#31809)
With elastic/beats#7075 Beats introduces state reporting for X-Pack Monitoring. The data sent up to Elasticsearch ends up stored in the following format. ``` "beats_state": { "timestamp": "2018-07-05T07:21:03.581Z", "state": { "module": { "count": 1, "names": [ "http" ] } }, "beat": { "uuid": "594039b5-6353-4d78-9bad-778ecc0fe83f", "type": "metricbeat", "version": "7.0.0-alpha1", "name": "ruflin", "host": "ruflin" } } ``` This PR adds the new fields to the template.
1 parent 3aa0de9 commit c5c860d

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,47 @@
1414
"doc": {
1515
"dynamic": false,
1616
"properties": {
17+
"beats_state": {
18+
"properties": {
19+
"beat": {
20+
"properties": {
21+
"host": {
22+
"type": "keyword"
23+
},
24+
"name": {
25+
"type": "keyword"
26+
},
27+
"type": {
28+
"type": "keyword"
29+
},
30+
"uuid": {
31+
"type": "keyword"
32+
},
33+
"version": {
34+
"type": "keyword"
35+
}
36+
}
37+
},
38+
"state": {
39+
"properties": {
40+
"module": {
41+
"properties": {
42+
"count": {
43+
"type": "long"
44+
},
45+
"names": {
46+
"type": "keyword"
47+
}
48+
}
49+
}
50+
}
51+
},
52+
"timestamp": {
53+
"format": "date_time",
54+
"type": "date"
55+
}
56+
}
57+
},
1758
"beats_stats": {
1859
"properties": {
1960
"beat": {

0 commit comments

Comments
 (0)