Query Details

GWS Alerts - Inventory Overview by Source / Type / Severity

GWS Alerts Overview

Query

GWSAlerts_CL
| where TimeGenerated > ago(30d)
| summarize Alerts = count(),
            FirstSeen = min(TimeGenerated),
            LastSeen = max(TimeGenerated),
            UniqueAlertIds = dcount(AlertId)
            by Source, AlertType, AlertDataType, MetadataSeverity
| order by Alerts desc

Explanation

This query is designed to provide a high-level overview of Google Workspace alerts over the past 30 days. It helps in identifying any unusual patterns or new types of alerts that have appeared for the first time. Here's a simplified breakdown of what the query does:

  1. Data Source: It uses data from Google Workspace alerts (GWSAlerts_CL).

  2. Time Frame: The query focuses on alerts generated in the last 30 days.

  3. Summarization: It counts the total number of alerts, identifies the first and last time each alert type was seen, and counts the number of unique alert IDs.

  4. Grouping: The results are grouped by the alert's source, type, data type, and severity level.

  5. Ordering: The summary is ordered by the number of alerts, from most to least.

This query is useful for discovering trends and anomalies in alert data, which can be crucial for security monitoring and threat hunting within Google Workspace environments.

Details

David Alonso profile picture

David Alonso

Released: May 7, 2026

Tables

GWSAlerts_CL

Keywords

GoogleWorkspaceAlertCenterHuntingAlertsSourceAlertTypeAlertDataTypeMetadataSeverity

Operators

whereagosummarizecountminmaxdcountbyorder bydesc

Tactics

Discovery

Actions

GitHub