|
| 1 | +{% raw %} |
| 2 | +{ |
| 3 | + "annotations": { |
| 4 | + "list": [ |
| 5 | + { |
| 6 | + "builtIn": 1, |
| 7 | + "datasource": { |
| 8 | + "type": "grafana", |
| 9 | + "uid": "-- Grafana --" |
| 10 | + }, |
| 11 | + "enable": true, |
| 12 | + "hide": true, |
| 13 | + "iconColor": "rgba(0, 211, 255, 1)", |
| 14 | + "name": "Annotations & Alerts", |
| 15 | + "type": "dashboard" |
| 16 | + } |
| 17 | + ] |
| 18 | + }, |
| 19 | + "editable": true, |
| 20 | + "fiscalYearStartMonth": 0, |
| 21 | + "graphTooltip": 0, |
| 22 | + "id": 2084515, |
| 23 | + "links": [], |
| 24 | + "liveNow": false, |
| 25 | + "panels": [ |
| 26 | + { |
| 27 | + "datasource": { |
| 28 | + "type": "grafana-opensearch-datasource", |
| 29 | + "uid": "iT6QLWyVk" |
| 30 | + }, |
| 31 | + "gridPos": { |
| 32 | + "h": 8, |
| 33 | + "w": 24, |
| 34 | + "x": 0, |
| 35 | + "y": 0 |
| 36 | + }, |
| 37 | + "id": 2, |
| 38 | + "options": { |
| 39 | + "dedupStrategy": "none", |
| 40 | + "enableLogDetails": true, |
| 41 | + "prettifyLogMessage": false, |
| 42 | + "showCommonLabels": false, |
| 43 | + "showLabels": false, |
| 44 | + "showTime": true, |
| 45 | + "sortOrder": "Descending", |
| 46 | + "wrapLogMessage": false |
| 47 | + }, |
| 48 | + "targets": [ |
| 49 | + { |
| 50 | + "alias": "", |
| 51 | + "bucketAggs": [ |
| 52 | + { |
| 53 | + "id": "2", |
| 54 | + "settings": { |
| 55 | + "min_doc_count": "0", |
| 56 | + "order": "desc", |
| 57 | + "orderBy": "_term", |
| 58 | + "size": "10" |
| 59 | + }, |
| 60 | + "type": "terms" |
| 61 | + } |
| 62 | + ], |
| 63 | + "datasource": { |
| 64 | + "type": "grafana-opensearch-datasource", |
| 65 | + "uid": "iT6QLWyVk" |
| 66 | + }, |
| 67 | + "format": "table", |
| 68 | + "metrics": [ |
| 69 | + { |
| 70 | + "id": "1", |
| 71 | + "type": "logs" |
| 72 | + } |
| 73 | + ], |
| 74 | + "query": "search source=flog-* \n| eval firstcolumnpart=concat('Hostname: ', Hostname, ' | Log Level: ', log_level, ' | Logger: ', Logger, ' | Program Name: ', programname)\n| eval firstcolumn=concat(firstcolumnpart, ' | Payload: ', left(Payload, 120),'...')\n| fields firstcolumn, Hostname, programname, Logger, log_level, Pid, Payload\n| head 100", |
| 75 | + "queryType": "PPL", |
| 76 | + "refId": "A", |
| 77 | + "timeField": "@timestamp" |
| 78 | + } |
| 79 | + ], |
| 80 | + "title": "All Logs", |
| 81 | + "type": "logs" |
| 82 | + }, |
| 83 | + { |
| 84 | + "datasource": { |
| 85 | + "type": "grafana-opensearch-datasource", |
| 86 | + "uid": "iT6QLWyVk" |
| 87 | + }, |
| 88 | + "gridPos": { |
| 89 | + "h": 8, |
| 90 | + "w": 24, |
| 91 | + "x": 0, |
| 92 | + "y": 8 |
| 93 | + }, |
| 94 | + "id": 1, |
| 95 | + "options": { |
| 96 | + "dedupStrategy": "none", |
| 97 | + "enableLogDetails": true, |
| 98 | + "prettifyLogMessage": false, |
| 99 | + "showCommonLabels": false, |
| 100 | + "showLabels": false, |
| 101 | + "showTime": true, |
| 102 | + "sortOrder": "Descending", |
| 103 | + "wrapLogMessage": true |
| 104 | + }, |
| 105 | + "targets": [ |
| 106 | + { |
| 107 | + "alias": "", |
| 108 | + "bucketAggs": [ |
| 109 | + { |
| 110 | + "field": "@timestamp", |
| 111 | + "id": "2", |
| 112 | + "settings": { |
| 113 | + "interval": "auto" |
| 114 | + }, |
| 115 | + "type": "date_histogram" |
| 116 | + } |
| 117 | + ], |
| 118 | + "datasource": { |
| 119 | + "type": "grafana-opensearch-datasource", |
| 120 | + "uid": "iT6QLWyVk" |
| 121 | + }, |
| 122 | + "format": "logs", |
| 123 | + "metrics": [ |
| 124 | + { |
| 125 | + "id": "1", |
| 126 | + "type": "count" |
| 127 | + } |
| 128 | + ], |
| 129 | + "query": "search source=flog-* \n| where log_level=\"ERROR\" OR log_level=\"error\" OR log_level=\"err\" OR log_level=\"crit\"\n| eval firstcolumn=concat('Hostname: ', Hostname, ' | Logger: ', Logger, ' | Program Name: ', programname,' | Payload: ', left(Payload, 120),'...')\n| fields firstcolumn, Hostname, programname, Logger, log_level, Pid, Payload", |
| 130 | + "queryType": "PPL", |
| 131 | + "refId": "A", |
| 132 | + "timeField": "@timestamp" |
| 133 | + } |
| 134 | + ], |
| 135 | + "title": "Log Errors", |
| 136 | + "type": "logs" |
| 137 | + } |
| 138 | + ], |
| 139 | + "refresh": "", |
| 140 | + "schemaVersion": 38, |
| 141 | + "style": "dark", |
| 142 | + "tags": [], |
| 143 | + "templating": { |
| 144 | + "list": [] |
| 145 | + }, |
| 146 | + "time": { |
| 147 | + "from": "now-15m", |
| 148 | + "to": "now" |
| 149 | + }, |
| 150 | + "timepicker": {}, |
| 151 | + "timezone": "", |
| 152 | + "title": "Logs - Test", |
| 153 | + "uid": "d2e8a27b-2a2b-494d-ba76-b54e902055f8", |
| 154 | + "version": 1, |
| 155 | + "weekStart": "" |
| 156 | +} |
| 157 | +{% endraw %} |
0 commit comments