MicrosoftGraphActivityLogs App Enrichment ExternalData Based
App Enrichment External Data
Query
let ApplicationInformation = externaldata (ApplicationName: string, AppId: string, Reference: string ) [h"https://raw.githubusercontent.com/Beercow/Azure-App-IDs/master/Azure_Application_IDs.csv"] with (ignoreFirstRecord=true, format="csv");
MicrosoftGraphActivityLogs
// Your filter here
| take 1000
| lookup kind=leftouter ApplicationInformation on $left.AppId == $right.AppId
| project-reorder AppId, ApplicationNameAbout this query
MicrosoftGraphActivityLogs App Enrichment ExternalData Based
Query Information
Description
This query enriches the MicrosoftGraphActivityLogs with Application information Using the Azure_Application_ID list developed by @Beercow 1000+ AppIds can be enriched with the externaldata operator resulting in the query below.
References
- https://learn.microsoft.com/en-us/graph/microsoft-graph-activity-logs-overview#what-data-is-available-in-the-microsoft-graph-activity-logs
- https://learn.microsoft.com/en-us/azure/azure-monitor/reference/tables/aadnoninteractiveusersigninlogs
- https://kqlquery.com/posts/graphactivitylogs/
Sentinel
Explanation
This query is designed to enhance the data from Microsoft Graph Activity Logs by adding information about applications. It uses an external data source, a CSV file hosted on GitHub, which contains a list of application names and their corresponding IDs. The query performs the following steps:
-
Load External Data: It retrieves application information from a CSV file hosted on GitHub. This file contains columns for application names, IDs, and references.
-
Filter Activity Logs: It accesses the Microsoft Graph Activity Logs and applies a filter to limit the results to 1000 entries. (Note: The specific filter criteria are not provided in the query and should be added where indicated.)
-
Enrich Data: It uses a
lookupoperation to match and merge the application information from the external data with the activity logs based on the application ID. -
Reorder Columns: Finally, it rearranges the columns to display the application ID and name first.
In simple terms, this query takes activity logs, adds detailed application information from an external source, and organizes the data for easier analysis.
Details

Bert-Jan Pals
Released: October 20, 2024
Tables
Keywords
Operators