Grafana dashboard: Logstash Browser
Description: Browse, filter and analyze logs in Elasticsearch

## Logstash Browser

Browse, filter and analyze logs in Elasticsearch.

## Elasticsearch datasource configuration

[http://docs.grafana.org/datasources/elasticsearch/](http://docs.grafana.org/datasources/elasticsearch/)

## Make Grafana Elasticsearch dashboards better

Feel free to add additional dashboards or update existing one in [GitHub repo](https://github.com/monitoringartist/grafana-elasticsearch-dashboards).

## Commercial support for this dashboard

[![Monitoring Artist](https://monitoringartist.github.io/monitoring-artist-logo-grafana.png)](http://www.monitoringartist.com 'DevOps / Docker / Kubernetes / AWS ECS / Google GCP / Zabbix / Zenoss / Terraform / Monitoring')[![Monitoring Artist](https://monitoringartist.github.io/monitoring-artist-text-grafana.png)](http://www.monitoringartist.com 'DevOps / Docker / Kubernetes / AWS ECS / Google GCP / Zabbix / Zenoss / Terraform / Monitoring')

{
  "__inputs": [
    {
      "name": "DS_ELASTICSEARCH",
      "label": "elasticsearch",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "3.1.1"
    },
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "3.0.0"
    }
  ],
  "id": null,
  "title": "Logstash Browser",
  "description": "Browse, filter and analyze logs in Elasticsearch",
  "tags": [
    "monitoringartist",
    "elasticsearch"
  ],
  "style": "dark",
  "timezone": "browser",
  "editable": true,
  "hideControls": false,
  "sharedCrosshair": false,
  "rows": [
    {
      "collapse": false,
      "editable": true,
      "height": 448,
      "panels": [
        {
          "aliasColors": {},
          "bars": true,
          "datasource": "${DS_ELASTICSEARCH}",
          "editable": true,
          "error": false,
          "fill": 1,
          "grid": {
            "threshold1": null,
            "threshold1Color": "rgba(216, 200, 27, 0.27)",
            "threshold2": null,
            "threshold2Color": "rgba(234, 112, 112, 0.22)"
          },
          "id": 1,
          "interval": "$interval",
          "isNew": true,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "sortDesc": true,
            "total": true,
            "values": true
          },
          "lines": false,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "connected",
          "percentage": false,
          "pointradius": 5,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "span": 12,
          "stack": true,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "$groupby",
                  "id": "4",
                  "settings": {
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                },
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "$interval",
                    "min_doc_count": 0,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "datacenter"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "hostname"
                  ],
                  "type": "tag"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "measurement": "logins.count",
              "metrics": [
                {
                  "field": "select field",
                  "id": "3",
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "$filters",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "target": "apps.backend.select metric",
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeShift": null,
          "title": "Logs",
          "tooltip": {
            "msResolution": false,
            "shared": true,
            "sort": 2,
            "value_type": "cumulative"
          },
          "type": "graph",
          "xaxis": {
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": 0,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": false
            }
          ]
        }
      ],
      "title": "Row"
    },
    {
      "collapse": false,
      "editable": true,
      "height": "500px",
      "panels": [
        {
          "columns": [
            {
              "text": "@timestamp",
              "value": "@timestamp"
            },
            {
              "text": "@log_name",
              "value": "@log_name"
            },
            {
              "text": "logger",
              "value": "logger"
            },
            {
              "text": "message",
              "value": "message"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH}",
          "editable": true,
          "error": false,
          "fontSize": "100%",
          "id": 2,
          "isNew": true,
          "links": [],
          "pageSize": 10,
          "scroll": false,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": true
          },
          "span": 12,
          "styles": [
            {
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "@timestamp",
              "type": "date"
            },
            {
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [],
              "dsType": "elasticsearch",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "raw_document"
                }
              ],
              "query": "$filters",
              "refId": "B",
              "timeField": "@timestamp"
            }
          ],
          "title": "Logs",
          "transform": "json",
          "type": "table"
        }
      ],
      "title": "New row"
    },
    {
      "collapse": false,
      "editable": true,
      "height": "25px",
      "panels": [
        {
          "content": "<a style=\"float: right\" href=\"http://www.monitoringartist.com\" target=\"_blank\" title=\"Dashboard maintained by Monitoring Artist - DevOps / Docker / Kubernetes / AWS ECS / Google GCP / Zabbix / Zenoss / Terraform / Monitoring\"><img src=\"https://monitoringartist.github.io/monitoring-artist-logo-grafana.png\" height=\"30px\" /></a>\n<a style=\"float: left\"  target=\"_blank\" href=\"https://grafana.net/dashboards/635\">Installed from Grafana.net dashboards</a>\n<div style=\"clear:both; width:100%;height:0;font-size:0;\"></div>",
          "editable": true,
          "error": false,
          "id": 3,
          "isNew": true,
          "links": [],
          "mode": "html",
          "span": 12,
          "title": "Documentation",
          "type": "text"
        }
      ],
      "title": "New row"
    }
  ],
  "time": {
    "from": "now-1h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ELASTICSEARCH}",
        "hide": 0,
        "includeAll": false,
        "label": "Group by",
        "multi": false,
        "name": "groupby",
        "options": [],
        "query": "{\"find\": \"fields\"}",
        "refresh": 1,
        "regex": "",
        "sort": 0,
        "tagValuesQuery": null,
        "tagsQuery": null,
        "type": "query"
      },
      {
        "allFormat": "glob",
        "auto": true,
        "auto_count": 100,
        "auto_min": "10s",
        "current": {
          "text": "1m",
          "value": "1m"
        },
        "datasource": "elasticsearch",
        "hide": 0,
        "label": "Interval",
        "name": "interval",
        "options": [
          {
            "text": "1m",
            "value": "1m",
            "selected": true
          },
          {
            "text": "15m",
            "value": "15m",
            "selected": false
          },
          {
            "text": "30m",
            "value": "30m",
            "selected": false
          },
          {
            "text": "1h",
            "value": "1h",
            "selected": false
          },
          {
            "text": "3h",
            "value": "3h",
            "selected": false
          },
          {
            "text": "6h",
            "value": "6h",
            "selected": false
          },
          {
            "text": "12h",
            "value": "12h",
            "selected": false
          },
          {
            "text": "1d",
            "value": "1d",
            "selected": false
          },
          {
            "text": "7d",
            "value": "7d",
            "selected": false
          },
          {
            "text": "14d",
            "value": "14d",
            "selected": false
          },
          {
            "text": "30d",
            "value": "30d",
            "selected": false
          },
          {
            "text": "1s",
            "value": "1s",
            "selected": false
          }
        ],
        "query": "1m,15m,30m,1h,3h,6h,12h,1d,7d,14d,30d,1s",
        "refresh": 1,
        "type": "custom"
      },
      {
        "allValue": "",
        "current": {
          "selected": true,
          "tags": [],
          "text": "All",
          "value": "$__all"
        },
        "datasource": "logstash",
        "filters": [],
        "hide": 0,
        "includeAll": true,
        "label": "Lucene filters",
        "multi": false,
        "name": "filters",
        "options": [
          {
            "selected": true,
            "text": "All",
            "value": "$__all"
          },
          {
            "selected": false,
            "text": "*error*",
            "value": "*error*"
          },
          {
            "selected": false,
            "text": "*exception*",
            "value": "*exception*"
          },
          {
            "selected": false,
            "text": "*fail*",
            "value": "*fail*"
          },
          {
            "selected": false,
            "text": "*warn*",
            "value": "*warn*"
          },
          {
            "selected": false,
            "text": "*info*",
            "value": "*info*"
          },
          {
            "selected": false,
            "text": "*debug*",
            "value": "*debug*"
          },
          {
            "selected": false,
            "text": "*cron*",
            "value": "*cron*"
          },
          {
            "selected": false,
            "text": "*syslog*",
            "value": "*syslog*"
          }
        ],
        "query": "*error*,*exception*,*fail*,*warn*,*info*,*debug*,*cron*,*syslog*",
        "refresh": 0,
        "type": "custom"
      }
    ]
  },
  "annotations": {
    "list": []
  },
  "refresh": false,
  "schemaVersion": 12,
  "version": 2,
  "links": [],
  "gnetId": 635
}