Aug 05 2021 02:47 AM
Aug 05 2021 02:47 AM
We are trying to automate first level response for our Azure Sentinel Incidents, These Incidents have Custom Entities and we need to pass these Entities to Azure logic Apps so that this Entity details can be sent over an email to the End user using Logic App Connector "Send Approval Email".
This is how my Logic App looks in designer mode
Below is what we have configured in Send approval email step
None of these captures the Custom Entities that we have defined in our alert like EventID or TimeGenerated.
So 2 things that I can use some help with:
- How to capture Custom Entities ?
- how to parse Entities and Custom Entities for more readable format for end users who will receive this emails
Aug 05 2021 04:50 PM
@jainshamu The entities are stored as json so the easiest way is probably to use the parse json and create html table functions to make the data more readable. Your json schema is different to mine, so the first time just run a compose action to capture the output
Once its run once, grab the output from the compose action (we will use it to generate the schema for the parse json action), then update your logic app to the below. On the parse json action, click the 'use sample payload to generate schema' then paste in the output from your first run. Then build a HTML table (again your columns are going to be different to mine so build it with what makes sense for your entities). Then add the output of your create html table action to your email.
Then you should get an email with the table of entities. Just make sure your json schema is perfect, logic apps is really picky, if it expecting a string but gets a null for instance it will fail.
Aug 09 2021 08:16 AM
Sep 05 2022 03:42 AM
When I follow your instructions, I wont see my custom entities in the output from the compose. I just see the entities that are defined in the "Entity mapping". Everything under " Custom Details" won't show up under entities.
Oct 14 2022 12:00 PM
Where / How do you get the Sample Schema from for Entities?
Oct 18 2022 05:27 AM
@KentuckyMike2085 You would need to run the playbook once and then in the run history you can see the various steps that were run. You can then click on one to see the input and output variables. You would be able to get the data that way.
I would also say that the way the playbook was written should be modified to use the new incident trigger as it will provide you the means to easily get the entities needed.
Oct 18 2022 03:09 PM
I am using the Microsoft Sentinel Incident (Preview) trigger
Oct 23 2022 01:49 PM
@jainshamu Where you able to get the formatting to work correctly?
This is my output