Wazuh alerting to Slack and PagerDuty

Route only the Wazuh alerts that need a human response to Slack and PagerDuty, with credentials, filters and tests planned before anyone is paged.

On this page

How to send high-severity Wazuh alerts to Slack and PagerDuty

Alerts that nobody is watching do not protect anything. A Wazuh deployment records and scores events in the Wazuh dashboard, but the engineers and on-call responders who must act are usually elsewhere. The Wazuh integrator is the component that forwards selected alerts to external services. This section covers two destinations in scope: a Slack channel for shared visibility and a PagerDuty service for on-call paging. Before you configure either, confirm the integration method, the required settings and the supported options against the Wazuh documentation for the exact version you run, because integration behavior and field names change between releases.

The page covers the technical path: the webhook and API key setup for each destination, how the integrator matches alerts by level, rule group and agent, and how to test the route end to end with controlled sample alerts. It does not decide your on-call policy. Who is paged at what hour, which severities warrant a page instead of a chat message, how escalation and acknowledgment work, and what a responder must do after receiving an alert are owned by your security operations and incident response processes. Settle those questions first, because they determine which filters you need. Review the Wazuh release notes for your version before you start, since the project ships patch releases roughly every one to two months.

Treat the external paths as production systems. The Slack webhook and PagerDuty integration key are credentials that can post into your channels or open incidents, so store them in a secrets mechanism with restricted access rather than in plain configuration. Confirm with your Slack and PagerDuty administrators who can rotate these credentials and how a rotation is performed without dropping alerts. Ask your implementation partner to document the chosen severity thresholds, the test results and the owner of each route, so the routing can be reviewed by your compliance and security teams.

What you need before routing alerts to Slack and PagerDuty

Routing Wazuh alerts to Slack and PagerDuty depends on five things lining up: a supported Wazuh version, a Slack owner, a PagerDuty schedule, network paths from the Wazuh server and a secret store for credentials. Confirm each one before the integration work starts, because gaps usually surface as failed deliveries or unowned alerts after go-live.

Wazuh version and release line

Confirm which Wazuh release line your deployment runs and check it against the Wazuh release notes before work starts. The current line is 4.14, and patch releases arrive every one to two months, so the version on your server may already be behind. Record the exact server version, because the integrator configuration and any custom scripts depend on it and must be retested after upgrades.

Wazuh release notes

Wazuh server and admin access

The integration is configured on the Wazuh server, so the implementing engineer needs shell access to the manager host and a way to edit the integrator configuration and restart services. Confirm who approves changes to production rules and filters. Check that the server is a single node or a cluster, because on a cluster the configuration must be applied consistently across nodes.

Slack workspace and channel owner

Name one owner for each Slack channel that receives alerts, and confirm that the owner's workspace allows creating an incoming webhook or app integration for that channel. Some workspaces restrict app installation to administrators, so ask your Slack admin early. Agree who can post, who can edit the integration and who answers when an alert is posted but not acted on.

PagerDuty account, schedule and service

Confirm you have a PagerDuty account with an on-call schedule and a service dedicated to Wazuh alerts. The service holds the integration key that Wazuh uses to open incidents, so it should map to one team that accepts the page. Ask who owns escalation policies and whether a test service exists for validation before production alerts are routed.

Outbound network paths

The Wazuh server must reach the Slack and PagerDuty endpoints over HTTPS through any proxy or egress firewall your organization uses. Air-gapped or restricted networks may block these calls entirely, which changes the design. Test egress from the exact server that will send alerts, and confirm that a proxy allows the request headers and TLS settings the integration uses.

Credentials and secret storage

Webhook URLs and PagerDuty integration keys act as credentials, so store them in your approved secret store rather than in plain configuration files or tickets. Decide who can read and rotate them, how rotation is recorded and how the team revokes a key if it leaks. Confirm that backups of the Wazuh configuration do not expose these values unprotected.

How an alert travels from agents to Slack and PagerDuty

The path starts on each endpoint, where the Wazuh agent sends events to the Wazuh server. The server decodes them and applies rules, and matching alerts are stored in the Wazuh indexer and shown in the Wazuh dashboard. The integrator then selects alerts by level and group and posts them out. Check two things at this step: which credential each hop uses, and where the outbound API call leaves your environment and crosses into Slack or PagerDuty.

