I want the bag_unpack function into a single row instead of it turning each entity into a new row without explicitly making a summarize and make_set for every column. (This is because i will not know what the column names are)
SecurityAlert
| where TimeGenerated >ago(1d)
| mv-expand parse_json(Entities)
| evaluate bag_unpack(Entities, OutputColumnPrefix='Entities_')
I found this query within the SecurityAlerts workbook on content hub.
It almost achieves what i want, just need this per alert id with all the entities row wise per alert id.
It would be nice if there was a method to this without having so many iff operators. Because custom alerts may have custom entities which arent captured.