Skip to content

Commit

Permalink
Decode versioned Filebeat dashboards
Browse files Browse the repository at this point in the history
Follow up from elastic#7224 for Filebeat.
  • Loading branch information
ruflin committed Jun 5, 2018
1 parent 9462a10 commit c1d85f0
Show file tree
Hide file tree
Showing 28 changed files with 12,637 additions and 3,088 deletions.
2 changes: 2 additions & 0 deletions filebeat/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ kibana:
@rm -rf _meta/kibana
@mkdir -p _meta/kibana
@-cp -r module/*/_meta/kibana _meta/
@# Convert all dashboards to string
@python ${ES_BEATS}/libbeat/scripts/unpack_dashboards.py --glob="./_meta/kibana/6/dashboard/*.json"

# Collects all modules files to be packaged in a temporary folder
.PHONY: modules
Expand Down
818 changes: 652 additions & 166 deletions filebeat/module/apache2/_meta/kibana/6/dashboard/Filebeat-apache2.json

Large diffs are not rendered by default.

570 changes: 450 additions & 120 deletions filebeat/module/auditd/_meta/kibana/6/dashboard/Filebeat-auditd.json

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,62 +1,164 @@
{
"objects": [
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\n \"filter\": []\n}"
},
"savedSearchId": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
"title": "Startup Errors [Filebeat Icinga]",
"uiStateJSON": "{\n \"vis\": {\n \"colors\": {\n \"Count\": \"#BF1B00\"\n }\n }\n}",
"version": 1,
"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}"
},
"id": "a59b5e00-2417-11e7-a83b-d5f4cebac9ff",
"type": "visualization",
"version": 2
},
{
"attributes": {
"columns": [
"icinga.startup.facility",
"icinga.startup.severity",
"icinga.startup.message"
],
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"index\":\"filebeat-*\",\"highlightAll\":true,\"query\":{\"query\":{\"query_string\":{\"query\":\"icinga.startup.severity:critical\",\"analyze_wildcard\":true}},\"language\":\"lucene\"},\"filter\":[],\"version\":true}"
},
"sort": [
"@timestamp",
"desc"
],
"title": "Startup Errors [Filebeat Icinga]",
"version": 1
},
"id": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
"type": "search",
"version": 2
},
{
"attributes": {
"description": "Filebeat Icinga module dashboard for startup errors",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": "{\"filter\":[],\"query\":{\"language\":\"lucene\",\"query\":{\"query_string\":{\"analyze_wildcard\":true,\"query\":\"*\"}}},\"highlightAll\":true,\"version\":true}"
},
"optionsJSON": "{\"darkTheme\":false}",
"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\"}]",
"timeRestore": false,
"title": "[Filebeat Icinga] Startup Errors",
"uiStateJSON": "{}",
"version": 1
},
"id": "b9163ea0-2417-11e7-a83b-d5f4cebac9ff",
"type": "dashboard",
"version": 2
}
],
"version": "6.0.0-beta1-SNAPSHOT"
}
"objects": [
{
"attributes": {
"description": "",
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": []
}
},
"savedSearchId": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
"title": "Startup Errors [Filebeat Icinga]",
"uiStateJSON": {
"vis": {
"colors": {
"Count": "#BF1B00"
}
}
},
"version": 1,
"visState": {
"aggs": [
{
"enabled": true,
"id": "1",
"params": {},
"schema": "metric",
"type": "count"
},
{
"enabled": true,
"id": "2",
"params": {
"customInterval": "2h",
"extended_bounds": {},
"field": "@timestamp",
"interval": "auto",
"min_doc_count": 1
},
"schema": "segment",
"type": "date_histogram"
}
],
"listeners": {},
"params": {
"addLegend": true,
"addTimeMarker": false,
"addTooltip": true,
"defaultYExtents": false,
"legendPosition": "right",
"mode": "stacked",
"scale": "linear",
"setYExtents": false,
"times": []
},
"title": "Icinga Startup Errors",
"type": "histogram"
}
},
"id": "a59b5e00-2417-11e7-a83b-d5f4cebac9ff",
"type": "visualization",
"version": 2
},
{
"attributes": {
"columns": [
"icinga.startup.facility",
"icinga.startup.severity",
"icinga.startup.message"
],
"description": "",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"highlightAll": true,
"index": "filebeat-*",
"query": {
"language": "lucene",
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "icinga.startup.severity:critical"
}
}
},
"version": true
}
},
"sort": [
"@timestamp",
"desc"
],
"title": "Startup Errors [Filebeat Icinga]",
"version": 1
},
"id": "710043e0-2417-11e7-a83b-d5f4cebac9ff",
"type": "search",
"version": 2
},
{
"attributes": {
"description": "Filebeat Icinga module dashboard for startup errors",
"hits": 0,
"kibanaSavedObjectMeta": {
"searchSourceJSON": {
"filter": [],
"highlightAll": true,
"query": {
"language": "lucene",
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
}
},
"version": true
}
},
"optionsJSON": {
"darkTheme": false
},
"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"
}
],
"timeRestore": false,
"title": "[Filebeat Icinga] Startup Errors",
"uiStateJSON": {},
"version": 1
},
"id": "b9163ea0-2417-11e7-a83b-d5f4cebac9ff",
"type": "dashboard",
"version": 2
}
],
"version": "6.0.0-beta1-SNAPSHOT"
}
Loading

0 comments on commit c1d85f0

Please sign in to comment.