Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch 3.0
Describe the issue:
I’m trying to set up OpenSearch Alerting to send notifications directly to a Telegram chat using a custom webhook channel. The goal is to create a Monitor that triggers on specific log events (e.g., logs with error
level) and sends formatted alerts to Telegram via HTTPS POST.
The notification channel is already set up and test messages to Telegram are working manually. The challenge is configuring the monitor, especially the query condition and the message template payload compatible with the Telegram API.
I need guidance or examples on how to properly build the trigger query and construct the JSON payload for the message.
Configuration:
- Alerting plugin: Using OpenSearch built-in Alerting / Notifications (not ElastAlert)
- Channel type: Custom webhook
- Method: POST
- Protocol: HTTPS
- Telegram bot: Configured and connected to a group/channel
- Webhook URL: Working and reachable from the server
Relevant Logs or Screenshots: