Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| qnd:azure:kusto_query_language_kql [2021/10/05 18:21] – mgupton | qnd:azure:kusto_query_language_kql [2022/08/25 15:46] (current) – [Kusto Query Language (KQL)] mgupton | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Kusto Query Language (KQL) ====== | ====== Kusto Query Language (KQL) ====== | ||
| * #azure #sentinel | * #azure #sentinel | ||
| + | * [[azure: | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| ====== Queries ====== | ====== Queries ====== | ||
| Line 20: | Line 22: | ||
| SecurityEvent | SecurityEvent | ||
| | where Computer !contains " | | where Computer !contains " | ||
| + | </ | ||
| + | |||
| + | ==== List All Tables ==== | ||
| + | |||
| + | < | ||
| + | union withsource = table * | ||
| + | | summarize count() by table | ||
| + | | sort by count_ desc | ||
| </ | </ | ||
| Line 32: | Line 42: | ||
| + | Get unique values from the specified column | ||
| < | < | ||
| SecurityEvent | SecurityEvent | ||
| | distinct Computer | | distinct Computer | ||
| </ | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ==== Windows Events Aggregated ==== | ||
| + | < | ||
| + | SecurityEvent | ||
| + | | summarize count() by tostring(EventID), | ||
| + | | order by count_ desc | ||
| + | </ | ||
| + | |||
| + | |||
| + | ==== Palo Alto firewall logs ==== | ||
| + | * Aggregating on ApplicationProtocol | ||
| + | * Example of aggregating and sorting | ||
| + | |||
| + | < | ||
| + | CommonSecurityLog | ||
| + | | summarize count() by ApplicationProtocol | ||
| + | | order by count_ desc | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | CommonSecurityLog | ||
| + | | summarize Count=count() by ApplicationProtocol | ||
| + | | order by Count desc | ||
| + | </ | ||
| + | |||
| + | ====== Related ====== | ||
| + | * [[: | ||
| + | |||
| + | |||