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/04 14:25] – 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: | ||
| * [[https:// | * [[https:// | ||
| + | * [[https:// | ||
| ====== Queries ====== | ====== Queries ====== | ||
| Line 15: | Line 18: | ||
| | where not(Computer contains " | | where not(Computer contains " | ||
| </ | </ | ||
| + | |||
| + | < | ||
| + | SecurityEvent | ||
| + | | where Computer !contains " | ||
| + | </ | ||
| + | |||
| + | ==== List All Tables ==== | ||
| + | |||
| + | < | ||
| + | union withsource = table * | ||
| + | | summarize count() by table | ||
| + | | sort by count_ desc | ||
| + | </ | ||
| + | |||
| + | ==== summarize ==== | ||
| + | |||
| + | Get a count of records based on summarizing a specified column | ||
| + | < | ||
| + | Event | ||
| + | | where not(Computer has_any (" | ||
| + | | summarize count() by Computer | ||
| + | </ | ||
| + | |||
| + | |||
| + | Get unique values from the specified column | ||
| + | < | ||
| + | SecurityEvent | ||
| + | | 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 ====== | ||
| + | * [[: | ||
| + | |||
| + | |||