Alert flow from endpoints to outbound Slack and PagerDuty calls, with the trust boundary marked.

Configuring the integration in the order that limits risk

This sequence sends only a small set of high-severity Wazuh alerts to a test channel first, so each destination, credential and filter is proven before alert volume reaches responders. It ends with PagerDuty wired to the real on-call schedule.

  1. Create the Slack and PagerDuty destinations

    The Slack owner creates a dedicated test channel and a Slack app or incoming webhook scoped to it. The PagerDuty administrator creates a service for Wazuh alerts, with an events integration that produces an integration key, and leaves it unattached to a live schedule for now. Record who owns each object. The step is done when a test message posted with the webhook or key appears in the Slack channel and the PagerDuty service shows the integration as active.

  2. Store credentials outside the Wazuh configuration

    Place the webhook URL and PagerDuty integration key in a secrets store or a root-owned file readable only by the Wazuh service account, not directly in the integration configuration that gets copied into change tickets and backups. Confirm the exact handling method against the Wazuh integrator documentation for your version before you rely on it. The step is done when a search of the configuration directory and recent backups finds no plaintext secret, and the integration still starts and sends the test message.

  3. Define a narrow first filter

    Write the first filter with a high minimum rule level and one rule group that matches the detections you most need to see, such as authentication failures on administrative accounts. Keep the alert count small enough that a reviewer can read every message on the day it arrives. Document the filter and the reason for each value. The step is done when the rule has been reviewed by the security owner and saved in version control, so changes later are visible.

  4. Enable the integration on the test channel only

    Point the integration at the test Slack channel and the PagerDuty service that is not yet attached to on-call, then restart or reload the Wazuh server component that runs the integration, following the documented procedure for your installation. Trigger a known test event, such as a deliberate failed login from a lab account in a non-production group. The step is done when the test event produces exactly one Slack message and one PagerDuty incident with the expected rule ID, level and agent name.

  5. Confirm delivery, formatting and failure behavior

    Check that message content contains the fields responders need, including agent, rule description, level and a link back to the dashboard event, and that resolution or acknowledgment does not get confused with new alerts. Stop the destination on purpose, or use an invalid test key in a staging copy, to see what happens on failure and whether the Wazuh logs record the error. The step is done when you have a written record of the delivery failure behavior and a named person who watches those logs.

  6. Widen scope in measured steps

    Add rule groups or lower the level threshold one change at a time, and run each change through the test channel for a set observation period agreed with the security owner. Count alerts per day and note which rules are noisy, then suppress or tune them before the next change. Keep a rule of thumb that no step adds an alert source that the team cannot triage on the same shift. The step is done when the alert volume for each change is recorded and the owner signs off on the next expansion.

  7. Point PagerDuty at the on-call schedule

    Attach the Wazuh PagerDuty service to the live escalation policy and on-call schedule only after the earlier steps pass, and confirm which schedule layer covers each time zone and holiday rota. Move the Slack target from the test channel to the operational channel and retire the test channel's connection. The step is done when a controlled test incident reaches the current on-call person, who acknowledges it, and the escalation path to the secondary responder has been tested.

Which alert fields map to Slack messages and PagerDuty events

This table maps the Wazuh alert fields the team relies on for triage to the parts of a Slack message and a PagerDuty event. Use it to decide which fields the integration must carry and which ones to confirm in the integrator documentation for your Wazuh version. The main takeaway is that rule level, rule ID, agent identity and a link back to the full alert are the minimum needed to triage an alert without opening the dashboard first.

Wazuh alert fieldSlack message contentPagerDuty eventNeeded for triage
Rule levelSeverity label or emoji in the message headerEvent severity (critical, error, warning or info, mapped by your rule)Yes, drives routing and urgency
Rule IDShort reference in the message titleCustom detail for lookup and deduplicationYes, identifies the detection
Rule descriptionMain headline text of the messageEvent summary, kept short enough to read on a phoneYes, tells the responder what happened
Rule groupsContext line or tag for the channel ownerCustom detail used to route or filter by categoryYes, identifies the affected area such as authentication or file integrity
Agent nameHost named in the message bodyEvent source or custom detailYes, identifies the affected host
Agent IDOptional reference for API lookupsCustom detail for correlationUseful for scripted follow-up
Full alert log referenceLink or pointer to the alert in the dashboardCustom detail or link to the investigation viewYes, the responder needs the full event to act
Event timestampTime shown with the messageEvent timestamp fieldYes, for ordering and on-call handoffs

