Skip to content

Commit eb30825

Browse files
authored
Backport: Add template config for Beat state to X-Pack Monitoring (#31809) (#31893)
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 4424bfc commit eb30825

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

+41
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,47 @@
1212
"doc": {
1313
"dynamic": false,
1414
"properties": {
15+
"beats_state": {
16+
"properties": {
17+
"beat": {
18+
"properties": {
19+
"host": {
20+
"type": "keyword"
21+
},
22+
"name": {
23+
"type": "keyword"
24+
},
25+
"type": {
26+
"type": "keyword"
27+
},
28+
"uuid": {
29+
"type": "keyword"
30+
},
31+
"version": {
32+
"type": "keyword"
33+
}
34+
}
35+
},
36+
"state": {
37+
"properties": {
38+
"module": {
39+
"properties": {
40+
"count": {
41+
"type": "long"
42+
},
43+
"names": {
44+
"type": "keyword"
45+
}
46+
}
47+
}
48+
}
49+
},
50+
"timestamp": {
51+
"format": "date_time",
52+
"type": "date"
53+
}
54+
}
55+
},
1556
"beats_stats": {
1657
"properties": {
1758
"beat": {

0 commit comments

Comments
 (0)