{
  "version": "Notebook/1.0",
  "items": [
    {
      "type": 9,
      "content": {
        "version": "KqlParameterItem/1.0",
        "parameters": [
          {
            "id": "26773226-79a9-4dd2-9de6-ade1f250ace6",
            "version": "KqlParameterItem/1.0",
            "name": "TimeRange",
            "label": "Time Range",
            "type": 4,
            "isRequired": true,
            "value": {
              "durationMs": 2419200000
            },
            "typeSettings": {
              "selectableValues": [
                {
                  "durationMs": 300000
                },
                {
                  "durationMs": 900000
                },
                {
                  "durationMs": 1800000
                },
                {
                  "durationMs": 3600000
                },
                {
                  "durationMs": 14400000
                },
                {
                  "durationMs": 43200000
                },
                {
                  "durationMs": 86400000
                },
                {
                  "durationMs": 172800000
                },
                {
                  "durationMs": 259200000
                },
                {
                  "durationMs": 604800000
                },
                {
                  "durationMs": 1209600000
                },
                {
                  "durationMs": 2419200000
                },
                {
                  "durationMs": 2592000000
                },
                {
                  "durationMs": 5184000000
                },
                {
                  "durationMs": 7776000000
                }
              ],
              "allowCustom": true
            }
          },
          {
            "id": "00be31a6-f3f8-4de8-845d-7a4985d41ef3",
            "version": "KqlParameterItem/1.0",
            "name": "InfobloxDevice",
            "label": "Infoblox Device",
            "type": 2,
            "isRequired": true,
            "multiSelect": true,
            "quote": "'",
            "delimiter": ",",
            "query": "_GetWatchlist('Sources_by_SourceType')| where SearchKey == 'InfobloxNIOS' | project Source",
            "value": [
              "value::all"
            ],
            "typeSettings": {
              "additionalResourceOptions": [
                "value::all"
              ],
              "selectAllValue": "*",
              "showDefault": false
            },
            "timeContext": {
              "durationMs": 0
            },
            "timeContextFromParameter": "TimeRange",
            "queryType": 0,
            "resourceType": "microsoft.operationalinsights/workspaces"
          }
        ],
        "style": "above",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces"
      },
      "name": "parameters - 0"
    },
    {
      "type": 11,
      "content": {
        "version": "LinkItem/1.0",
        "style": "tabs",
        "links": [
          {
            "id": "edf8a22f-492e-4c73-b113-31cb1bfee2ff",
            "cellValue": "selectedTab",
            "linkTarget": "parameter",
            "linkLabel": "DHCP",
            "subTarget": "DHCPTab",
            "preText": "DHCP",
            "style": "link"
          },
          {
            "id": "f6c0c04f-5e57-43fb-9daf-f18a44dd1d87",
            "cellValue": "selectedTab",
            "linkTarget": "parameter",
            "linkLabel": "DNS",
            "subTarget": "DNSTab",
            "style": "link"
          }
        ]
      },
      "name": "links - 1"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dhcp_consolidated\r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| where Log_Type startswith \"DHCP\"\r\n| summarize count() by Log_Type, bin(TimeGenerated, {TimeRange:grain})",
        "size": 0,
        "title": "Total Events by DHCP Message Type",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "barchart"
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DHCPTab"
      },
      "name": "query - 4"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "union \r\nInfoblox_dhcpdiscover,Infoblox_dhcprequest,Infoblox_dhcpinform\r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| summarize count() by Log_Type, bin(TimeGenerated, {TimeRange:grain})",
        "size": 0,
        "title": "DHCP Requests by Message Type",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "areachart",
        "chartSettings": {
          "seriesLabelSettings": [
            {
              "seriesName": "DHCPREQUEST",
              "color": "magenta"
            },
            {
              "seriesName": "DHCPDISCOVER",
              "color": "green"
            },
            {
              "seriesName": "DHCPINFORM",
              "color": "blue"
            }
          ],
          "xSettings": {
            "numberFormatSettings": {
              "unit": 0,
              "options": {
                "style": "decimal",
                "useGrouping": true
              }
            }
          }
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DHCPTab"
      },
      "customWidth": "50",
      "name": "query - 4 - Copy"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "union \r\nInfoblox_dhcpoffer,Infoblox_dhcpack\r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| summarize count() by Log_Type, bin(TimeGenerated, {TimeRange:grain})",
        "size": 0,
        "title": "DHCP Responses by Message Type",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "areachart",
        "chartSettings": {
          "seriesLabelSettings": [
            {
              "seriesName": "DHCPOFFER",
              "color": "blue"
            },
            {
              "seriesName": "DHCPACK",
              "color": "magenta"
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DHCPTab"
      },
      "customWidth": "50",
      "name": "query - 4 - Copy - Copy"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dhcpdiscover\r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| summarize count() by tostring(SrcMacAddr)\r\n| top 10 by count_",
        "size": 0,
        "title": "Top 10 Clients by Requests",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "table",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "count_",
              "formatter": 3,
              "formatOptions": {
                "palette": "coldHot"
              }
            }
          ],
          "labelSettings": [
            {
              "columnId": "SrcMacAddr",
              "label": "Client MAC Address"
            },
            {
              "columnId": "count_",
              "label": "Total"
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DHCPTab"
      },
      "customWidth": "50",
      "name": "query - 4 - Copy"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dhcpdiscover\r\n| summarize count() by tostring(Network)\r\n| distinct Network\r\n\r\n",
        "size": 0,
        "title": "Top 10 Clients by Requests",
        "timeContext": {
          "durationMs": 604800000
        },
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "table",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "count_",
              "formatter": 3,
              "formatOptions": {
                "palette": "coldHot"
              }
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DHCPTab"
      },
      "customWidth": "50",
      "name": "query - 4 - Copy - Copy"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dns_consolidated \r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| summarize count() by Computer, bin(TimeGenerated,15m)",
        "size": 0,
        "showAnnotations": true,
        "title": "DNS Activity by Server",
        "color": "magenta",
        "timeContext": {
          "durationMs": 604800000
        },
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "areachart"
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DNSTab"
      },
      "name": "query - 6"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dnsclient \r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| summarize Response = countif(isnotempty(DnsResponseCode)), Request = countif(isnotempty(DnsQueryClassName) and isempty(DnsResponseCode)), count() by bin(TimeGenerated, {TimeRange:grain})\r\n| project-away count_",
        "size": 0,
        "showAnnotations": true,
        "title": "DNS Requests vs Responses",
        "color": "magenta",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "linechart",
        "graphSettings": {
          "type": 0
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DNSTab"
      },
      "customWidth": "50",
      "name": "query - 6 - Copy"
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dnsclient \r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| where isnotempty(DnsResponseCode)\r\n| summarize count() by tostring(DnsResponseCode), bin(TimeGenerated, {TimeRange:grain})\r\n",
        "size": 0,
        "title": "DNS Response Code",
        "timeContextFromParameter": "TimeRange",
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "visualization": "barchart",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "count_",
              "formatter": 3,
              "formatOptions": {
                "palette": "turquoise"
              }
            }
          ],
          "labelSettings": [
            {
              "columnId": "count_",
              "label": "Total"
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DNSTab"
      },
      "customWidth": "50",
      "name": "query - 7 - Copy - Copy",
      "styleSettings": {
        "margin": "50"
      }
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dnsclient \r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| where isempty(DnsResponseCode) and isnotempty(DnsQueryClassName)\r\n| summarize count() by tostring(SrcIpAddr)\r\n| top 10 by count_",
        "size": 0,
        "title": "Top 10 DNS Request Clients",
        "timeContext": {
          "durationMs": 604800000
        },
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "count_",
              "formatter": 3,
              "formatOptions": {
                "palette": "turquoise"
              }
            }
          ],
          "labelSettings": [
            {
              "columnId": "SrcIpAddr",
              "label": "SrcIpAddr"
            },
            {
              "columnId": "count_",
              "label": "Total"
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DNSTab"
      },
      "customWidth": "50",
      "name": "query - 7",
      "styleSettings": {
        "margin": "50"
      }
    },
    {
      "type": 3,
      "content": {
        "version": "KqlItem/1.0",
        "query": "Infoblox_dnsclient \r\n| where Computer in ({InfobloxDevice}) or '*' in ({InfobloxDevice})\r\n| where isempty(DnsResponseCode) and isnotempty(DnsQueryClassName)\r\n| summarize count() by tostring(DnsQueryClassName)\r\n| top 10 by count_",
        "size": 0,
        "title": "Top 10 DNS Request Domains",
        "timeContext": {
          "durationMs": 604800000
        },
        "queryType": 0,
        "resourceType": "microsoft.operationalinsights/workspaces",
        "gridSettings": {
          "formatters": [
            {
              "columnMatch": "count_",
              "formatter": 3,
              "formatOptions": {
                "palette": "turquoise"
              }
            }
          ],
          "labelSettings": [
            {
              "columnId": "DnsQueryClassName",
              "label": "Domain Name"
            },
            {
              "columnId": "count_",
              "label": "Total"
            }
          ]
        }
      },
      "conditionalVisibility": {
        "parameterName": "selectedTab",
        "comparison": "isEqualTo",
        "value": "DNSTab"
      },
      "customWidth": "50",
      "name": "query - 7 - Copy",
      "styleSettings": {
        "margin": "50"
      }
    }
  ],
  "fallbackResourceIds": [],
  "fromTemplateId": "sentinel-InfobloxWorkbook",
  "$schema": "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json"
}