Wazuh

Embed
Preview of the card
<a href="https://watchtowerops.net/docs/wazuh"><img src="https://watchtowerops.net/docs/_api/public/orgs/aa5959cb-1a0b-4a9a-bc9a-913e7ac31cd9/spaces/b7aac181-9916-4805-b253-becc5fd2ca62/pages/739c379d-eeb3-4d1c-ace2-33761b629d6a/social-card.svg?v=3e7ae33eec8b" alt="Wazuh" width="600" height="315"></a>

Create a wazuh security source. In ossec.conf on the manager, use the integrator with a custom integration that POSTs the alert JSON, or the stock webhook form:

<integration>
  <name>custom-watchtower</name>
  <hook_url>https://&lt;edge&gt;/v1/security/&lt;source_id&gt;</hook_url>
  <api_key>&lt;secret&gt;</api_key>
  <alert_format>json</alert_format>
</integration>

The integration script must send Authorization: Bearer <api_key>.

Mapping: rule.description is security.rule (the numeric rule.id is kept as security.rule_id), rule.groups are the tags, full_log is the log body, timestamp the record time, agent.name/id/ip are host.name/host.id/host.ip. rule.level maps to a priority: 13 and up critical, 10 to 12 error, 7 to 9 warning, 4 to 6 notice, below that info.

Updated