Forum Discussion

Saran_Sarah_Hansakul's avatar
May 13, 2025
Solved

Cannot use union * for Defender Hunting query to Create Detection Rule, so what other workarounds?

I tried to create custom detection rule from KQL query in Defender XDR: Advance Hunting by custom various variable to be able to submit, but for this query to be able to go through remediation settin...
  • Clive_Watson's avatar
    May 13, 2025

    I'm sure this is because Sentinel excludes union * in the Logs blade within Sentinel (it will work outside Sentinel in similar looking logs blades, like in Log Analytics).  It was excluded for performance reasons for Detections, as you could be looking through 10's, 100s or more tables and the results may not come back in enough time for the next alert trigger.  More relevant for NRT or rules that trigger every 5mins. 
    Can you union by named Table (e.g. union IdentityInfo) or Join or lookup? 
    The screen shot you provided doesn't show the union * just a join.

Resources