Query Details

Visualisation of operations that have been seen in the Cloud App logs in the last 30 days

Visualization Operations Performed

Query

CloudAppEvents
| where TimeGenerated > ago(30d)
| extend Operation = tostring(parse_json(RawEventData).Operation)
| where Operation != "CrmDefaultActivity" //Filter Dynamics 365 activities.
| summarize count() by Operation
| render piechart with(title="Operations last 30 days")

About this query

Visualisation of operations that have been seen in the Cloud App logs in the last 30 days

Defender XDR

CloudAppEvents
| where Timestamp > ago(30d)
| extend Operation = tostring(parse_json(RawEventData).Operation)
| where Operation != "CrmDefaultActivity" //Filter Dynamics 365 activities.
| summarize count() by Operation
| render piechart with(title="Operations last 30 days")

Sentinel

Explanation

This query is designed to create a pie chart visualization of different operations recorded in Cloud App logs over the past 30 days. Here's a simplified breakdown:

  1. Data Source: The query pulls data from CloudAppEvents, which contains logs of operations performed in cloud applications.

  2. Time Frame: It filters the logs to include only those from the last 30 days.

  3. Extract Operation: It extracts the specific operation performed from the RawEventData field and converts it to a string for easier handling.

  4. Exclude Specific Activity: It excludes operations labeled as "CrmDefaultActivity" to filter out certain Dynamics 365 activities that are not of interest.

  5. Count Operations: It counts the number of occurrences of each operation type.

  6. Visualization: The results are displayed as a pie chart titled "Operations last 30 days," showing the distribution of different operations over the specified period.

The query is essentially the same for both Defender XDR and Sentinel, focusing on visualizing cloud app operations while excluding certain Dynamics 365 activities.

Details

Bert-Jan Pals profile picture

Bert-Jan Pals

Released: December 1, 2024

Tables

CloudAppEvents

Keywords

CloudAppEvents

Operators

whereagoextendtostringparse_jsonsummarizebyrenderwith

Actions

GitHub