Skip to content

Commit c1d85f0

Browse files
committed
Decode versioned Filebeat dashboards
Follow up from elastic#7224 for Filebeat.
1 parent 9462a10 commit c1d85f0

28 files changed

+12637
-3088
lines changed

filebeat/Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ kibana:
2020
@rm -rf _meta/kibana
2121
@mkdir -p _meta/kibana
2222
@-cp -r module/*/_meta/kibana _meta/
23+
@# Convert all dashboards to string
24+
@python ${ES_BEATS}/libbeat/scripts/unpack_dashboards.py --glob="./_meta/kibana/6/dashboard/*.json"
2325

2426
# Collects all modules files to be packaged in a temporary folder
2527
.PHONY: modules

filebeat/module/apache2/_meta/kibana/6/dashboard/Filebeat-apache2.json

+652-166
Large diffs are not rendered by default.

filebeat/module/auditd/_meta/kibana/6/dashboard/Filebeat-auditd.json

+450-120
Large diffs are not rendered by default.

filebeat/module/icinga/_meta/kibana/6/dashboard/Filebeat-icinga-debug-log.json

+302-77
Large diffs are not rendered by default.

filebeat/module/icinga/_meta/kibana/6/dashboard/Filebeat-icinga-main-log.json

+300-77
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,164 @@
11
{
2-
"objects": [
3-
{
4-
"attributes": {
5-
"description": "",
6-
"kibanaSavedObjectMeta": {
7-
"searchSourceJSON": "{\n \"filter\": []\n}"
8-
},
9-
"savedSearchId": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
10-
"title": "Startup Errors [Filebeat Icinga]",
11-
"uiStateJSON": "{\n \"vis\": {\n \"colors\": {\n \"Count\": \"#BF1B00\"\n }\n }\n}",
12-
"version": 1,
13-
"visState": "{\n \"title\": \"Icinga Startup Errors\",\n \"type\": \"histogram\",\n \"params\": {\n \"addTooltip\": true,\n \"addLegend\": true,\n \"legendPosition\": \"right\",\n \"scale\": \"linear\",\n \"mode\": \"stacked\",\n \"times\": [],\n \"addTimeMarker\": false,\n \"defaultYExtents\": false,\n \"setYExtents\": false\n },\n \"aggs\": [\n {\n \"id\": \"1\",\n \"enabled\": true,\n \"type\": \"count\",\n \"schema\": \"metric\",\n \"params\": {}\n },\n {\n \"id\": \"2\",\n \"enabled\": true,\n \"type\": \"date_histogram\",\n \"schema\": \"segment\",\n \"params\": {\n \"field\": \"@timestamp\",\n \"interval\": \"auto\",\n \"customInterval\": \"2h\",\n \"min_doc_count\": 1,\n \"extended_bounds\": {}\n }\n }\n ],\n \"listeners\": {}\n}"
14-
},
15-
"id": "a59b5e00-2417-11e7-a83b-d5f4cebac9ff",
16-
"type": "visualization",
17-
"version": 2
18-
},
19-
{
20-
"attributes": {
21-
"columns": [
22-
"icinga.startup.facility",
23-
"icinga.startup.severity",
24-
"icinga.startup.message"
25-
],
26-
"description": "",
27-
"hits": 0,
28-
"kibanaSavedObjectMeta": {
29-
"searchSourceJSON": "{\"index\":\"filebeat-*\",\"highlightAll\":true,\"query\":{\"query\":{\"query_string\":{\"query\":\"icinga.startup.severity:critical\",\"analyze_wildcard\":true}},\"language\":\"lucene\"},\"filter\":[],\"version\":true}"
30-
},
31-
"sort": [
32-
"@timestamp",
33-
"desc"
34-
],
35-
"title": "Startup Errors [Filebeat Icinga]",
36-
"version": 1
37-
},
38-
"id": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
39-
"type": "search",
40-
"version": 2
41-
},
42-
{
43-
"attributes": {
44-
"description": "Filebeat Icinga module dashboard for startup errors",
45-
"hits": 0,
46-
"kibanaSavedObjectMeta": {
47-
"searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}},\"highlightAll\":true,\"version\":true}"
48-
},
49-
"optionsJSON": "{\"darkTheme\":false}",
50-
"panelsJSON": "[{\"col\":1,\"id\":\"a59b5e00-2417-11e7-a83b-d5f4cebac9ff\",\"panelIndex\":1,\"row\":1,\"size_x\":12,\"size_y\":2,\"type\":\"visualization\"},{\"col\":1,\"columns\":[\"icinga.startup.facility\",\"icinga.startup.severity\",\"icinga.startup.message\"],\"id\":\"710043e0-2417-11e7-a83b-d5f4cebac9ff\",\"panelIndex\":2,\"row\":3,\"size_x\":12,\"size_y\":13,\"sort\":[\"@timestamp\",\"desc\"],\"type\":\"search\"}]",
51-
"timeRestore": false,
52-
"title": "[Filebeat Icinga] Startup Errors",
53-
"uiStateJSON": "{}",
54-
"version": 1
55-
},
56-
"id": "b9163ea0-2417-11e7-a83b-d5f4cebac9ff",
57-
"type": "dashboard",
58-
"version": 2
59-
}
60-
],
61-
"version": "6.0.0-beta1-SNAPSHOT"
62-
}
2+
"objects": [
3+
{
4+
"attributes": {
5+
"description": "",
6+
"kibanaSavedObjectMeta": {
7+
"searchSourceJSON": {
8+
"filter": []
9+
}
10+
},
11+
"savedSearchId": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
12+
"title": "Startup Errors [Filebeat Icinga]",
13+
"uiStateJSON": {
14+
"vis": {
15+
"colors": {
16+
"Count": "#BF1B00"
17+
}
18+
}
19+
},
20+
"version": 1,
21+
"visState": {
22+
"aggs": [
23+
{
24+
"enabled": true,
25+
"id": "1",
26+
"params": {},
27+
"schema": "metric",
28+
"type": "count"
29+
},
30+
{
31+
"enabled": true,
32+
"id": "2",
33+
"params": {
34+
"customInterval": "2h",
35+
"extended_bounds": {},
36+
"field": "@timestamp",
37+
"interval": "auto",
38+
"min_doc_count": 1
39+
},
40+
"schema": "segment",
41+
"type": "date_histogram"
42+
}
43+
],
44+
"listeners": {},
45+
"params": {
46+
"addLegend": true,
47+
"addTimeMarker": false,
48+
"addTooltip": true,
49+
"defaultYExtents": false,
50+
"legendPosition": "right",
51+
"mode": "stacked",
52+
"scale": "linear",
53+
"setYExtents": false,
54+
"times": []
55+
},
56+
"title": "Icinga Startup Errors",
57+
"type": "histogram"
58+
}
59+
},
60+
"id": "a59b5e00-2417-11e7-a83b-d5f4cebac9ff",
61+
"type": "visualization",
62+
"version": 2
63+
},
64+
{
65+
"attributes": {
66+
"columns": [
67+
"icinga.startup.facility",
68+
"icinga.startup.severity",
69+
"icinga.startup.message"
70+
],
71+
"description": "",
72+
"hits": 0,
73+
"kibanaSavedObjectMeta": {
74+
"searchSourceJSON": {
75+
"filter": [],
76+
"highlightAll": true,
77+
"index": "filebeat-*",
78+
"query": {
79+
"language": "lucene",
80+
"query": {
81+
"query_string": {
82+
"analyze_wildcard": true,
83+
"query": "icinga.startup.severity:critical"
84+
}
85+
}
86+
},
87+
"version": true
88+
}
89+
},
90+
"sort": [
91+
"@timestamp",
92+
"desc"
93+
],
94+
"title": "Startup Errors [Filebeat Icinga]",
95+
"version": 1
96+
},
97+
"id": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
98+
"type": "search",
99+
"version": 2
100+
},
101+
{
102+
"attributes": {
103+
"description": "Filebeat Icinga module dashboard for startup errors",
104+
"hits": 0,
105+
"kibanaSavedObjectMeta": {
106+
"searchSourceJSON": {
107+
"filter": [],
108+
"highlightAll": true,
109+
"query": {
110+
"language": "lucene",
111+
"query": {
112+
"query_string": {
113+
"analyze_wildcard": true,
114+
"query": "*"
115+
}
116+
}
117+
},
118+
"version": true
119+
}
120+
},
121+
"optionsJSON": {
122+
"darkTheme": false
123+
},
124+
"panelsJSON": [
125+
{
126+
"col": 1,
127+
"id": "a59b5e00-2417-11e7-a83b-d5f4cebac9ff",
128+
"panelIndex": 1,
129+
"row": 1,
130+
"size_x": 12,
131+
"size_y": 2,
132+
"type": "visualization"
133+
},
134+
{
135+
"col": 1,
136+
"columns": [
137+
"icinga.startup.facility",
138+
"icinga.startup.severity",
139+
"icinga.startup.message"
140+
],
141+
"id": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
142+
"panelIndex": 2,
143+
"row": 3,
144+
"size_x": 12,
145+
"size_y": 13,
146+
"sort": [
147+
"@timestamp",
148+
"desc"
149+
],
150+
"type": "search"
151+
}
152+
],
153+
"timeRestore": false,
154+
"title": "[Filebeat Icinga] Startup Errors",
155+
"uiStateJSON": {},
156+
"version": 1
157+
},
158+
"id": "b9163ea0-2417-11e7-a83b-d5f4cebac9ff",
159+
"type": "dashboard",
160+
"version": 2
161+
}
162+
],
163+
"version": "6.0.0-beta1-SNAPSHOT"
164+
}

0 commit comments

Comments
 (0)