Dear Wazuh Team,
I hope this message finds you well.
I’m reaching out regarding an issue I’ve encountered with the Telegram alert integration on my Wazuh setup. When I first configured it, alerts were sent frequently and consistently. However, recently I’ve noticed that Telegram only sends alerts occasionally mainly for CVEs or internal system events.
Critical alerts such as user activities being blocked by the firewall (e.g., potential DCSync attack attempts) no longer appear on Telegram, even though they are visible in the Wazuh dashboard.
Could you please help me understand why these alerts are no longer being sent to Telegram and how I can resolve this? I would like to ensure that all important security events are properly forwarded to Telegram in real time.
Thank you in advance for your support.
Best regards,
Hi,
I’ve tried to replicate this integration on my end by referring to some blogs (not official Wazuh documentation), and I encountered the same issue you mentioned—only specific alerts were being forwarded to the Telegram group.
- https://medium.com/@jesusjimsa_12801/integrating-telegram-with-wazuh-4d8db91025f
- https://medium.com/@hasithaupekshitha97/wazuh-alerts-to-telegram-fb9d15b2e544
The root cause in my case was related to the custom Telegram script. The problem was that it used parse_mode='Markdown' without properly escaping special Markdown characters, which caused Telegram to reject the message with an HTTP 400 Bad Request error.
You can check if you're facing the same issue by running the following command on your Wazuh manager and observing the output:
You can test the above updated script to see if it resolves the issue.
If it still doesn’t work, please share the following files on Wazuh manager to help us further troubleshoot:
/var/ossec/etc/ossec.conf
/var/ossec/logs/ossec.log
/var/ossec/logs/integrations.log
These logs and configuration will help us analyze the issue more effectively and assist you better.
Hi,
Apologies for the delayed response. Upon reviewing your Wazuh manager ossec.conf file, I noticed that your Telegram integration is configured with the <level>13</level> tag. This means that only alerts with a rule level of 13 or higher will be sent to your Telegram group.
In the integration logs, I can see that alerts with levels 13 and 15 were successfully forwarded to your Telegram group. If the integration had failed, it would return a different HTTP status code. However, all the responses in the logs show 200, which indicates a successful transmission.
Could you please confirm whether the rules you mentioned (that are not triggering Telegram messages) have a rule level of 13 or above?
If the rule level is below 13, the alerts will not be sent to Telegram due to the level filter in your integration configuration.
To send alerts with a lower level, you can either:
Decrease the <level> value in the integration block, or
Use the <rule_id> or <group> tags in the integration configuration to target specific rules.
You can refer to the Wazuh documentation for more details on configuring external integrations: https://documentation.wazuh.com/current/user-manual/manager/integration-with-external-apis.html
If the rule level is 13 or higher, and you’re still not receiving alerts on Telegram, please share the full log of the corresponding event from the archives.json file for further analysis.
For guidance on enabling and accessing the archives.json file, refer to the following documentation: https://documentation.wazuh.com/current/user-manual/manager/event-logging.html#enabling-archiving