Slack for awareness, PagerDuty for action

Slack suits shared situational awareness. A channel is read by the security analysts, platform engineers and application owners who may need to see a pattern, compare notes and decide together whether an alert matters. Nobody is individually responsible for each message, so the channel works best for medium and high-severity alerts that benefit from discussion, and for summaries of activity that do not need immediate action.

  • Audience: a defined group of people who triage, such as a security operations channel plus a platform channel for infrastructure alerts.
  • Alert levels: typically the levels that merit human review during working hours. Very noisy low-level rule matches usually belong in the dashboard, not in chat.
  • No acknowledgement: nothing escalates automatically. A message can sit unread, so the team needs a daily or shift review of the channel and a named owner for it.
  • Ownership: decide who maintains the webhook, who can change channel membership and who reviews the filters when the channel gets noisy.
  • Retention: confirm your workspace retention and export policies, since alert text may contain hostnames, usernames and file paths.

Before enabling, confirm with your Slack administrators how the integration is approved and how your workspace handles bot posting.

Setting level and group filters to avoid alert fatigue

Routing every alert above a low threshold to Slack or PagerDuty trains responders to ignore the pages, and the first weeks of a Wazuh integration are when that habit forms. Start narrow. Pick a level threshold for the integration that only high-consequence events reach, then widen it deliberately once the team can show that each page led to a useful action. The right starting point depends on your rule set and your agent population, so confirm how your own deployment assigns levels before you choose a number. Wazuh rule levels are set per rule, which means a threshold that looks sensible on paper can still page on a noisy source that someone enabled last month.

Rule groups are the second control. Wazuh tags rules with groups, so authentication failures, file integrity monitoring changes and vulnerability detection findings can each be routed by their group rather than mixed into one channel. Authentication and file integrity alerts usually need a fast human response, while vulnerability findings are better handled in a daily or weekly queue that a security engineer reviews. Send each group to a destination that matches the response it needs. Confirm the exact group names in your Wazuh version's rule documentation before you write any filter, because a misspelled group silently routes nothing.

For known-benign activity, tune the rule instead of silencing the integration. A scheduled backup job that repeatedly triggers an authentication rule should be handled with a documented exception in the rule or decoder layer, with a note explaining why it is safe and when it was reviewed. Removing the rule from the integration hides the same activity from the people who need to know when that pattern changes. After the first two weeks, review what reached each channel: which rules fired most, which pages were acknowledged without action, and which real incidents arrived through lower-level alerts. Adjust the threshold and groups from that evidence, and record each change so the next reviewer can see why the filter looks the way it does.

Protecting webhook keys, API tokens and the alert content

Slack webhooks and PagerDuty integration keys let anyone who holds them post into your channels or page your on-call engineers, and alert text can carry internal detail out of your environment. The cards below cover how to store and rotate those credentials, how to scope the Slack app, what to keep off the wire, and how to audit changes to routing.

Store and rotate the integration keys

The Slack webhook URL and the PagerDuty integration key are bearer credentials: whoever holds one can post alerts as your integration. Keep them out of plain-text entries in the Wazuh integration block where possible, load them from a secrets store or a root-owned file readable only by the Wazuh service account, and record where each key lives. Before go-live, agree a rotation procedure with the Slack and PagerDuty owners, and confirm how each vendor lets you issue a replacement key before revoking the old one. Expect to rotate after any staff change on the team that administers the integration.

Wazuh docs

Scope the Slack app narrowly

Use a dedicated Slack app for Wazuh rather than a personal or shared automation account. Grant only the posting scope the chosen method needs, and invite the app only to the alert channels it must post to. Private channels with incident responders should not be used as a general dump for every level, and the app should not be given permission to read channel history if posting is all it does. Ask the Slack workspace administrator to confirm the scopes the app holds and who can approve scope changes.

Limit what leaves the environment

