Skip to content

Commit

Permalink
Update error msg filter (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzhao8888 committed May 26, 2023
1 parent 586e182 commit d893e62
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 46 deletions.
27 changes: 15 additions & 12 deletions Credential Scan on Azure Blob Storage.ipynb
Expand Up @@ -93,7 +93,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1633644325149
"logged": 1685048225803
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -128,7 +128,7 @@
" \"Check to see if there is a valid AAD token\"\n",
" try:\n",
" error = \"Please run 'az login'\"\n",
" expired = \"ERROR: AADSTS70043: The refresh token has expired or is invalid\"\n",
" expired = \"AADSTS70043: The refresh token has expired or is invalid\"\n",
" failed = \"failed\"\n",
" validator = !az account get-access-token\n",
" \n",
Expand Down Expand Up @@ -209,7 +209,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1633644326054
"logged": 1685048266000
},
"jupyter": {
"outputs_hidden": false,
Expand All @@ -234,7 +234,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1633644330038
"logged": 1685048270386
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -286,7 +286,7 @@
"execution_count": null,
"metadata": {
"gather": {
"logged": 1633644331077
"logged": 1685048272804
}
}
},
Expand All @@ -304,7 +304,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434188031
"logged": 1685048277919
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -336,7 +336,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434195952
"logged": 1685048288189
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -391,7 +391,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434206853
"logged": 1685048296313
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -424,7 +424,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434212995
"logged": 1685048298982
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -455,7 +455,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434216559
"logged": 1685048303926
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -507,7 +507,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434219502
"logged": 1685048306226
},
"jupyter": {
"outputs_hidden": false,
Expand All @@ -534,7 +534,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1627592332992
"logged": 1685048314084
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -575,6 +575,9 @@
"AzureML": {
"notebookHasBeenCompleted": true
}
},
"ms_spell_check": {
"ms_spell_check_language": "en"
}
},
"nteract": {
Expand Down
29 changes: 16 additions & 13 deletions Credential Scan on Azure Data Explorer.ipynb
Expand Up @@ -50,14 +50,14 @@
"# If you need to know what Python modules are available, you may run this:\n",
"# help(\"modules\")\n",
"# During the installation, there maybe some incompatible errors, you can safely ignore them.\n",
"!pip install azure-kusto-data\n",
"!pip install azure-kusto-data --upgrade\n",
"!pip install azure-mgmt-kusto --upgrade"
],
"outputs": [],
"execution_count": null,
"metadata": {
"gather": {
"logged": 1632434315203
"logged": 1684965646387
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -94,7 +94,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434338878
"logged": 1685038237329
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -129,7 +129,7 @@
" \"Check to see if there is a valid AAD token\"\n",
" try:\n",
" error = \"Please run 'az login'\"\n",
" expired = \"ERROR: AADSTS70043: The refresh token has expired or is invalid\"\n",
" expired = \"AADSTS70043: The refresh token has expired or is invalid\"\n",
" failed = \"failed\"\n",
" validator = !az account get-access-token\n",
" \n",
Expand Down Expand Up @@ -202,7 +202,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434343365
"logged": 1685038239808
},
"jupyter": {
"outputs_hidden": false,
Expand All @@ -227,7 +227,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434349113
"logged": 1685038243207
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -278,7 +278,7 @@
"execution_count": null,
"metadata": {
"gather": {
"logged": 1632434356383
"logged": 1685038246129
}
}
},
Expand All @@ -296,7 +296,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434359002
"logged": 1685038259840
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -341,7 +341,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434366552
"logged": 1685038340146
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -373,7 +373,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434374291
"logged": 1685038346680
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -415,7 +415,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434381564
"logged": 1685038353673
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -451,7 +451,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1627592981481
"logged": 1685038374956
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -499,7 +499,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434389851
"logged": 1685038380125
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -565,6 +565,9 @@
"AzureML": {
"notebookHasBeenCompleted": true
}
},
"ms_spell_check": {
"ms_spell_check_language": "en"
}
},
"nteract": {
Expand Down
27 changes: 15 additions & 12 deletions Credential Scan on Azure Log Analytics.ipynb
Expand Up @@ -56,7 +56,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1627584288208
"logged": 1685046982904
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -88,7 +88,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434528751
"logged": 1685047045861
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -123,7 +123,7 @@
" \"Check to see if there is a valid AAD token\"\n",
" try:\n",
" error = \"Please run 'az login'\"\n",
" expired = \"ERROR: AADSTS70043: The refresh token has expired or is invalid\"\n",
" expired = \"AADSTS70043: The refresh token has expired or is invalid\"\n",
" failed = \"failed\"\n",
" validator = !az account get-access-token\n",
" \n",
Expand Down Expand Up @@ -192,7 +192,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434530603
"logged": 1685047048410
},
"jupyter": {
"outputs_hidden": false,
Expand All @@ -217,7 +217,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434535551
"logged": 1685047431482
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -258,7 +258,7 @@
"execution_count": null,
"metadata": {
"gather": {
"logged": 1632434569885
"logged": 1685047434386
}
}
},
Expand All @@ -277,7 +277,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434596783
"logged": 1685047436188
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -309,8 +309,8 @@
"# Get all tables available using Kusto query language. If you need to know more about KQL, please check out the link provided at the introductory section.\n",
"tables_result = None\n",
"table_list = None\n",
"start_time=datetime(2022, 1, 1, tzinfo=timezone.utc)\n",
"end_time=datetime(2022, 12, 31, tzinfo=timezone.utc)\n",
"start_time=datetime(2023, 1, 1, tzinfo=timezone.utc)\n",
"end_time=datetime(2024, 12, 31, tzinfo=timezone.utc)\n",
"\n",
"all_tables_query = \"union withsource = SentinelTableName * | distinct SentinelTableName | sort by SentinelTableName asc\"\n",
"tables_result = la_data_client.query_workspace(\n",
Expand All @@ -329,7 +329,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434603248
"logged": 1685048001252
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -369,7 +369,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434612647
"logged": 1685048012023
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -418,7 +418,7 @@
"metadata": {
"collapsed": true,
"gather": {
"logged": 1632434619467
"logged": 1685048016754
},
"jupyter": {
"outputs_hidden": false,
Expand Down Expand Up @@ -459,6 +459,9 @@
"AzureML": {
"notebookHasBeenCompleted": true
}
},
"ms_spell_check": {
"ms_spell_check_language": "en"
}
},
"nteract": {
Expand Down

0 comments on commit d893e62

Please sign in to comment.