cloudflare/Azure-Sentinel
Publicmirrored fromhttps://github.com/cloudflare/Azure-Sentinel
Dashboards/Azure_Information_Protection_Usage.json
460lines · modecode
7 years ago
| 1 | { |
| 2 | "name": "AIPUsageReport-{Workspace_Name}", |
| 3 | "type": "Microsoft.Portal/dashboards", |
| 4 | "location": "{Dashboard_Location}", |
| 5 | "tags": { |
| 6 | "dashboardKey": "AIPUsageReport", |
| 7 | "hidden-title": "Azure Information Ptorection usage report - {Workspace_Name}", |
| 8 | "version": "1.0", |
| 9 | "workspaceName": "{Workspace_Name}" |
| 10 | }, |
| 11 | "properties": { |
| 12 | "lenses": { |
| 13 | "0": { |
| 14 | "order": 0, |
| 15 | "parts": { |
| 16 | "0": { |
| 17 | "position": { |
| 18 | "x": 1, |
| 19 | "y": 0, |
| 20 | "colSpan": 11, |
| 21 | "rowSpan": 1 |
| 22 | }, |
| 23 | "metadata": { |
| 24 | "inputs": [], |
| 25 | "type": "Extension/HubsExtension/PartType/MarkdownPart", |
| 26 | "settings": { |
| 27 | "content": { |
| 28 | "settings": { |
| 29 | "content": "<div style='font-size:300%;'>Azure Information Protection - Usage report</div>\n\n", |
| 30 | "title": "", |
| 31 | "subtitle": "" |
| 32 | } |
| 33 | } |
| 34 | } |
| 35 | } |
| 36 | }, |
| 37 | "1": { |
| 38 | "position": { |
| 39 | "x": 12, |
| 40 | "y": 0, |
| 41 | "colSpan": 2, |
| 42 | "rowSpan": 1 |
| 43 | }, |
| 44 | "metadata": { |
| 45 | "inputs": [], |
| 46 | "type": "Extension/HubsExtension/PartType/MarkdownPart", |
| 47 | "settings": { |
| 48 | "content": { |
| 49 | "settings": { |
| 50 | "content": "<div style=\"max-width: 40px\">\n<svg viewBox=\"0 0 212 250\" class=\"\" role=\"presentation\" focusable=\"false\" xmlns:svg=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" id=\"FxSymbol0-03e\" width=\"100%\" height=\"100%\"><g><title></title><path d=\"M129.979.04c33.738 1.193 60.724 28.925 60.724 62.962v36.786h1.806c10.497 0 19.007 8.506 19.007 19.005v112.202c0 10.496-8.501 19.005-19.007 19.005H19.491C8.994 250 .484 241.494.484 230.995V118.793c0-10.496 8.501-19.005 19.007-19.005h1.806V63.002c0-34.036 26.995-61.769 60.725-62.962h47.957zM61.157 99.788h90.932V57.831c0-13.812-11.192-25.008-24.998-25.008H86.155c-13.802 0-24.998 11.197-24.998 25.008v41.957zm22.017 74.71l39.824-15.287c3.695 3.467 8.598 5.579 13.979 5.579 11.495 0 20.813-9.64 20.813-21.531 0-11.891-9.318-21.53-20.813-21.53-10.188 0-18.666 7.573-20.462 17.574l-65.044 24.968a10.445 10.445 0 0 0-6.505 7.7c-1.505 5.166 1.177 10.709 6.294 12.673l65.148 25.008c1.536 10.323 10.16 18.227 20.569 18.227 11.495 0 20.813-9.639 20.813-21.53 0-11.891-9.318-21.531-20.813-21.531-5.154 0-9.871 1.938-13.506 5.149l-40.297-15.469z\" fill=\"#58b4d9\"></path></g></svg></div>", |
| 51 | "title": "", |
| 52 | "subtitle": "" |
| 53 | } |
| 54 | } |
| 55 | } |
| 56 | } |
| 57 | }, |
| 58 | "2": { |
| 59 | "position": { |
| 60 | "x": 0, |
| 61 | "y": 1, |
| 62 | "colSpan": 7, |
| 63 | "rowSpan": 4 |
| 64 | }, |
| 65 | "metadata": { |
| 66 | "inputs": [ |
| 67 | { |
| 68 | "name": "ComponentId", |
| 69 | "value": { |
| 70 | "SubscriptionId": "{Subscription_Id}", |
| 71 | "ResourceGroup": "{Resource_Group}", |
| 72 | "Name": "{Workspace_Name}", |
| 73 | "ResourceId": "/subscriptions/{Subscription_Id}/resourceGroups/{Resource_Group}/providers/Microsoft.OperationalInsights/workspaces/{Workspace_Name}" |
| 74 | } |
| 75 | }, |
| 76 | { |
| 77 | "name": "Query", |
| 78 | "value": "let minTime = toscalar(InformationProtectionEvents | where isnotempty(MachineName) | summarize min(Time));\nlet dates = range [\"date\"] from bin(minTime, 1d) to now() step 1d;\nInformationProtectionEvents\n| where isnotempty(MachineName)\n| summarize labels=countif(isnotempty(ItemPath) and Activity in (\"NewLabel\", \"UpgradeLabel\", \"DowngradeLabel\", \"RemoveProtection\", \"NewProtection\", \"ChangeProtection\") and isnotempty(LabelId)), protected=countif(isnotempty(ItemPath) and Activity in (\"NewLabel\", \"UpgradeLabel\", \"DowngradeLabel\", \"RemoveProtection\", \"NewProtection\", \"ChangeProtection\") and IsProtected) by bin(Time, 1d)\n| join kind= rightouter (\n dates\n)\non $left.Time == $right.[\"date\"]\n| project [\"date\"], Labels = coalesce(labels, 0), [\"Protected Labels\"] = coalesce(protected, 0)\n| render timechart\n" |
| 79 | }, |
| 80 | { |
| 81 | "name": "TimeRange", |
| 82 | "value": "P7D" |
| 83 | }, |
| 84 | { |
| 85 | "name": "Dimensions", |
| 86 | "value": { |
| 87 | "xAxis": { |
| 88 | "name": "date", |
| 89 | "type": "DateTime" |
| 90 | }, |
| 91 | "yAxis": [ |
| 92 | { |
| 93 | "name": "Labels", |
| 94 | "type": "Int64" |
| 95 | }, |
| 96 | { |
| 97 | "name": "Protected Labels", |
| 98 | "type": "Int64" |
| 99 | } |
| 100 | ], |
| 101 | "splitBy": [], |
| 102 | "aggregation": "Sum" |
| 103 | } |
| 104 | }, |
| 105 | { |
| 106 | "name": "Version", |
| 107 | "value": "1.0" |
| 108 | }, |
| 109 | { |
| 110 | "name": "DashboardId", |
| 111 | "value": "/subscriptions/{Subscription_Id}/resourceGroups/dashboards/providers/Microsoft.Portal/dashboards/8b4a4a24-6c67-4d3f-ba09-4af23489d450" |
| 112 | }, |
| 113 | { |
| 114 | "name": "PartId", |
| 115 | "value": "c8ea89d0-16e7-4361-ba0f-309e9bbbae75" |
| 116 | }, |
| 117 | { |
| 118 | "name": "PartTitle", |
| 119 | "value": "Analytics" |
| 120 | }, |
| 121 | { |
| 122 | "name": "PartSubTitle", |
| 123 | "value": "{Workspace_Name}" |
| 124 | }, |
| 125 | { |
| 126 | "name": "resourceTypeMode", |
| 127 | "value": "workspace" |
| 128 | }, |
| 129 | { |
| 130 | "name": "ControlType", |
| 131 | "value": "AnalyticsChart" |
| 132 | }, |
| 133 | { |
| 134 | "name": "SpecificChart", |
| 135 | "value": "Line" |
| 136 | } |
| 137 | ], |
| 138 | "type": "Extension/AppInsightsExtension/PartType/AnalyticsPart", |
| 139 | "settings": { |
| 140 | "content": { |
| 141 | "PartTitle": "Label and protect activity", |
| 142 | "PartSubTitle": "" |
| 143 | } |
| 144 | }, |
| 145 | "asset": { |
| 146 | "idInputName": "ComponentId", |
| 147 | "type": "ApplicationInsights" |
| 148 | } |
| 149 | } |
| 150 | }, |
| 151 | "3": { |
| 152 | "position": { |
| 153 | "x": 7, |
| 154 | "y": 1, |
| 155 | "colSpan": 7, |
| 156 | "rowSpan": 4 |
| 157 | }, |
| 158 | "metadata": { |
| 159 | "inputs": [ |
| 160 | { |
| 161 | "name": "ComponentId", |
| 162 | "value": { |
| 163 | "SubscriptionId": "{Subscription_Id}", |
| 164 | "ResourceGroup": "{Resource_Group}", |
| 165 | "Name": "{Workspace_Name}", |
| 166 | "ResourceId": "/subscriptions/{Subscription_Id}/resourceGroups/{Resource_Group}/providers/Microsoft.OperationalInsights/workspaces/{Workspace_Name}" |
| 167 | } |
| 168 | }, |
| 169 | { |
| 170 | "name": "Query", |
| 171 | "value": "let minTime = toscalar(InformationProtectionEvents | where isnotempty(MachineName) | summarize min(Time));\nlet dates = range [\"date\"] from bin(minTime, 1d) to now() step 1d;\nInformationProtectionEvents\n| where isnotempty(MachineName)\n| summarize users=dcount(User), devices = dcount(MachineName) by bin(Time, 1d)\n| join kind= rightouter\n(\n dates\n)\non $left.Time == $right.[\"date\"]\n| project [\"date\"], users = coalesce(users, 0), devices = coalesce(devices, 0)\n| render timechart\n" |
| 172 | }, |
| 173 | { |
| 174 | "name": "TimeRange", |
| 175 | "value": "P7D" |
| 176 | }, |
| 177 | { |
| 178 | "name": "Dimensions", |
| 179 | "value": { |
| 180 | "xAxis": { |
| 181 | "name": "date", |
| 182 | "type": "DateTime" |
| 183 | }, |
| 184 | "yAxis": [ |
| 185 | { |
| 186 | "name": "users", |
| 187 | "type": "Int64" |
| 188 | }, |
| 189 | { |
| 190 | "name": "devices", |
| 191 | "type": "Int64" |
| 192 | } |
| 193 | ], |
| 194 | "splitBy": [], |
| 195 | "aggregation": "Sum" |
| 196 | } |
| 197 | }, |
| 198 | { |
| 199 | "name": "Version", |
| 200 | "value": "1.0" |
| 201 | }, |
| 202 | { |
| 203 | "name": "DashboardId", |
| 204 | "value": "/subscriptions/{Subscription_Id}/resourceGroups/dashboards/providers/Microsoft.Portal/dashboards/8b4a4a24-6c67-4d3f-ba09-4af23489d450" |
| 205 | }, |
| 206 | { |
| 207 | "name": "PartId", |
| 208 | "value": "300f9881-f32a-4582-ade5-1226c70e6dfd" |
| 209 | }, |
| 210 | { |
| 211 | "name": "PartTitle", |
| 212 | "value": "Analytics" |
| 213 | }, |
| 214 | { |
| 215 | "name": "PartSubTitle", |
| 216 | "value": "{Workspace_Name}" |
| 217 | }, |
| 218 | { |
| 219 | "name": "resourceTypeMode", |
| 220 | "value": "workspace" |
| 221 | }, |
| 222 | { |
| 223 | "name": "ControlType", |
| 224 | "value": "AnalyticsChart" |
| 225 | }, |
| 226 | { |
| 227 | "name": "SpecificChart", |
| 228 | "value": "Line" |
| 229 | } |
| 230 | ], |
| 231 | "type": "Extension/AppInsightsExtension/PartType/AnalyticsPart", |
| 232 | "settings": { |
| 233 | "content": { |
| 234 | "PartTitle": "Users and devices", |
| 235 | "PartSubTitle": "" |
| 236 | } |
| 237 | }, |
| 238 | "asset": { |
| 239 | "idInputName": "ComponentId", |
| 240 | "type": "ApplicationInsights" |
| 241 | } |
| 242 | } |
| 243 | }, |
| 244 | "4": { |
| 245 | "position": { |
| 246 | "x": 0, |
| 247 | "y": 5, |
| 248 | "colSpan": 7, |
| 249 | "rowSpan": 4 |
| 250 | }, |
| 251 | "metadata": { |
| 252 | "inputs": [ |
| 253 | { |
| 254 | "name": "ComponentId", |
| 255 | "value": { |
| 256 | "SubscriptionId": "{Subscription_Id}", |
| 257 | "ResourceGroup": "{Resource_Group}", |
| 258 | "Name": "{Workspace_Name}", |
| 259 | "ResourceId": "/subscriptions/{Subscription_Id}/resourceGroups/{Resource_Group}/providers/Microsoft.OperationalInsights/workspaces/{Workspace_Name}" |
| 260 | } |
| 261 | }, |
| 262 | { |
| 263 | "name": "Query", |
| 264 | "value": "InformationProtectionEvents\n| where isnotempty(LabelId)\n| where isnotempty(ItemPath)\n| where Activity in (\"NewLabel\", \"UpgradeLabel\", \"DowngradeLabel\", \"RemoveProtection\", \"NewProtection\", \"ChangeProtection\")\n| summarize value=count() by LabelName\n| order by value\n| render piechart\n" |
| 265 | }, |
| 266 | { |
| 267 | "name": "TimeRange", |
| 268 | "value": "P30D" |
| 269 | }, |
| 270 | { |
| 271 | "name": "Dimensions", |
| 272 | "value": { |
| 273 | "xAxis": { |
| 274 | "name": "LabelName", |
| 275 | "type": "String" |
| 276 | }, |
| 277 | "yAxis": [ |
| 278 | { |
| 279 | "name": "value", |
| 280 | "type": "Int64" |
| 281 | } |
| 282 | ], |
| 283 | "splitBy": [], |
| 284 | "aggregation": "Sum" |
| 285 | } |
| 286 | }, |
| 287 | { |
| 288 | "name": "Version", |
| 289 | "value": "1.0" |
| 290 | }, |
| 291 | { |
| 292 | "name": "DashboardId", |
| 293 | "value": "/subscriptions/{Subscription_Id}/resourceGroups/dashboards/providers/Microsoft.Portal/dashboards/8b4a4a24-6c67-4d3f-ba09-4af23489d450" |
| 294 | }, |
| 295 | { |
| 296 | "name": "PartId", |
| 297 | "value": "2d159aaf-f02c-42cf-91c2-04566e6dd41d" |
| 298 | }, |
| 299 | { |
| 300 | "name": "PartTitle", |
| 301 | "value": "Analytics" |
| 302 | }, |
| 303 | { |
| 304 | "name": "PartSubTitle", |
| 305 | "value": "{Workspace_Name}" |
| 306 | }, |
| 307 | { |
| 308 | "name": "resourceTypeMode", |
| 309 | "value": "workspace" |
| 310 | }, |
| 311 | { |
| 312 | "name": "ControlType", |
| 313 | "value": "AnalyticsDonut" |
| 314 | }, |
| 315 | { |
| 316 | "name": "SpecificChart", |
| 317 | "isOptional": true |
| 318 | } |
| 319 | ], |
| 320 | "type": "Extension/AppInsightsExtension/PartType/AnalyticsPart", |
| 321 | "settings": { |
| 322 | "content": { |
| 323 | "PartTitle": "Labels", |
| 324 | "PartSubTitle": "" |
| 325 | } |
| 326 | }, |
| 327 | "asset": { |
| 328 | "idInputName": "ComponentId", |
| 329 | "type": "ApplicationInsights" |
| 330 | } |
| 331 | } |
| 332 | }, |
| 333 | "5": { |
| 334 | "position": { |
| 335 | "x": 7, |
| 336 | "y": 5, |
| 337 | "colSpan": 7, |
| 338 | "rowSpan": 4 |
| 339 | }, |
| 340 | "metadata": { |
| 341 | "inputs": [ |
| 342 | { |
| 343 | "name": "ComponentId", |
| 344 | "value": { |
| 345 | "SubscriptionId": "{Subscription_Id}", |
| 346 | "ResourceGroup": "{Resource_Group}", |
| 347 | "Name": "{Workspace_Name}", |
| 348 | "ResourceId": "/subscriptions/{Subscription_Id}/resourceGroups/{Resource_Group}/providers/Microsoft.OperationalInsights/workspaces/{Workspace_Name}" |
| 349 | } |
| 350 | }, |
| 351 | { |
| 352 | "name": "Query", |
| 353 | "value": "InformationProtectionEvents\n| where isnotempty(LabelId)\n| where isnotempty(ItemPath)\n| where Activity in (\"NewLabel\", \"UpgradeLabel\", \"DowngradeLabel\", \"RemoveProtection\", \"NewProtection\", \"ChangeProtection\")\n| summarize value=count() by ApplicationName\n| order by value\n| render piechart\n" |
| 354 | }, |
| 355 | { |
| 356 | "name": "TimeRange", |
| 357 | "value": "P30D" |
| 358 | }, |
| 359 | { |
| 360 | "name": "Dimensions", |
| 361 | "value": { |
| 362 | "xAxis": { |
| 363 | "name": "ApplicationName", |
| 364 | "type": "String" |
| 365 | }, |
| 366 | "yAxis": [ |
| 367 | { |
| 368 | "name": "value", |
| 369 | "type": "Int64" |
| 370 | } |
| 371 | ], |
| 372 | "splitBy": [], |
| 373 | "aggregation": "Sum" |
| 374 | } |
| 375 | }, |
| 376 | { |
| 377 | "name": "Version", |
| 378 | "value": "1.0" |
| 379 | }, |
| 380 | { |
| 381 | "name": "DashboardId", |
| 382 | "value": "/subscriptions/{Subscription_Id}/resourceGroups/dashboards/providers/Microsoft.Portal/dashboards/AzureInformationPtotectionUsage_{Workspace_Name}" |
| 383 | }, |
| 384 | { |
| 385 | "name": "PartId", |
| 386 | "value": "cd7abf90-a2bc-4135-8a43-db8ff92c6a78" |
| 387 | }, |
| 388 | { |
| 389 | "name": "PartTitle", |
| 390 | "value": "Analytics" |
| 391 | }, |
| 392 | { |
| 393 | "name": "PartSubTitle", |
| 394 | "value": "{Workspace_Name}" |
| 395 | }, |
| 396 | { |
| 397 | "name": "resourceTypeMode", |
| 398 | "value": "workspace" |
| 399 | }, |
| 400 | { |
| 401 | "name": "ControlType", |
| 402 | "value": "AnalyticsDonut" |
| 403 | }, |
| 404 | { |
| 405 | "name": "SpecificChart", |
| 406 | "isOptional": true |
| 407 | } |
| 408 | ], |
| 409 | "type": "Extension/AppInsightsExtension/PartType/AnalyticsPart", |
| 410 | "settings": { |
| 411 | "content": { |
| 412 | "PartTitle": "Labels by application", |
| 413 | "PartSubTitle": "" |
| 414 | } |
| 415 | }, |
| 416 | "asset": { |
| 417 | "idInputName": "ComponentId", |
| 418 | "type": "ApplicationInsights" |
| 419 | } |
| 420 | } |
| 421 | }, |
| 422 | "6": { |
| 423 | "position": { |
| 424 | "x": 0, |
| 425 | "y": 0, |
| 426 | "colSpan": 1, |
| 427 | "rowSpan": 1 |
| 428 | }, |
| 429 | "metadata": { |
| 430 | "inputs": [ |
| 431 | { |
| 432 | "name": "subscriptionId", |
| 433 | "value": "{Subscription_Id}" |
| 434 | }, |
| 435 | { |
| 436 | "name": "resourceGroup", |
| 437 | "value": "{Resource_Group}" |
| 438 | }, |
| 439 | { |
| 440 | "name": "workspaceName", |
| 441 | "value": "{Workspace_Name}" |
| 442 | }, |
| 443 | { |
| 444 | "name": "dashboardName", |
| 445 | "value": "AIPUsage" |
| 446 | }, |
| 447 | { |
| 448 | "name": "menuItemToOpen", |
| 449 | "value": "Dashboards" |
| 450 | } |
| 451 | ], |
| 452 | "type": "Extension/Microsoft_Azure_Security_Insights/PartType/AsiOverviewPart", |
| 453 | "defaultMenuItemId": "0" |
| 454 | } |
| 455 | } |
| 456 | } |
| 457 | } |
| 458 | } |
| 459 | } |
| 460 | } |