Skip to content

Instantly share code, notes, and snippets.

@ryaminal
Created June 8, 2016 03:22
Show Gist options
  • Save ryaminal/edcd3fc1dc6a93aba971e1e27f9ff454 to your computer and use it in GitHub Desktop.
Save ryaminal/edcd3fc1dc6a93aba971e1e27f9ff454 to your computer and use it in GitHub Desktop.
{"title": "Basic Dashboard With Pointers", "services": {"query": {"idQueue": [1, 2, 3, 4], "list": {"0": {"query": "*", "alias": "", "color": "#7EB26D", "id": 0, "pin": false, "type": "lucene"}}, "ids": [0]}, "filter": {"idQueue": [1, 2], "list": {"0": {"from": "NOW/MINUTE-15MINUTE", "to": "NOW/MINUTE%2B1MINUTE", "field": "event_timestamp", "type": "time", "fromDateObj": "2016-06-03T18:59:05.650Z", "toDateObj": "2016-06-03T19:14:05.651Z", "mandate": "must", "active": true, "alias": "", "id": 0}}, "ids": [0]}}, "rows": [{"title": "Overview", "height": "50px", "editable": true, "collapse": true, "collapsable": true, "panels": []}, {"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", "spyable": true, "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": 6, "editable": true, "spyable": true, "group": ["default"], "type": "query", "label": "Search", "history": ["*"], "remember": 10, "pinned": true, "query": "*", "title": "Search", "def_type": ""}]}, {"title": "Filters", "height": "50px", "editable": true, "collapse": true, "collapsable": true, "panels": [{"error": false, "span": 12, "editable": true, "spyable": true, "group": ["default"], "type": "filtering"}]}, {"title": "Facets, Histogram and Table", "height": "150px", "editable": true, "collapse": true, "collapsable": true, "panels": [{"error": false, "span": 12, "editable": true, "group": ["default"], "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", "queries": {"mode": "all", "ids": [0], "query": "q=*&wt=json&rows=0&fq=event_timestamp:[NOW/MINUTE-15MINUTE%20TO%20NOW/MINUTE%2B1MINUTE]&facet=true&facet.range=event_timestamp&facet.range.start=NOW/MINUTE-15MINUTE&facet.range.end=NOW/MINUTE%2B1MINUTE&facet.range.gap=%2B10SECOND\n", "custom": ""}, "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}, "title": "Event Counts", "lines_smooth": false, "show_queries": true}]}, {"title": "Events", "height": "650px", "editable": true, "collapse": false, "collapsable": true, "panels": [{"span": 12, "editable": true, "group": ["default"], "type": "table", "size": 100, "pages": 5, "offset": 0, "sort": ["id", "desc"], "style": {"font-size": "9pt"}, "overflow": "min-height", "fields": ["message", "host", "environment", "actorpath", "panelid"], "highlight": [], "sortable": true, "header": true, "paging": true, "spyable": true, "queries": {"mode": "all", "ids": [0], "query": "q=*&fq=event_timestamp:[NOW/MINUTE-15MINUTE%20TO%20NOW/MINUTE%2B1MINUTE]&sort=id desc&wt=json&rows=500", "basic_query": "q=*&fq=event_timestamp:[NOW/MINUTE-15MINUTE%20TO%20NOW/MINUTE%2B1MINUTE]&sort=id desc"}, "field_list": false, "status": "Stable", "trimFactor": 300, "normTimes": true, "title": "Events", "time_field": "event_timestamp", "important_fields": ["_type", "environment", "actorpath", "host", "panelid"], "saveOption": "json", "exportSize": 500, "exportAll": true, "displayLinkIcon": true, "imageFields": [], "imgFieldWidth": "auto", "imgFieldHeight": "85px", "show_queries": true}]}], "editable": true, "index": {"interval": "none", "pattern": "[logstash-]YYYY.MM.DD", "default": "_all"}, "style": "light", "failover": false, "panel_hints": true, "loader": {"save_gist": true, "save_elasticsearch": true, "save_local": true, "save_default": true, "save_temp": true, "save_temp_ttl_enable": true, "save_temp_ttl": "30d", "load_gist": true, "load_elasticsearch": true, "load_elasticsearch_size": 20, "load_local": true, "hide": false, "dropdown_collections": false}, "solr": {"server": "/solr/", "core_name": "akka_logs", "core_list": ["akka_logs_shard6_replica2"], "global_params": ""}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment