Hi,
I have an alert action that triggers a python script;
In the intended workflow, this alert action can either
1. be manually executed by a user, or
2. be scheduled to execute as an alert action of several different alerts
How can I pass
1. the username that manually runs the search in case 1, and
2. the name of the alert that triggered this alert action
into the python script itself?
E.g. if user
[email protected] runs
search xxx | sendalert alert_action_1
I want to use the variable "
[email protected]" in the python script;
and if "Alert_ABC" triggers the action alert_action_1,
I want to use the variable "Alert_ABC" in the python script
I've got fields like "_raw" working, but couldn't find any parameters related to what/who triggered the alert action itself...
Any hints would be really appreciated!
... View more