From ab8bdb25618ad1ee1ac6b1761bb89fe5eb09d11b Mon Sep 17 00:00:00 2001 From: Andrew T Date: Wed, 2 Apr 2014 15:53:08 +0700 Subject: [PATCH] Edit dashboards/default.json and dashboards/guided.json. --- src/app/dashboards/blank.json | 0 src/app/dashboards/default.json | 48 ++++--- src/app/dashboards/guided.json | 242 ++++++++++++++++++++++---------- src/app/dashboards/logstash.js | 0 src/app/dashboards/noted.json | 0 5 files changed, 197 insertions(+), 93 deletions(-) mode change 100755 => 100644 src/app/dashboards/blank.json mode change 100755 => 100644 src/app/dashboards/guided.json mode change 100755 => 100644 src/app/dashboards/logstash.js mode change 100755 => 100644 src/app/dashboards/noted.json diff --git a/src/app/dashboards/blank.json b/src/app/dashboards/blank.json old mode 100755 new mode 100644 diff --git a/src/app/dashboards/default.json b/src/app/dashboards/default.json index 446055442..8f190a44d 100644 --- a/src/app/dashboards/default.json +++ b/src/app/dashboards/default.json @@ -25,8 +25,8 @@ ], "list": { "0": { - "from": "2014-01-29T21:45:46.000Z", - "to": "2014-02-28T22:30:10.897Z", + "from": "2014-04-01T07:47:30.228Z", + "to": "2014-04-02T07:47:30.228Z", "field": "event_timestamp", "type": "time", "mandate": "must", @@ -57,7 +57,7 @@ "default" ], "type": "timepicker", - "mode": "since", + "mode": "relative", "time_options": [ "5m", "15m", @@ -69,7 +69,7 @@ "7d", "30d" ], - "timespan": "30d", + "timespan": "24h", "timefield": "event_timestamp", "timeformat": "", "refresh": { @@ -78,11 +78,7 @@ "min": 3 }, "filter_id": 0, - "status": "Stable", - "time": { - "from": "01/29/2014 13:45:46", - "to": "02/28/2014 14:30:10" - } + "status": "Stable" }, { "error": false, @@ -96,7 +92,8 @@ "error" ], "remember": 10, - "title": "Search" + "title": "Search", + "def_type": "" } ] }, @@ -115,12 +112,29 @@ "loadingEditor": false, "status": "Stable", "mode": "markdown", - "content": "This is the demonstration dashboard for Banana, a port of Kibana for Solr. This points to a collection called logstash\\_logs. If you followed the QuickStart instructions provided by the the Solr Output Writer for LogStash, you will see example data here. \n\nTo build your own dashboards, first get time series data into a collection. Then you can begin with this dashboard and configure it to fit your needs.", + "content": "This is the demonstration dashboard for Banana, a port of Kibana for Solr. This points to a collection called logstash\\_logs. If you followed the QuickStart instructions provided by the Solr Output Writer for LogStash, you will see example data here. \n\nTo build your own dashboards, first get time series data into a collection. Then you can begin with this dashboard and configure it to fit your needs.", "style": {}, "title": "Welcome to Banana" } ] }, + { + "title": "Filter", + "height": "150px", + "editable": true, + "collapse": true, + "collapsable": true, + "panels": [ + { + "error": false, + "span": 12, + "editable": true, + "type": "filtering", + "loadingEditor": false, + "title": "Filter" + } + ] + }, { "title": "Graph", "height": "350px", @@ -141,7 +155,7 @@ "max_rows": 100000, "auto_int": true, "resolution": 100, - "interval": "12h", + "interval": "10m", "fill": 3, "linewidth": 3, "timezone": "browser", @@ -161,7 +175,7 @@ "ids": [ 0 ], - "query": "q=*:*", + "query": "q=error&df=message&df=host&df=path&df=type&wt=json&rows=0&fq=event_timestamp:[2014-04-01T07:47:30.228Z%20TO%202014-04-02T07:47:30.228Z]&facet=true&facet.range=event_timestamp&facet.range.start=2014-04-01T07:47:30.228Z/DAY&facet.range.end=2014-04-02T07:47:30.228Z%2B1DAY/DAY&facet.range.gap=%2B10MINUTE", "custom": "" }, "title": "System Log Messages", @@ -184,7 +198,9 @@ "tooltip": { "value_type": "cumulative", "query_as_alias": false - } + }, + "group_field": null, + "error": false }, { "error": false, @@ -197,7 +213,7 @@ "ids": [ 0 ], - "query": "q=*:*", + "query": "q=error&df=message&df=host&df=path&df=type&wt=json&rows=0&fq=event_timestamp:[2014-04-01T07:47:30.228Z%20TO%202014-04-02T07:47:30.228Z]&facet=true&facet.field=syslog_program&facet.range=event_timestamp&facet.range.start=2014-04-01T07:47:30.228Z&facet.range.end=2014-04-02T07:47:30.228Z&facet.range.gap=%2B1DAY&facet.limit=10", "custom": "" }, "field": "syslog_program", @@ -263,7 +279,7 @@ "ids": [ 0 ], - "query": "q=*:*", + "query": "q=error&df=message&df=host&df=path&df=type&wt=json&rows=1000&fq=event_timestamp:[2014-04-01T07:47:30.228Z%20TO%202014-04-02T07:47:30.228Z]&sort=event_timestamp desc", "custom": "" }, "field_list": true, diff --git a/src/app/dashboards/guided.json b/src/app/dashboards/guided.json old mode 100755 new mode 100644 index 7bc0d23da..76a2aa21f --- a/src/app/dashboards/guided.json +++ b/src/app/dashboards/guided.json @@ -1,5 +1,5 @@ { - "title": "Your Basic Dashboard", + "title": "Basic Dashboard With Pointers", "services": { "query": { "idQueue": [ @@ -24,17 +24,29 @@ }, "filter": { "idQueue": [ - 0, 1, 2 ], - "list": {}, - "ids": [] + "list": { + "0": { + "from": "2014-04-02T05:07:22.216Z", + "to": "2014-04-02T05:22:22.216Z", + "field": "event_timestamp", + "type": "time", + "mandate": "must", + "active": true, + "alias": "", + "id": 0 + } + }, + "ids": [ + 0 + ] } }, "rows": [ { - "title": "Options", + "title": "Overview", "height": "50px", "editable": true, "collapse": false, @@ -42,7 +54,19 @@ "panels": [ { "error": false, - "span": 8, + "span": 6, + "editable": true, + "type": "text", + "loadingEditor": false, + "status": "Stable", + "mode": "markdown", + "content": "You may be seeing a message that says Solr is not reachable or that the collection is not found. Click on _Configure Dashboard_ (cog icon) on the top right and set the Solr server and collection. By default, we have configured the dashboard to point to server _http://localhost:8983_ and collection _collection1_. You can also choose how many rows you want to have in the dashboard. \n\nTo configure what panels appear in a specific row, click on the _Configure Row_ (cog icon) at the far left of the row.\n\nEach panel can be configured by clicking on _Configure_ (cog icon) near the top right of the panel (just to the left of the panel type). The span of the panel determines its width; each row has width 12, and each panel can take up all or part of this span.\n\nAfter reading these _text panels_ (which are useful for presenting information about a dashboard), you can delete them by clicking on the \"x\" towards the top right of the panel.", + "style": {}, + "title": "Configure Dashboard" + }, + { + "error": false, + "span": 6, "editable": true, "group": [ "default" @@ -50,22 +74,55 @@ "type": "text", "status": "Stable", "mode": "markdown", - "content": "If you have a field with a timestamp in it, you might want to add a 'timepicker' panel here. Click the plus sign over to the right to do so. You can also remove these information text panels there by clicking the 'x' icon above", + "content": "In the row below, we have put in a _time picker_ and a _search bar._ Banana is primarily designed for time series data, and we expect every dashboard to have a time picker. You will also almost always have a search bar for user searches. \n\nBelow that there is a hidden row that contains a _filtering_ module, which is used to configure global filter queries. You will almost certainly want to have one. Clicking on any facet in the terms module will filter results by that value. You can modify each filter once it is created; you can change the value and/or choose between \"must\", \"must not\" and \"either.\"\n\nClick on the right-facing triangle to the far left of the row to _Expand Row_. You can click on the upward-facing triangle on any row in order to _Hide Row._", "style": {}, - "title": "Have a timestamp somewhere?" + "title": "Timestamps, Queries and Filters" } ] }, { - "title": "Query", + "title": "Query and Time Window", "height": "50px", "editable": true, "collapse": false, "collapsable": true, "panels": [ + { + "error": "", + "span": 6, + "editable": true, + "type": "timepicker", + "loadingEditor": false, + "status": "Stable", + "mode": "relative", + "time_options": [ + "5m", + "15m", + "1h", + "6h", + "12h", + "24h", + "2d", + "7d", + "30d", + "90d", + "1y", + "5y" + ], + "timespan": "15m", + "timefield": "event_timestamp", + "timeformat": "", + "refresh": { + "enable": false, + "interval": 30, + "min": 3 + }, + "filter_id": 0, + "title": "Time Window" + }, { "error": false, - "span": 5, + "span": 6, "editable": true, "group": [ "default" @@ -78,21 +135,8 @@ "remember": 10, "pinned": true, "query": "*", - "title": "Search" - }, - { - "error": false, - "span": 7, - "editable": true, - "group": [ - "default" - ], - "type": "text", - "status": "Stable", - "mode": "markdown", - "content": "See the *Filters* bar to the below? Click it to expand the filters row. Right now there are none. click on one of the icons in the document types list to filter down to only that document type", - "style": {}, - "title": "About filters" + "title": "Search", + "def_type": "" } ] }, @@ -115,47 +159,95 @@ ] }, { - "title": "Graph", - "height": "250px", + "title": "Facets, Histogram and Table", + "height": "150px", "editable": true, "collapse": false, "collapsable": true, "panels": [ { "error": false, - "span": 3, + "span": 12, "editable": true, "group": [ "default" ], - "type": "terms", + "type": "text", + "status": "Stable", + "mode": "markdown", + "content": "Without knowing about your data, I cannot fully configure the panels I have provided below. However, I have provided you with some starting points, assuming that your time field is \"event_timestamp\" and that there is a field called \"message\" that you wish to facet on in order to view the top terms that appear in the \"message\" field and their frequency. If there is no data, these panels will be empty, and may give an error.\n\nThe _histogram_ panel allows you to plot either _counts_ or a specific field's (integer) _values_ across time. If you go to _Configure_, the panel allows you to set the type of chart and what variable is plotted (if choosing the _values_ option). Moreover, when plotting values, you can specify a _group by_ field which will produce multiple charts. You can modify the time window for the entire page from within the histogram panel.\n\nThe _terms_ panel is great for visualizing facets--as pie charts, bar charts or tables. Clicking on a term will create a global filter query restricting the result set (across all panels within the page) to the field value that is selected. You could have many such panels depending on the number of fields you choose to facet on.\n\nThe *table* panel at the bottom provides you a detailed view of search results. It has attempted to list your fields to the left; select a few to view them in the table. You can sort by any field. Click on a particular row to expand the resulting document that was returned.", + "style": {}, + "title": "Facets, Histogram and Table" + } + ] + }, + { + "title": "Graph", + "height": "250px", + "editable": true, + "collapse": false, + "collapsable": true, + "panels": [ + { + "span": 6, + "editable": true, + "type": "histogram", + "loadingEditor": false, + "mode": "count", + "time_field": "event_timestamp", "queries": { "mode": "all", "ids": [ 0 - ] + ], + "query": "q=*&df=message&df=host&df=path&df=type&wt=json&rows=0&fq=event_timestamp:[2014-04-02T05:07:22.000Z%20TO%202014-04-02T05:22:22.000Z]&facet=true&facet.range=event_timestamp&facet.range.start=2014-04-02T05:07:22.000Z/DAY&facet.range.end=2014-04-02T05:22:22.000Z%2B1DAY/DAY&facet.range.gap=%2B10SECOND", + "custom": "" }, - "field": "_type", - "exclude": [], - "missing": true, - "other": true, - "size": 100, - "order": "count", - "style": { - "font-size": "10pt" + "max_rows": 100000, + "value_field": null, + "group_field": null, + "auto_int": true, + "resolution": 100, + "interval": "10s", + "intervals": [ + "auto", + "1s", + "1m", + "5m", + "10m", + "30m", + "1h", + "3h", + "12h", + "1d", + "1w", + "1M", + "1y" + ], + "fill": 0, + "linewidth": 3, + "timezone": "browser", + "spyable": true, + "zoomlinks": true, + "bars": true, + "stack": true, + "points": false, + "lines": false, + "legend": true, + "x-axis": true, + "y-axis": true, + "percentage": false, + "interactive": true, + "options": true, + "tooltip": { + "value_type": "cumulative", + "query_as_alias": false }, - "donut": false, - "tilt": false, - "labels": true, - "arrangement": "horizontal", - "chart": "pie", - "counter_pos": "none", - "title": "Document types", - "spyable": true + "title": "Event Counts" }, { "error": false, - "span": 3, + "span": 6, "editable": true, "group": [ "default" @@ -165,39 +257,27 @@ "mode": "all", "ids": [ 0 - ] + ], + "query": "q=*&df=message&df=host&df=path&df=type&wt=json&rows=0&fq=event_timestamp:[2014-04-02T05:07:22.000Z%20TO%202014-04-02T05:22:22.000Z]&facet=true&facet.field=message&facet.range=event_timestamp&facet.range.start=2014-04-02T05:07:22.000Z&facet.range.end=2014-04-02T05:22:22.000Z&facet.range.gap=%2B1DAY&facet.limit=100" }, - "field": "_type", + "field": "message", "exclude": [], - "missing": true, - "other": true, - "size": 10, + "missing": false, + "other": false, + "size": 100, "order": "count", "style": { "font-size": "10pt" }, - "donut": false, - "tilt": false, - "labels": true, + "donut": true, + "tilt": true, + "labels": false, "arrangement": "horizontal", - "chart": "table", - "counter_pos": "above", + "chart": "pie", + "counter_pos": "none", + "title": "Message Terms", "spyable": true, - "title": "Document Types" - }, - { - "error": false, - "span": 6, - "editable": true, - "group": [ - "default" - ], - "type": "text", - "status": "Stable", - "mode": "markdown", - "content": "It's the best I can do without knowing much about your data! I've tried to pick some sane defaults for you. The two *terms* panels to the left of this *text* panel show a breakdown of your document type. \n\nKibana is currently configured to point at the special Elasticsearch *_all* index. You can change that by clicking on the cog icon in the navigation bar at the top. You can also add rows from that dialog. You can edit individual panels by click on the cog icon on the panel you want to edit\n\nThe *table* panel below has attempted to list your fields to the left, select a few to view them in the table. To add more panels, of different types, click the cog on the row label to the far left", - "style": {}, - "title": "The most generic dashboard ever" + "time_field": "event_timestamp" } ] }, @@ -220,14 +300,16 @@ "pages": 5, "offset": 0, "sort": [ - "_id", + "id", "desc" ], "style": { "font-size": "9pt" }, "overflow": "min-height", - "fields": [], + "fields": [ + "message" + ], "highlight": [], "sortable": true, "header": true, @@ -237,13 +319,15 @@ "mode": "all", "ids": [ 0 - ] + ], + "query": "q=*&df=message&df=host&df=path&df=type&wt=json&rows=500&fq=event_timestamp:[2014-04-02T05:07:22.000Z%20TO%202014-04-02T05:22:22.000Z]&sort=id desc" }, "field_list": true, "status": "Stable", "trimFactor": 300, "normTimes": true, - "title": "Documents" + "title": "Events", + "time_field": "event_timestamp" } ] } @@ -254,7 +338,7 @@ "pattern": "[logstash-]YYYY.MM.DD", "default": "_all" }, - "style": "dark", + "style": "light", "failover": false, "panel_hints": true, "loader": { @@ -270,5 +354,9 @@ "load_elasticsearch_size": 20, "load_local": true, "hide": false + }, + "solr": { + "server": "http://localhost:8983/solr/", + "core_name": "collection1" } } \ No newline at end of file diff --git a/src/app/dashboards/logstash.js b/src/app/dashboards/logstash.js old mode 100755 new mode 100644 diff --git a/src/app/dashboards/noted.json b/src/app/dashboards/noted.json old mode 100755 new mode 100644