Microsoft Entra Suite Tech Accelerator
Aug 14 2024, 07:00 AM - 09:30 AM (PDT)
Microsoft Tech Community

Separation of Security incident

Copper Contributor

I am using this query for security incident but getting all incident that having in Sentinel in that query. How to separate and not having duplication on the incident while generate pie charts.  





summarize count() by Status,bin(TimeGenerated,1d)  
This both query showing all security incidents Assigened, new, closed on pie chart and count  
same incident twice. 
thanks in advance. 
3 Replies

@Vshah335 Try something like:


summarize arg_max(TimeGeneratedby IncidentNumber
you can add Status inside the arg_max as well.   
If you look at the Security Operations Efficiency workbook there are lots of examples of how to get the Incidents by different fields.

Thanks @Gary Bushey  for quick reply. 

My question is : Ex- we have two X and Y different tenants in same workspace.  

ex - if i assigned to my self - New  - viral 

                                             - Assigned to- viral 

                                               - close - viral 

So i just want to monitored Y tenant security incident only on top of that when i try run query against it shows results same incident again and again. It's counts 3 incident on results instead of one incident. (Number went high while i generate pie chart ) 

Is there any why to count main incident which genreated first shows in results ? 



Thanks for your response. 






@Vshah335 This should do it


| where TenantID == X
| summarize dcount(IncidentNumber) by bin(TimeGenerated, 1d)
Where X is the TenantID you care about.   Add other fields as needed for charting.