Skip to content

Instantly share code, notes, and snippets.

@erik-stephens
Created July 23, 2014 23:06
Show Gist options
  • Save erik-stephens/6c4ab1222b088c15413f to your computer and use it in GitHub Desktop.
Save erik-stephens/6c4ab1222b088c15413f to your computer and use it in GitHub Desktop.
Kibana dashboard for web app access logs
{
"title": "Web Requests",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "SUCCESS",
"pin": true,
"type": "lucene",
"enable": true,
"query": "status:[200 TO 299]"
},
"1": {
"id": 1,
"color": "#EAB839",
"alias": "TIMER",
"pin": true,
"type": "lucene",
"enable": true,
"query": "message:timer"
},
"2": {
"id": 2,
"color": "#6ED0E0",
"alias": "REDIRECT",
"pin": true,
"type": "lucene",
"enable": true,
"query": "status:[300 TO 399]"
},
"3": {
"id": 3,
"color": "#EF843C",
"alias": "CLIENT ERROR",
"pin": true,
"type": "lucene",
"enable": true,
"query": "status:[400 TO 499]"
},
"4": {
"id": 4,
"color": "#E24D42",
"alias": "SERVER ERROR",
"pin": true,
"type": "lucene",
"enable": true,
"query": "status:[500 TO 599]"
},
"5": {
"id": 5,
"color": "#6D1F62",
"alias": "UNKNOWN",
"pin": true,
"type": "lucene",
"enable": true,
"query": "status:[* TO 199] OR status:[600 TO *]"
}
},
"ids": [
0,
1,
2,
3,
4,
5
]
},
"filter": {
"idQueue": [],
"list": {
"0": {
"type": "time",
"field": "@timestamp",
"from": "now-5m",
"to": "now",
"mandate": "must",
"active": true,
"alias": "",
"id": 0
},
"1": {
"type": "field",
"field": "type",
"query": "orvant.web.*",
"mandate": "must",
"active": true,
"alias": "",
"id": 1
}
},
"ids": [
0,
1
]
}
},
"rows": [
{
"title": "History",
"height": "200px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"span": 4,
"editable": true,
"group": [
"default"
],
"type": "histogram",
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"auto_int": true,
"resolution": 50,
"interval": "5s",
"fill": 1,
"linewidth": 2,
"timezone": "browser",
"spyable": true,
"zoomlinks": false,
"bars": false,
"stack": true,
"points": false,
"lines": true,
"legend": true,
"x-axis": true,
"y-axis": true,
"percentage": false,
"interactive": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"title": "Requests",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1M",
"1y"
],
"options": true,
"tooltip": {
"value_type": "individual",
"query_as_alias": true
},
"scale": 1,
"y_format": "none",
"grid": {
"max": null,
"min": 0
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"pointradius": 2,
"show_query": true,
"legend_counts": true,
"zerofill": true,
"derivative": false
},
{
"span": 4,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "mean",
"time_field": "@timestamp",
"value_field": "msecs",
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 50,
"interval": "5s",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 1,
"linewidth": 2,
"points": false,
"pointradius": 5,
"bars": false,
"stack": true,
"spyable": true,
"zoomlinks": false,
"options": true,
"legend": true,
"show_query": true,
"interactive": true,
"legend_counts": true,
"timezone": "browser",
"percentage": false,
"zerofill": true,
"derivative": false,
"tooltip": {
"value_type": "cumulative",
"query_as_alias": true
},
"title": "Avg. Response Time (ms)"
},
{
"span": 4,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "total",
"time_field": "@timestamp",
"value_field": "size",
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "bytes",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 50,
"interval": "5s",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 1,
"linewidth": 2,
"points": false,
"pointradius": 5,
"bars": false,
"stack": true,
"spyable": true,
"zoomlinks": false,
"options": true,
"legend": true,
"show_query": true,
"interactive": true,
"legend_counts": true,
"timezone": "browser",
"percentage": false,
"zerofill": true,
"derivative": false,
"tooltip": {
"value_type": "cumulative",
"query_as_alias": true
},
"title": "Bandwidth"
}
],
"notice": false
},
{
"title": "Aggregates",
"height": "",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "path",
"exclude": [],
"missing": false,
"other": true,
"size": 5,
"order": "max",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"tmode": "terms_stats",
"tstat": "max",
"valuefield": "times.total",
"title": "Slowest Endpoints (ms)"
},
{
"error": false,
"span": 3,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "path",
"exclude": [],
"missing": false,
"other": true,
"size": 5,
"order": "max",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"tmode": "terms_stats",
"tstat": "max",
"valuefield": "size",
"title": "Largest Endpoints (bytes)"
},
{
"error": false,
"span": 2,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "ip",
"exclude": [],
"missing": false,
"other": false,
"size": 5,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Busiest Clients"
},
{
"error": false,
"span": 2,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "user",
"exclude": [],
"missing": false,
"other": false,
"size": 5,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Busiest Users"
},
{
"error": false,
"span": 2,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "status",
"exclude": [],
"missing": false,
"other": false,
"size": 5,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": false,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Response Codes"
}
],
"notice": false
},
{
"title": "Log",
"height": "200px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"error": false,
"span": 12,
"editable": true,
"type": "table",
"loadingEditor": false,
"status": "Stable",
"queries": {
"mode": "selected",
"ids": [
0,
2,
3,
4,
5
]
},
"size": 50,
"pages": 10,
"offset": 0,
"sort": [
"times.total",
"desc"
],
"group": "default",
"style": {
"font-size": "9pt"
},
"overflow": "min-height",
"fields": [
"type",
"user",
"method",
"path",
"status",
"times.auth",
"times.validate",
"times.render",
"msecs",
"@timestamp"
],
"highlight": [],
"sortable": true,
"header": true,
"paging": true,
"field_list": false,
"all_fields": false,
"trimFactor": 300,
"normTimes": true,
"spyable": true,
"title": "Request Log",
"localTime": false,
"timeField": "@timestamp"
}
],
"notice": false
}
],
"editable": true,
"failover": false,
"index": {
"interval": "none",
"pattern": "[logstash-]YYYY.MM.DD",
"default": "desertpy",
"warm_fields": true
},
"style": "light",
"panel_hints": true,
"pulldowns": [
{
"type": "query",
"collapse": false,
"notice": false,
"query": "*",
"pinned": true,
"history": [
"status:[* TO 199] OR status:[600 TO *]",
"status:[500 TO 599]",
"status:[400 TO 499]",
"status:[300 TO 399]",
"message:timer",
"status:[200 TO 299]",
"type:orvant.web",
"type:orvant.web.*",
"type:orvant.web.* AND NOT message:timer",
"type:orvant.web.* and not message:timer"
],
"remember": 10,
"enable": true
},
{
"type": "filtering",
"collapse": true,
"notice": false,
"enable": true
}
],
"nav": [
{
"type": "timepicker",
"collapse": false,
"notice": false,
"status": "Stable",
"time_options": [
"5m",
"15m",
"1h",
"6h",
"12h",
"24h",
"2d",
"7d",
"30d"
],
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
],
"timefield": "@timestamp",
"now": true,
"filter_id": 0,
"enable": true
}
],
"loader": {
"save_gist": false,
"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
},
"refresh": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment