Slack Integration Wazuh Server : Alerts in Critical, High, and Medium Slack Channels
Slack Integration Wazuh Server : Alerts in Critical,
High, and Medium Slack Channels
1. Set Up a Slack App:
- Go
to the Slack API website and log in to your workspace.
- Navigate
to “Your Apps” and click on “Create New App.”
- Enter
a name for your app (e.g., “Wazuh Alerts”) and select the workspace where
you want to install the app.
- Create
three channels named “Critical”, “High” and “Medium”.
- In
the app settings, go to “Incoming Webhooks” and enable it.
- Click
on “Add New Webhook to Workspace” to generate a webhook URL. Note down
this URL for the three channels, as you’ll need it later.
Edit Wazuh Configuration File:
- Edit
/var/ossec/etc/ossec.conf in the Wazuh server and include a configuration
block such as the following.
<integration>
<name>slack</name>
<hook_url>https://hooks.slack.com/services/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</hook_url>
<alert_format>json</alert_format>
</integration>
Replace WEBHOOK_URL with your Incoming Webhook URL for
the three channels appropriately
Restart Wazuh Services:
sudo systemctl
restart wazuh-manager
Comments
Post a Comment