Skip to content

Instantly share code, notes, and snippets.

@mrlesmithjr
Last active December 10, 2015 14:10
Show Gist options
  • Save mrlesmithjr/cf8cb356b05765bd764d to your computer and use it in GitHub Desktop.
Save mrlesmithjr/cf8cb356b05765bd764d to your computer and use it in GitHub Desktop.
Logstash Nginx Dashboard
{
"title": "Nginx",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "Exclude from Top Page Requests",
"pin": false,
"type": "lucene",
"enable": true,
"query": "*"
},
"1": {
"id": 1,
"color": "#EAB839",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "100"
},
"2": {
"id": 2,
"color": "#6ED0E0",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "101"
},
"3": {
"id": 3,
"color": "#EF843C",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "200"
},
"4": {
"id": 4,
"color": "#E24D42",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "201"
},
"5": {
"id": 5,
"color": "#1F78C1",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "202"
},
"6": {
"id": 6,
"color": "#BA43A9",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "203"
},
"7": {
"id": 7,
"color": "#705DA0",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "204"
},
"8": {
"id": 8,
"color": "#508642",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "205"
},
"9": {
"id": 9,
"color": "#CCA300",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "206"
},
"10": {
"id": 10,
"color": "#447EBC",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "300"
},
"11": {
"id": 11,
"color": "#C15C17",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "301"
},
"12": {
"id": 12,
"color": "#890F02",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "302"
},
"13": {
"id": 13,
"color": "#0A437C",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "303"
},
"14": {
"id": 14,
"color": "#6D1F62",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "304"
},
"15": {
"id": 15,
"color": "#584477",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "305"
},
"16": {
"id": 16,
"color": "#B7DBAB",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "306"
},
"17": {
"id": 17,
"color": "#F4D598",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "307"
},
"18": {
"id": 18,
"color": "#70DBED",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "400"
},
"19": {
"id": 19,
"color": "#F9BA8F",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "401"
},
"20": {
"id": 20,
"color": "#F29191",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "402"
},
"21": {
"id": 21,
"color": "#82B5D8",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "403"
},
"22": {
"id": 22,
"color": "#E5A8E2",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "404"
},
"23": {
"id": 23,
"color": "#AEA2E0",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "405"
},
"24": {
"id": 24,
"color": "#629E51",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "406"
},
"25": {
"id": 25,
"color": "#E5AC0E",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "407"
},
"26": {
"id": 26,
"color": "#64B0C8",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "408"
},
"27": {
"id": 27,
"color": "#E0752D",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "409"
},
"28": {
"id": 28,
"color": "#BF1B00",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "410"
},
"29": {
"id": 29,
"color": "#0A50A1",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "411"
},
"30": {
"id": 30,
"color": "#962D82",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "412"
},
"31": {
"id": 31,
"color": "#614D93",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "413"
},
"32": {
"id": 32,
"color": "#9AC48A",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "414"
},
"33": {
"id": 33,
"color": "#F2C96D",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "415"
},
"34": {
"id": 34,
"color": "#65C5DB",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "416"
},
"35": {
"id": 35,
"color": "#F9934E",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "417"
},
"36": {
"id": 36,
"color": "#EA6460",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "500"
},
"37": {
"id": 37,
"color": "#5195CE",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "501"
},
"38": {
"id": 38,
"color": "#D683CE",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "502"
},
"39": {
"id": 39,
"color": "#806EB7",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "503"
},
"40": {
"id": 40,
"color": "#3F6833",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "504"
},
"41": {
"id": 41,
"color": "#967302",
"alias": "",
"pin": true,
"type": "lucene",
"enable": true,
"query": "505"
},
"42": {
"id": 42,
"color": "#2F575E",
"alias": "Nginx Errors",
"pin": true,
"type": "lucene",
"enable": true,
"query": "type: (\"nginx-error\")"
}
},
"ids": [
0,
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41,
42
]
},
"filter": {
"list": {
"0": {
"type": "time",
"field": "@timestamp",
"from": "now-12h",
"to": "now",
"mandate": "must",
"active": true,
"alias": "",
"id": 0
},
"1": {
"type": "querystring",
"query": "tags:nginx",
"mandate": "must",
"active": true,
"alias": "",
"id": 1
}
},
"ids": [
0,
1
]
}
},
"rows": [
{
"title": "Graph",
"height": "175px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"span": 12,
"editable": true,
"group": [
"default"
],
"type": "histogram",
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"auto_int": true,
"resolution": 100,
"interval": "5m",
"fill": 3,
"linewidth": 3,
"timezone": "browser",
"spyable": true,
"zoomlinks": true,
"bars": true,
"stack": false,
"points": false,
"lines": false,
"legend": true,
"x-axis": true,
"y-axis": true,
"percentage": false,
"interactive": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"title": "Events over time",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1M",
"1y"
],
"options": true,
"tooltip": {
"value_type": "cumulative",
"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": 5,
"show_query": true,
"legend_counts": true,
"zerofill": true,
"derivative": false
},
{
"span": 12,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "count",
"time_field": "@timestamp",
"value_field": null,
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "none",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "selected",
"ids": [
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
35,
36,
37,
38,
39,
40,
41
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 100,
"interval": "5m",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 3,
"linewidth": 3,
"points": false,
"pointradius": 5,
"bars": false,
"stack": false,
"spyable": true,
"zoomlinks": true,
"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": "http responses"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "@source_host",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top Servers"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "src_ip",
"exclude": [
""
],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top 10 Client IP's"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "geoip.country_code3",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top 10 Countries"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "geoip.real_region_name",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top 10 States"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "geoip.city_name",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top 10 Cities"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "method",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top Methods"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "type",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "10pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "bar",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "count",
"valuefield": "",
"title": "nginx log types"
},
{
"span": 4,
"editable": true,
"type": "histogram",
"loadingEditor": false,
"mode": "mean",
"time_field": "@timestamp",
"value_field": "bytes",
"x-axis": true,
"y-axis": true,
"scale": 1,
"y_format": "bytes",
"grid": {
"max": null,
"min": 0
},
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"annotate": {
"enable": false,
"query": "*",
"size": 20,
"field": "_type",
"sort": [
"_score",
"desc"
]
},
"auto_int": true,
"resolution": 100,
"interval": "5m",
"intervals": [
"auto",
"1s",
"1m",
"5m",
"10m",
"30m",
"1h",
"3h",
"12h",
"1d",
"1w",
"1y"
],
"lines": true,
"fill": 3,
"linewidth": 3,
"points": false,
"pointradius": 5,
"bars": false,
"stack": false,
"spyable": true,
"zoomlinks": true,
"options": true,
"legend": false,
"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": "transferred bytes"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "map",
"loadingEditor": false,
"map": "world",
"colors": [
"#A0E2E2",
"#265656"
],
"size": 100,
"exclude": [],
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"field": "geoip.country_code2",
"title": "GeoIP"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "agent",
"exclude": [
""
],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "8pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "vertical",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top Client Agents"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "referrer",
"exclude": [],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "8pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top Referrers"
},
{
"error": false,
"span": 4,
"editable": true,
"type": "terms",
"loadingEditor": false,
"field": "request",
"exclude": [
""
],
"missing": false,
"other": false,
"size": 10,
"order": "count",
"style": {
"font-size": "8pt"
},
"donut": false,
"tilt": false,
"labels": true,
"arrangement": "horizontal",
"chart": "table",
"counter_pos": "above",
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"tmode": "terms",
"tstat": "total",
"valuefield": "",
"title": "Top Page Requests"
}
],
"notice": false
},
{
"title": "Events",
"height": "350px",
"editable": true,
"collapse": false,
"collapsable": true,
"panels": [
{
"title": "All events",
"error": false,
"span": 12,
"editable": true,
"group": [
"default"
],
"type": "table",
"size": 100,
"pages": 5,
"offset": 0,
"sort": [
"@timestamp",
"desc"
],
"style": {
"font-size": "9pt"
},
"overflow": "min-height",
"fields": [
"@timestamp",
"@source_host",
"@message",
"src_ip",
"method",
"request",
"response"
],
"localTime": true,
"timeField": "@timestamp",
"highlight": [],
"sortable": true,
"header": true,
"paging": true,
"spyable": true,
"queries": {
"mode": "unpinned",
"ids": [
0
]
},
"field_list": true,
"status": "Stable",
"trimFactor": 300,
"normTimes": true,
"all_fields": false
}
],
"notice": false
}
],
"editable": true,
"failover": false,
"index": {
"interval": "day",
"pattern": "[logstash-]YYYY.MM.DD",
"default": "NO_TIME_FILTER_OR_INDEX_PATTERN_NOT_MATCHED",
"warm_fields": true
},
"style": "dark",
"panel_hints": true,
"pulldowns": [
{
"type": "query",
"collapse": true,
"notice": false,
"query": "*",
"pinned": true,
"history": [
"type: (\"nginx-error\")",
"505",
"504",
"503",
"502",
"501",
"500",
"417",
"416",
"415"
],
"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": "5m"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment