{
  "version": "Notebook/1.0",
  "items": [
    {
      "type": 1,
      "content": {
        "json": "**NOTE**: This data connector depends on a parser based on Kusto Function **CiscoWSAEvent** to work as expected. [Follow steps to get this Kusto Function](https://aka.ms/sentinel-ciscowsa-parser)"
      },
      "name": "text - 8"
    },
    {
      "type": 9,
      "content": {
        "version": "KqlParameterItem/1.0",
        "parameters": [
          {
            "id": "cd8447d9-b096-4673-92d8-2a1e8291a125",
            "version": "KqlParameterItem/1.0",
            "name": "TimeRange",
            "type": 4,
            "description": "Sets the time name for analysis",
            "value": {
              "durationMs": 2592000000
            },
            "typeSettings": {
              "selectableValues": [
                {
                  "durationMs": 1800000
                },
                {
                  "durationMs": 3600000
                },
                {
                  "durationMs": 86400000
                },
                {
                  "durationMs": 604800000
                },
                {
                  "durationMs": 2592000000
                },
                {
                  "durationMs": 7776000000
                }
              ]
            },
            "timeContext": {
              "durationMs": 86400000
            }
          }
        ],
        "style": "pills",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces"
      },
      "name": "parameters - 11"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\r\n| make-series TotalEvents = count() default = 0 on TimeGenerated from {TimeRange:start} to {TimeRange:end} step {TimeRange:grain};",
        "size": 0,
        "title": "Events Over Time",
        "color": "blueDark",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "timechart",
        "graphSettings": {
          "type": 0
        }
      },
      "customWidth": "60",
      "name": "query - 12",
      "styleSettings": {
        "maxWidth": "55"
      }
    },
    {
      "type": 12,
      "content": {
        "version": "NotebookGroup/1.0",
        "groupType": "editable",
        "title": "Sources Summary",
        "items": [
          {
            "type": 3,
            "content": {
              "version": "KqlItem/1.0",
              "query": "CiscoWSAEvent\r\n| where isnotempty(SrcIpAddr)\r\n| summarize dcount(SrcIpAddr)",
              "size": 3,
              "title": "IP Addresses",
              "timeContext": {
                "durationMs": 0
              },
              "timeContextFromParameter": "TimeRange",
              "queryType": 0,
              "resourceType": "microsoft.operationalinsights/workspaces",
              "visualization": "card",
              "textSettings": {
                "style": "bignumber"
              }
            },
            "customWidth": "50",
            "name": "query - 3",
            "styleSettings": {
              "margin": "10",
              "padding": "10"
            }
          },
          {
            "type": 3,
            "content": {
              "version": "KqlItem/1.0",
              "query": "CiscoWSAEvent\n| where isnotempty(SrcUserName)\n| where SrcUserName != '-'\n| summarize dcount(SrcUserName)",
              "size": 3,
              "title": "Users",
              "timeContext": {
                "durationMs": 0
              },
              "timeContextFromParameter": "TimeRange",
              "queryType": 0,
              "resourceType": "microsoft.operationalinsights/workspaces",
              "visualization": "card",
              "textSettings": {
                "style": "bignumber"
              }
            },
            "customWidth": "50",
            "name": "query - 1"
          },
          {
            "type": 3,
            "content": {
              "version": "KqlItem/1.0",
              "query": "CiscoWSAEvent\n| where isnotempty(DstBytes)\n| summarize tb = sum(tolong(DstBytes))\n| project mb = tb / 1000000",
              "size": 3,
              "title": "Total Traffic Volume (MB)",
              "timeContext": {
                "durationMs": 0
              },
              "timeContextFromParameter": "TimeRange",
              "queryType": 0,
              "resourceType": "microsoft.operationalinsights/workspaces",
              "visualization": "card",
              "textSettings": {
                "style": "bignumber"
              }
            },
            "customWidth": "50",
            "name": "query - 2"
          },
          {
            "type": 3,
            "content": {
              "version": "KqlItem/1.0",
              "query": "CiscoWSAEvent\n| where DvcAction startswith 'BLOCK_'\n| summarize count()",
              "size": 3,
              "title": "Threats Blocked",
              "noDataMessage": "0",
              "timeContext": {
                "durationMs": 0
              },
              "timeContextFromParameter": "TimeRange",
              "queryType": 0,
              "resourceType": "microsoft.operationalinsights/workspaces",
              "visualization": "card",
              "textSettings": {
                "style": "bignumber"
              }
            },
            "customWidth": "50",
            "name": "query - 3"
          }
        ]
      },
      "customWidth": "40",
      "name": "group - 11"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\n| summarize count() by UrlCategory\n| project count_, ['URL Category'] = case(UrlCategory =~ 'IW_infr', \"Infrastructure and CDN\", \n                                    UrlCategory =~ 'IW_adv', \"Advertisements\", \n                                    UrlCategory =~ 'IW_art', \"Arts\",\n                                    UrlCategory =~ 'IW_busi', \"Business and Industry\",\n                                    UrlCategory =~ 'IW_csec', \"Computer Security\",\n                                    UrlCategory =~ 'IW_comp', \"Computers and Internet\",\n                                    UrlCategory =~ 'IW_edu', \"Education\",\n                                    UrlCategory =~ 'IW_ent', \"Entertainment\",\n                                    UrlCategory =~ 'IW_fts', \"File Transfer Services\",\n                                    UrlCategory =~ 'IW_fnnc', \"Finance\",\n                                    UrlCategory =~ 'IW_hmed', \"Health and Medicine\",\n                                    UrlCategory =~ 'IW_job', \"Job Search\",\n                                    UrlCategory =~ 'IW_news', \"News\",\n                                    UrlCategory =~ 'IW_docs', \"Online Document Sharing and Collaboration\",\n                                    UrlCategory =~ 'IW_meet', \"Online Meetings\",\n                                    \"Other\")",
        "size": 3,
        "title": "URL Categories",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "piechart"
      },
      "customWidth": "35",
      "name": "query - 11"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\r\n| summarize count() by UrlCategory\r\n| project count_, ['URL Category'] = case(UrlCategory =~ 'IW_infr', \"Infrastructure and CDN\", \r\n                                    UrlCategory =~ 'IW_adv', \"Advertisements\", \r\n                                    UrlCategory =~ 'IW_art', \"Arts\",\r\n                                    UrlCategory =~ 'IW_busi', \"Business and Industry\",\r\n                                    UrlCategory =~ 'IW_csec', \"Computer Security\",\r\n                                    UrlCategory =~ 'IW_comp', \"Computers and Internet\",\r\n                                    UrlCategory =~ 'IW_edu', \"Education\",\r\n                                    UrlCategory =~ 'IW_ent', \"Entertainment\",\r\n                                    UrlCategory =~ 'IW_fts', \"File Transfer Services\",\r\n                                    UrlCategory =~ 'IW_fnnc', \"Finance\",\r\n                                    UrlCategory =~ 'IW_hmed', \"Health and Medicine\",\r\n                                    UrlCategory =~ 'IW_job', \"Job Search\",\r\n                                    UrlCategory =~ 'IW_news', \"News\",\r\n                                    UrlCategory =~ 'IW_docs', \"Online Document Sharing and Collaboration\",\r\n                                    UrlCategory =~ 'IW_meet', \"Online Meetings\",\r\n                                    \"Other\")\r\n| top 8 by ['URL Category'] desc\r\n",
        "size": 3,
        "title": "Top URL Categories",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "tiles",
        "tileSettings": {
          "titleContent": {
            "columnMatch": "URL Category",
            "formatter": 1
          },
          "leftContent": {
            "columnMatch": "count_",
            "formatter": 12,
            "formatOptions": {
              "palette": "auto"
            },
            "numberFormat": {
              "unit": 17,
              "options": {
                "style": "decimal",
                "maximumFractionDigits": 2,
                "maximumSignificantDigits": 3
              }
            }
          },
          "secondaryContent": {
            "columnMatch": "Trend",
            "formatter": 9,
            "formatOptions": {
              "palette": "purple"
            }
          },
          "showBorder": false
        }
      },
      "customWidth": "35",
      "name": "query - 0",
      "styleSettings": {
        "maxWidth": "30"
      }
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\n| where isnotempty(DstDvcHostname)\n| summarize count() by DstDvcHostname\n| top 10 by DstDvcHostname\n| order by count_\n| project-rename Domain = DstDvcHostname, ['Total Events'] = count_",
        "size": 0,
        "title": "Top visited domains",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "table",
        "tileSettings": {
          "titleContent": {
            "columnMatch": "User",
            "formatter": 1
          },
          "leftContent": {
            "columnMatch": "TotalMailsReceived",
            "formatter": 12,
            "formatOptions": {
              "palette": "auto"
            },
            "numberFormat": {
              "unit": 17,
              "options": {
                "maximumSignificantDigits": 3,
                "maximumFractionDigits": 2
              }
            }
          },
          "secondaryContent": {
            "columnMatch": "Trend",
            "formatter": 10,
            "formatOptions": {
              "palette": "magenta"
            }
          },
          "showBorder": false
        }
      },
      "customWidth": "30",
      "name": "query - 10"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\r\n| where isnotempty(SrcUserName)\r\n| summarize TotalBytes = sum(DstBytes) by SrcUserName\r\n| top 10 by TotalBytes\r\n| project User=SrcUserName, ['Total Bytes (KB)'] = TotalBytes/1000",
        "size": 3,
        "title": "Top Users",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "table",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "Total Bytes (KB)",
              "formatter": 8,
              "formatOptions": {
                "palette": "greenRed"
              }
            }
          ]
        },
        "sortBy": []
      },
      "customWidth": "33",
      "name": "query - 2"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\n| where isnotempty(ThreatName)\n| summarize count() by ThreatName",
        "size": 3,
        "title": "Discovered Threats",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "piechart"
      },
      "customWidth": "30",
      "name": "query - 9"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "CiscoWSAEvent\r\n| where isnotempty(AmpFileName)\r\n| project TimeGenerated, SrcUserName, AmpFileName, Result=strcat(iff(isnotempty(AmpScanningVerdict) or AmpScanningVerdict !has 'clean', '❌ - Infected', '✅ - Clean'))\r\n",
        "size": 1,
        "title": "Latest scanned files",
        "timeContext": {
          "durationMs": 0
        },
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "table",
        "gridSettings": {
          "filter": true
        }
      },
      "customWidth": "34",
      "name": "query - 1"
    }
  ],
  "fromTemplateId": "sentinel-CiscoWSAWorkbook",
  "$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json"
}