Alert content is usually more sensitive than the alert title. Rule descriptions, decoded fields and full log lines can contain usernames, hostnames, internal IP addresses and file paths, and a Slack or PagerDuty message stores them in a third-party service. Send a short summary with the rule ID, agent name, severity and a link back to the Wazuh dashboard, and leave the full event in Wazuh. Review sample messages from each rule group before enabling it and confirm with your data protection and compliance owners which fields may leave your network.

Control access to the configuration files

The file that holds the integration block is the most likely place for a credential to leak, since it is readable by anyone who can administer the manager. Restrict read and write access to the root account and the service account that runs the manager, and keep the file out of shared configuration repositories or backups that have wider access. Check file permissions after every package upgrade, because an upgrade can rewrite ownership. Confirm who can log in to the manager host and who holds sudo, since that determines who can read the key.

Log every routing change

Changes to alert level thresholds, rule group filters and webhook targets alter who gets paged and what reaches the channel, so they need an audit trail. Keep Wazuh configuration in version control with reviewed commits, and require a second person to approve any change that adds a PagerDuty service or a new Slack channel. Compare the configuration with the audit history on the manager host and the change records in your ticketing system. Ask the PagerDuty and Slack administrators to confirm which audit logs they retain and for how long, since those logs cover the vendor side of the same change.

Why alerts do not reach Slack or PagerDuty

This table lists the failures that most often stop Wazuh alerts from reaching Slack or PagerDuty, with the likely cause, the check to run and the fix for each. Work down the rows in order, because the first check that fails usually points to the rest. Confirm exact integration settings, keys and filter fields against the Wazuh documentation for your installed version.

FailureLikely causeCheck to runFix
Webhook or API key rejectedThe Slack webhook was rotated or revoked, or the PagerDuty integration key was copied from a different service.Send a test message with curl from the Wazuh server and read the HTTP response code and body.Generate a new webhook or integration key, update the integration block, restart the Wazuh manager and retest.
Outbound request blockedAn outbound proxy, firewall or DNS policy blocks the Slack or PagerDuty API endpoint from the Wazuh server.Test HTTPS connectivity to each endpoint from the server, including proxy settings the service inherits.Allow the specific endpoints through the proxy or firewall, or set proxy variables for the Wazuh service, then confirm with a test.
Level or group filter too highThe integration's level threshold or rule group filter excludes every alert the test rule produces.Compare the integration filter with the alert level and groups in alerts.json for a known test event.Lower the threshold or adjust the group filter to match real alert fields, and document the change.
Rule groups renamed after upgradeA rule group or rule ID used in the filter was renamed or moved in a newer ruleset after a Wazuh upgrade.Search the current ruleset and release notes for the group names your filter uses and check for no matches.Update the filter to current group names, test with a sample event and add a check to the upgrade runbook.
Duplicate notificationsTwo integrations, or a Slack message and a PagerDuty incident, both match the same alerts, or a rule is repeated in two groups.List every active integration and its filter and compare the alerts they match over a sample window.Keep one integration per severity path, separate chat and paging filters, and add deduplication keys where the platform supports them.
PagerDuty service in wrong escalation policyThe integration key points to a service whose escalation policy has no active on-call user or routes to the wrong team.Open the PagerDuty service, confirm its escalation policy and check the current on-call schedule for the test window.Point the integration at the correct service, fix the escalation policy and run a test incident through the on-call path.
Slack channel archived or app not invitedThe target channel was archived, renamed or the Slack app was never added, so posts fail or are silently dropped.Confirm the channel is active and that the app or webhook is a member, and check the response for channel errors.Unarchive or replace the channel, invite the app, and record the channel owner so changes are reviewed.

Questions teams ask before routing Wazuh alerts to Slack and PagerDuty

What drives the effort of routing Wazuh alerts to Slack and PagerDuty?

The effort is driven by four things: how many rules and alert levels you want to route, what on-call tooling already exists, how well your Wazuh detection content is tuned today, and how many teams need their own channels or schedules. Each additional team adds routing rules, channel decisions and escalation paths to agree and test. A noisy ruleset takes longer than a tuned one, because filters must be designed before any high-severity alert reaches a person at night. Ask any partner to break its quote down by these four drivers so you can see which ones you can reduce internally.

Can our internal team set up Wazuh alerting to Slack and PagerDuty alone?

