Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 953 Bytes

README.md

File metadata and controls

31 lines (26 loc) · 953 Bytes

wazuh-telegram

Send wazuh alert to telegram by telegram bot.

  1. First requirement is you should have working Telegram bot with API KEY and CHAT ID and also fully working Wazuh server.

  2. Check reqirements with this command :

#pip install requests
  1. Insert your CHAT ID to custom-telegram.py. Copy custom-telegram and custom-telegram.py to /var/ossec/integrations/

  2. Set correct permission to those files:

#chown root:wazuh /var/ossec/integrations/custom-telegram*
#chmod 750 /var/ossec/integrations/custom-telegram*
  1. Insert your API KEY to these line and copy those lines to /var/ossec/etc/ossec.conf
    <integration>
        <name>custom-telegram</name>
        <level>3</level>
        <hook_url>https://api.telegram.org/bot<API_KEY>/sendMessage</hook_url>
        <alert_format>json</alert_format>
    </integration>
  1. Restart wazuh server
#systemctl restart wazuh-manager