I want to use a Webhook connector to send the alert data to an automation platform.
The issue is that in the Connector action, I can't find a way to send only the JSON alert information. As marked in the image.
It sends out tunes of info containing unuseful things. In this case, I can't know in advance what fields I will have in the alert, so I can't add to the connector variables like {{user.name}} because maybe in a different alert, the user name is in a different field.
I want everything related to the alert. The JSON tab in the alert contains just that, but I can't send it via the webhook connector.
But it seems that it's not working.
I'm searching for the fields in the raw log I received in the automation platform (highlieted in the image) from the Webhook action, and there isn't such field.
I think I understand @leandrojmp, so my only option here is to send everything using {{#context}}, and then I will get everything (also things that are no in the JSON tab), or specify the specific fields I want in the action.
and in a case, the rule triggered 2 alerts. Is there a way that I can send them one by one and not as a long JSON containing 2 different alerts?
and if not, is there a way to send only the first alert?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.