I have been trying to find any documentation or guideline regarding the customization of alerts generated by the security analytics plugin.
The alerting plugin/monitor, I can customize the message in the trigger action, however, I have not found a similar option with the security analytics. Primarily to query the date for which it trigger the alert.
That one is suggesting to use the standard monitors. Since I am trying to leverage the security analytics, I haven’t found a way to use the triggers from the monitors for that.
Now, instead of modifying this message every time a new detector or new trigger is created, I need to generate the template itself. For one, I need JSON format for my webhook. And next, I want to include message details via Mustache scripts. None of that seems possible at the moment. I cannot even find the source of the template within the source code.
To bring more clarity to this, let me divide that into three issues:
No access to the template
Currently you can only modify the message AFTER creating the detector. If you have 100 detectors, you must apply your customization a 100 times.
No choice of format
We are sending the information to our ticketing system via webhook. This should be a quite common scenario. Webhooks are processed by software, which usually benefits from formats like JSON.