Hi team,
I would like some help with the opensearch notification plugin. I am currently looking for a way to send data to my Rocket.Chat webhook but nothing is working.
I've tried adding a custom webhook channel but every time an error occurs:
[status_exception] {"event_status_list":
[{"config_id":"qDnhyY8BldJqsO0F2Izp","config_type":"webhook","config_name":"Rocket.Chat","email_recipient_status":[],"delivery_status":{"status_code":"500","status_text":"Failed
to send webhook message Failed: <!DOCTYPE html>\n<html
lang=\"en\">\n<head>\n<meta
charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Bad
Request</pre>\n</body>\n</html>\n"}}]}
I've tried a curl and it works fine.
I've also tried selecting "Slack" instead and it works halfway (empty message).
Similarly, if I replace the content type 'application/json' with 'text/html' it works but the message is empty.
The 'application/json' MIME produces an error every time and I'm struggling with the webhook.
I am using wazuh 4.7.4.
Any help is appreciated