Skip to content

dhanyn10singapay/wazuh-telegram

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Send wazuh alert to telegram by telegram bot.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 54.7%
  • Shell 45.3%