|  | 
|  | 1 | +{ | 
|  | 2 | +  "annotations": { | 
|  | 3 | +    "list": [ | 
|  | 4 | +      { | 
|  | 5 | +        "builtIn": 1, | 
|  | 6 | +        "datasource": { | 
|  | 7 | +          "type": "grafana", | 
|  | 8 | +          "uid": "-- Grafana --" | 
|  | 9 | +        }, | 
|  | 10 | +        "enable": true, | 
|  | 11 | +        "hide": true, | 
|  | 12 | +        "iconColor": "rgba(0, 211, 255, 1)", | 
|  | 13 | +        "name": "Annotations & Alerts", | 
|  | 14 | +        "target": { | 
|  | 15 | +          "limit": 100, | 
|  | 16 | +          "matchAny": false, | 
|  | 17 | +          "tags": [], | 
|  | 18 | +          "type": "dashboard" | 
|  | 19 | +        }, | 
|  | 20 | +        "type": "dashboard" | 
|  | 21 | +      } | 
|  | 22 | +    ] | 
|  | 23 | +  }, | 
|  | 24 | +  "editable": true, | 
|  | 25 | +  "fiscalYearStartMonth": 0, | 
|  | 26 | +  "graphTooltip": 0, | 
|  | 27 | +  "links": [], | 
|  | 28 | +  "liveNow": false, | 
|  | 29 | +  "panels": [ | 
|  | 30 | +    { | 
|  | 31 | +      "datasource": { | 
|  | 32 | +        "type": "datasource", | 
|  | 33 | +        "uid": "grafana" | 
|  | 34 | +      }, | 
|  | 35 | +      "gridPos": { | 
|  | 36 | +        "h": 4, | 
|  | 37 | +        "w": 24, | 
|  | 38 | +        "x": 0, | 
|  | 39 | +        "y": 0 | 
|  | 40 | +      }, | 
|  | 41 | +      "id": 6, | 
|  | 42 | +      "options": { | 
|  | 43 | +        "code": { | 
|  | 44 | +          "language": "plaintext", | 
|  | 45 | +          "showLineNumbers": false, | 
|  | 46 | +          "showMiniMap": false | 
|  | 47 | +        }, | 
|  | 48 | +        "content": "# Notes\n\n* Some `proctitles` are hex encoded due to the posibility of special chars. Use a hex to ascii decoder to view these.\n* Multiple lines might refer to the same event, in that case the audit identifier (i.e. `msg=audit(...:...)`) will be the same. Use the find input to easily see all line for an event by searching for this audit identifier.", | 
|  | 49 | +        "mode": "markdown" | 
|  | 50 | +      }, | 
|  | 51 | +      "pluginVersion": "9.2.3", | 
|  | 52 | +      "title": "Notes", | 
|  | 53 | +      "type": "text" | 
|  | 54 | +    }, | 
|  | 55 | +    { | 
|  | 56 | +      "datasource": { | 
|  | 57 | +        "type": "loki", | 
|  | 58 | +        "uid": "P00201832B18B88C3" | 
|  | 59 | +      }, | 
|  | 60 | +      "fieldConfig": { | 
|  | 61 | +        "defaults": { | 
|  | 62 | +          "custom": { | 
|  | 63 | +            "hideFrom": { | 
|  | 64 | +              "legend": false, | 
|  | 65 | +              "tooltip": false, | 
|  | 66 | +              "viz": false | 
|  | 67 | +            }, | 
|  | 68 | +            "scaleDistribution": { | 
|  | 69 | +              "type": "linear" | 
|  | 70 | +            } | 
|  | 71 | +          } | 
|  | 72 | +        }, | 
|  | 73 | +        "overrides": [] | 
|  | 74 | +      }, | 
|  | 75 | +      "gridPos": { | 
|  | 76 | +        "h": 6, | 
|  | 77 | +        "w": 24, | 
|  | 78 | +        "x": 0, | 
|  | 79 | +        "y": 4 | 
|  | 80 | +      }, | 
|  | 81 | +      "id": 3, | 
|  | 82 | +      "options": { | 
|  | 83 | +        "calculate": false, | 
|  | 84 | +        "cellGap": 1, | 
|  | 85 | +        "color": { | 
|  | 86 | +          "exponent": 0.5, | 
|  | 87 | +          "fill": "dark-orange", | 
|  | 88 | +          "mode": "scheme", | 
|  | 89 | +          "reverse": true, | 
|  | 90 | +          "scale": "exponential", | 
|  | 91 | +          "scheme": "Oranges", | 
|  | 92 | +          "steps": 64 | 
|  | 93 | +        }, | 
|  | 94 | +        "exemplars": { | 
|  | 95 | +          "color": "rgba(255,0,255,0.7)" | 
|  | 96 | +        }, | 
|  | 97 | +        "filterValues": { | 
|  | 98 | +          "le": 1e-9 | 
|  | 99 | +        }, | 
|  | 100 | +        "legend": { | 
|  | 101 | +          "show": true | 
|  | 102 | +        }, | 
|  | 103 | +        "rowsFrame": { | 
|  | 104 | +          "layout": "auto" | 
|  | 105 | +        }, | 
|  | 106 | +        "tooltip": { | 
|  | 107 | +          "show": true, | 
|  | 108 | +          "yHistogram": false | 
|  | 109 | +        }, | 
|  | 110 | +        "yAxis": { | 
|  | 111 | +          "axisPlacement": "left", | 
|  | 112 | +          "reverse": false | 
|  | 113 | +        } | 
|  | 114 | +      }, | 
|  | 115 | +      "pluginVersion": "9.2.3", | 
|  | 116 | +      "targets": [ | 
|  | 117 | +        { | 
|  | 118 | +          "datasource": { | 
|  | 119 | +            "type": "loki", | 
|  | 120 | +            "uid": "P00201832B18B88C3" | 
|  | 121 | +          }, | 
|  | 122 | +          "editorMode": "builder", | 
|  | 123 | +          "expr": "sum(count_over_time({label=~\"T1219.*|recon|.*susp.*\", node=~\"$node\"} |= `$query` [$__interval]))", | 
|  | 124 | +          "queryType": "range", | 
|  | 125 | +          "refId": "A" | 
|  | 126 | +        } | 
|  | 127 | +      ], | 
|  | 128 | +      "title": "Suspicious activity", | 
|  | 129 | +      "type": "heatmap" | 
|  | 130 | +    }, | 
|  | 131 | +    { | 
|  | 132 | +      "datasource": { | 
|  | 133 | +        "type": "loki", | 
|  | 134 | +        "uid": "P00201832B18B88C3" | 
|  | 135 | +      }, | 
|  | 136 | +      "description": "Filter for security auditlogs that that are potentially suspicious.", | 
|  | 137 | +      "gridPos": { | 
|  | 138 | +        "h": 17, | 
|  | 139 | +        "w": 24, | 
|  | 140 | +        "x": 0, | 
|  | 141 | +        "y": 10 | 
|  | 142 | +      }, | 
|  | 143 | +      "id": 1, | 
|  | 144 | +      "options": { | 
|  | 145 | +        "dedupStrategy": "none", | 
|  | 146 | +        "enableLogDetails": true, | 
|  | 147 | +        "prettifyLogMessage": false, | 
|  | 148 | +        "showCommonLabels": false, | 
|  | 149 | +        "showLabels": false, | 
|  | 150 | +        "showTime": true, | 
|  | 151 | +        "sortOrder": "Descending", | 
|  | 152 | +        "wrapLogMessage": true | 
|  | 153 | +      }, | 
|  | 154 | +      "targets": [ | 
|  | 155 | +        { | 
|  | 156 | +          "datasource": { | 
|  | 157 | +            "type": "loki", | 
|  | 158 | +            "uid": "P00201832B18B88C3" | 
|  | 159 | +          }, | 
|  | 160 | +          "editorMode": "builder", | 
|  | 161 | +          "expr": "{job=\"auditlogs\", label=~\"T1219.*|recon|.*susp.*\", node=~\"$node\"} |= `$query`", | 
|  | 162 | +          "key": "Q-9181c263-cf75-42fe-bf50-036eeff7207a-0", | 
|  | 163 | +          "queryType": "range", | 
|  | 164 | +          "refId": "A" | 
|  | 165 | +        } | 
|  | 166 | +      ], | 
|  | 167 | +      "title": "Suspicious activity", | 
|  | 168 | +      "type": "logs" | 
|  | 169 | +    }, | 
|  | 170 | +    { | 
|  | 171 | +      "datasource": { | 
|  | 172 | +        "type": "loki", | 
|  | 173 | +        "uid": "P00201832B18B88C3" | 
|  | 174 | +      }, | 
|  | 175 | +      "description": "All captured logs from auditd", | 
|  | 176 | +      "gridPos": { | 
|  | 177 | +        "h": 17, | 
|  | 178 | +        "w": 24, | 
|  | 179 | +        "x": 0, | 
|  | 180 | +        "y": 27 | 
|  | 181 | +      }, | 
|  | 182 | +      "id": 4, | 
|  | 183 | +      "options": { | 
|  | 184 | +        "dedupStrategy": "none", | 
|  | 185 | +        "enableLogDetails": true, | 
|  | 186 | +        "prettifyLogMessage": false, | 
|  | 187 | +        "showCommonLabels": false, | 
|  | 188 | +        "showLabels": false, | 
|  | 189 | +        "showTime": true, | 
|  | 190 | +        "sortOrder": "Descending", | 
|  | 191 | +        "wrapLogMessage": true | 
|  | 192 | +      }, | 
|  | 193 | +      "targets": [ | 
|  | 194 | +        { | 
|  | 195 | +          "datasource": { | 
|  | 196 | +            "type": "loki", | 
|  | 197 | +            "uid": "P00201832B18B88C3" | 
|  | 198 | +          }, | 
|  | 199 | +          "editorMode": "builder", | 
|  | 200 | +          "expr": "{job=\"auditlogs\", node=~\"$node\"} |= `$query`", | 
|  | 201 | +          "key": "Q-9181c263-cf75-42fe-bf50-036eeff7207a-0", | 
|  | 202 | +          "queryType": "range", | 
|  | 203 | +          "refId": "A" | 
|  | 204 | +        } | 
|  | 205 | +      ], | 
|  | 206 | +      "title": "All audit logs", | 
|  | 207 | +      "type": "logs" | 
|  | 208 | +    } | 
|  | 209 | +  ], | 
|  | 210 | +  "refresh": false, | 
|  | 211 | +  "schemaVersion": 37, | 
|  | 212 | +  "style": "dark", | 
|  | 213 | +  "tags": [], | 
|  | 214 | +  "templating": { | 
|  | 215 | +    "list": [ | 
|  | 216 | +      { | 
|  | 217 | +        "current": { | 
|  | 218 | +          "selected": false, | 
|  | 219 | +          "text": "", | 
|  | 220 | +          "value": "" | 
|  | 221 | +        }, | 
|  | 222 | +        "hide": 0, | 
|  | 223 | +        "label": "Find", | 
|  | 224 | +        "name": "query", | 
|  | 225 | +        "options": [ | 
|  | 226 | +          { | 
|  | 227 | +            "selected": true, | 
|  | 228 | +            "text": "", | 
|  | 229 | +            "value": "" | 
|  | 230 | +          } | 
|  | 231 | +        ], | 
|  | 232 | +        "query": "", | 
|  | 233 | +        "skipUrlSync": false, | 
|  | 234 | +        "type": "textbox" | 
|  | 235 | +      }, | 
|  | 236 | +      { | 
|  | 237 | +        "current": { | 
|  | 238 | +          "selected": true, | 
|  | 239 | +          "text": ["All"], | 
|  | 240 | +          "value": ["$__all"] | 
|  | 241 | +        }, | 
|  | 242 | +        "datasource": { | 
|  | 243 | +          "type": "loki", | 
|  | 244 | +          "uid": "P00201832B18B88C3" | 
|  | 245 | +        }, | 
|  | 246 | +        "definition": "", | 
|  | 247 | +        "hide": 0, | 
|  | 248 | +        "includeAll": true, | 
|  | 249 | +        "label": "Hostname", | 
|  | 250 | +        "multi": true, | 
|  | 251 | +        "name": "node", | 
|  | 252 | +        "options": [], | 
|  | 253 | +        "query": { | 
|  | 254 | +          "label": "node", | 
|  | 255 | +          "refId": "LokiVariableQueryEditor-VariableQuery", | 
|  | 256 | +          "stream": "", | 
|  | 257 | +          "type": 1 | 
|  | 258 | +        }, | 
|  | 259 | +        "refresh": 1, | 
|  | 260 | +        "regex": "", | 
|  | 261 | +        "skipUrlSync": false, | 
|  | 262 | +        "sort": 0, | 
|  | 263 | +        "type": "query" | 
|  | 264 | +      } | 
|  | 265 | +    ] | 
|  | 266 | +  }, | 
|  | 267 | +  "time": { | 
|  | 268 | +    "from": "now-15m", | 
|  | 269 | +    "to": "now" | 
|  | 270 | +  }, | 
|  | 271 | +  "timepicker": {}, | 
|  | 272 | +  "timezone": "", | 
|  | 273 | +  "title": "Audit logs", | 
|  | 274 | +  "uid": "1KG6epL4z", | 
|  | 275 | +  "version": 1, | 
|  | 276 | +  "weekStart": "" | 
|  | 277 | +} | 
0 commit comments