↳ GitHub sourceAnalytics ruleMedium
UniFi Site Manager: New WAN2 (secondary) issue recorded
Description
Identifies a new issue index on the secondary WAN failover link. Fires only on newly-recorded issue indexes, not while existing issues persist.
- Rule type
- Scheduled
- Version
- 1.0.1
- Declared status
- Available
- Query frequency
- 15m
- Query period
- 45m
- Trigger
- gt 0
Declared MITRE coverage
Declared sources
Metadata from the source file. No dependencies inferred from KQL.
Connectors
Data types
KQL query
Original query, unchanged.
// UniFi reports a monotonically-rising wanIssues.count rather than discrete events.
// Detect a NEW occurrence by checking whether the per-site max(count) has grown
// in the most recent 15-min window vs the prior 15-min window.
Unifi_SiteManager_Sites_CL
| where TimeGenerated > ago(45m)
| extend siteId_s = tostring(SiteId)
| where isnotempty(tostring(SiteStatistics.wans.WAN2))
| mv-expand issue = todynamic(tostring(SiteStatistics.wans.WAN2.wanIssues))
| extend issueCount = tolong(issue.count), idx = tolong(issue.index)
| summarize
PrevMaxCount = maxif(issueCount, TimeGenerated < ago(15m)),
CurrentMaxCount = maxif(issueCount, TimeGenerated >= ago(15m)),
LatestIndex = maxif(idx, TimeGenerated >= ago(15m))
by siteId_s, SiteName
| extend PrevMaxCount = coalesce(PrevMaxCount, tolong(0))
| where CurrentMaxCount > PrevMaxCount
| extend
TimeGenerated = now(),
Delta = CurrentMaxCount - PrevMaxCount,
Activity = strcat('New WAN2 issue: count rose from ', PrevMaxCount, ' to ', CurrentMaxCount)
| project TimeGenerated, SiteId = siteId_s, SiteName, Activity, IssueIndex = LatestIndex, PrevMaxCount, CurrentMaxCount, Delta
Declared entities
Related content
Links established from declared identifiers and solution manifests.
Source provenance
GitHubDisplayed values come from files in Azure/Azure-Sentinel. They describe the published template, not your workspace configuration.
- File
- Solutions/UniFi Site Manager (CCF)/Analytic Rules/UniFiCloudNewWAN2secondaryissuerecorded.yaml ↗
- Commit
9800e51↗- Source identifier
b16f13ae-343b-9513-e684-469cdf9471b2
GSTEP / CATALOG TRACKING
Added to catalog : 16 Sept 2026 · 05:49 UTC
Last change observed : 16 Sept 2026 · 05:49 UTC