Often yes, if you have someone who administers Wazuh, someone who administers Slack and PagerDuty, and time to test the path end to end. The technical setup is an integration with a webhook or API key, a level and group filter, and a tested escalation. The harder part is deciding which alerts deserve a page, which belong in a channel and which should only be logged, and that decision needs the security team and the people who will be woken up. A partner can run that design workshop, build the configuration and hand over a runbook, which is useful if your internal team is already stretched.

What do we need to provide before the work starts?

You need four things in place before work starts:

  • Slack admin rights, or an admin who can create the channels and approve the app or webhook.
  • PagerDuty admin rights, or an admin who can create services, escalation policies and API keys.
  • A named on-call owner who makes decisions about severity thresholds and who receives the pages.
  • A Wazuh administrator who can change the manager configuration and restart services in your environment.

Without a named owner, alert routing tends to stall at the design stage because no one can approve which events are paged.

Does the Wazuh open-source software have a license fee for this integration?

No. The self-hosted Wazuh software is open source and carries no license fee. It is distributed under the GNU General Public License version 2, with an exception for linking with the OpenSSL library. The cost of routing alerts is the cost of the work and the operations around it: design, configuration, testing, on-call process changes and maintenance. Slack and PagerDuty are separate commercial products with their own pricing, so confirm plan requirements for webhooks, API keys and on-call features with each vendor. Wazuh Cloud is a different offering with paid tiers, and it is not required for this integration.

What recurring work follows after alerts start reaching Slack and PagerDuty?

Routing is not a one-time task. Recurring work includes reviewing which rules page people and retiring those that fire without action, updating filters when new agents, groups or detection rules are added, rotating webhook and API keys on a schedule your security policy sets, and checking that on-call schedules and escalation policies match the current roster. You should also test the path after every Wazuh upgrade, since configuration and integration behavior can change between releases. Plan a regular review of alert volume with the on-call owner so that paging stays meaningful.

How do we avoid alert fatigue when paging on Wazuh alerts?

Start with a narrow set of high-severity alerts that always require a human response, and send everything else to a channel or to storage for review. Use level thresholds and group filters so that only specific rule groups, such as authentication failures on privileged accounts, reach PagerDuty. Test each filter against recent alert history before enabling it, and track how many pages lead to action. Add rules gradually, because a long initial list is the most common cause of ignored pages. The rules and tuning approach in Wazuh's documentation is the natural next read for the detection side.

Should we test the Slack and PagerDuty routing before relying on it?

Yes. Test the full path with known, harmless test events before any production paging. Confirm that the right alert reaches the right Slack channel, that PagerDuty creates an incident on the correct service, that the escalation policy reaches the intended on-call person, and that acknowledgment and resolution behave as expected. Also test the failure case, such as a revoked API key or a disabled webhook, so you know how you will be notified when the integration itself breaks. Record the test results so auditors and your incident response team can see how alerting was validated.

How DeployOpen scopes and delivers Wazuh alert routing

DeployOpen treats Slack and PagerDuty routing as a design problem before it is a configuration task. We agree which alerts justify a page, which belong in a channel, and which should stay in the dashboard, then build and test the integration inside your own Wazuh environment. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • Inventory the Wazuh alert levels, rule groups and agent groups that should reach Slack or PagerDuty.
  • Confirm which Slack workspace, channels and PagerDuty services and escalation policies will receive alerts.
  • Agree who owns webhook URLs and API keys, and where those credentials will be stored.

How we build

  • Configure the integration with level and group filters so only agreed alert classes are forwarded.
  • Set up Slack webhook delivery and PagerDuty Events integration with test alerts for each route.
  • Tune thresholds and deduplication with you to reduce repeated notifications and avoid alert fatigue.

How we hand over

  • Document each route, its filter logic, its owner and the on-call schedule it feeds.
  • Provide a test procedure that fires sample alerts so your team can verify routing after changes.
  • Walk through rotating API keys and webhook secrets and where those secrets are kept.

How we support

  • Review alert volume with your on-call team after go-live and adjust filters where noise appears.
  • Update routes when Wazuh is upgraded or when Slack or PagerDuty configuration changes.
  • Ongoing support and continuous testing are available as a retainer after the fixed-scope work ends.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.