Wazuh and Amazon Security Lake integration

Wazuh can feed Amazon Security Lake as an OCSF source or read Security Lake data as a subscriber. This page explains which path fits your team, what to confirm in the Wazuh documentation, and how the work is sequenced.

On this page

Wazuh and Amazon Security Lake integration: which direction you need

Start by deciding which way the data has to flow, because the two directions are different projects. In the first, Wazuh is a source: its alerts are converted to the Open Cybersecurity Schema Framework (OCSF) and written into Amazon Security Lake through a pipeline built from Logstash and AWS Lambda. In the second, Wazuh is a subscriber: it reads data that other sources have already placed in Security Lake and analyzes it. A team that wants Security Lake to hold its endpoint and alert history needs the first direction. A team that wants its existing Security Lake data examined alongside Wazuh's own detections needs the second. Some organizations need both, and they should plan each direction as its own work package with its own tests.

Before any design starts, confirm the supported integration method, the exact components it names and the steps for your Wazuh version in the current Wazuh documentation. Integration guidance changes between releases, and the Wazuh line in use today is 4.14, with patch releases issued every one to two months. Check the Wazuh release notes for changes to the OCSF mapping, the Logstash plugin and the Lambda code that the pipeline depends on. This page does not supply the Logstash or Lambda configuration, the OCSF field mappings, the IAM policies, the Security Lake region and subscriber settings, the data volumes, or the cost of storage and queries in your AWS account. Ask for each of these in writing from whoever designs the build, and verify them against your own environment before you commit to a direction.

What you need in place before the Amazon Security Lake integration starts

Most delays in a Wazuh and Amazon Security Lake integration come from decisions made before any pipeline is built. The cards below cover the Wazuh release, the AWS account and Region, the IAM and Logstash host layout, network paths, and certificate and log-volume choices. Confirm each item with the current Wazuh documentation and AWS before you commit to a design.

Wazuh release line and version

Confirm which Wazuh release line your deployment runs before you choose an integration method. The current line is 4.14, and patch releases arrive roughly every one to two months, so pin the exact patch level you test against. Check the release notes for changes to the Logstash output and the indexer data you plan to forward, and record the version in your design document so later upgrades do not silently break the pipeline.

Wazuh release notes

AWS account, Region and Security Lake enablement

Decide which AWS account owns the Security Lake and which Region holds the data. Security Lake must be enabled in that account and Region before the source can be registered, and log sources are configured per Region. Ask your AWS team whether an organization-level delegated administrator already manages Security Lake, because that changes where the custom source and subscribers are created.

IAM roles for the source and subscribers

Plan separate IAM roles for the custom source, the ingestion path and each subscriber rather than sharing one administrative role. The ingestion role needs permission to write OCSF-formatted records to the Security Lake location, and subscribers need only read access to the data they analyze. Write down the trust relationships and the external ID values before deployment, and review them with your security team.

Logstash host and its placement

Decide where Logstash runs, which account and subnet it sits in, and who operates it. This host converts Wazuh alert output into the OCSF structure Security Lake expects, so its size, patch cadence and access to the Wazuh server should be set before the build. Confirm the Logstash version and output plugins your Wazuh release documents, and plan monitoring for the host itself.

Network paths to AWS endpoints

List every network path from the Wazuh server or Logstash host to the AWS endpoints the integration calls, and confirm whether traffic goes over the public internet, a NAT gateway, or a VPC endpoint. Check firewall egress rules, proxy settings and DNS resolution in the subnet that hosts the forwarder. Ask your network team to confirm these paths in writing so a blocked endpoint does not appear first in production.

Certificates and log volume decisions

Decide which certificates the forwarder presents and trusts, who issues them, and how renewal is handled before the pipeline depends on them. Estimate the alert and archive volume per day from a sample of your current Wazuh alerts, because volume drives Security Lake storage, transfer and subscriber query costs. Ask AWS to confirm the current pricing dimensions for Security Lake, since charges depend on Region and usage.

How alerts move from Wazuh into Amazon Security Lake

The diagram starts at the Wazuh server and indexer, where alerts are produced inside your network. Logstash converts those records toward OCSF and invokes a Lambda function using an IAM role that permits only that call. The function writes the converted events into a custom source bucket in the AWS account using a source role, and Security Lake ingests them from there. Subscribers then read the data through their own subscriber role. The separate branch shows Wazuh acting as a subscriber, querying Security Lake with its own role. Check that each role carries the narrowest permissions and that the source and subscriber paths do not share credentials.

Alerts flow through Logstash and Lambda into Security Lake, plus a subscriber branch.

Choosing between the source path and the subscriber path

Choose the source path when Wazuh already produces the security findings your organization wants in Amazon Security Lake, and other AWS analytics tools, such as Amazon Athena or a data lake consumer, need to query them alongside logs from other sources. In this path, Wazuh is the producer. Its alerts are converted into the Open Cybersecurity Schema Framework (OCSF) format and written into a Security Lake custom source. The conversion and delivery run in infrastructure you control, with Logstash and an AWS Lambda function handling the transformation and the write.

  • Data ownership: Your organization owns the alert data from the moment Wazuh generates it. Security Lake holds a copy that your AWS account controls, so retention and access policy for the lake become your responsibility.
  • Component placement: Logstash runs next to the Wazuh server or indexer in your environment. The Lambda function sits on the AWS side and handles the custom source ingestion step.
  • Mapping maintenance: Your team or your implementation partner maintains the field mapping from Wazuh alert fields to OCSF classes. Changes to Wazuh rules or decoders can change which fields are populated, so the mapping needs regression checks after upgrades.
  • Cost components: You pay for the Wazuh infrastructure, the Logstash host, the Lambda invocations and the Security Lake storage and query costs in your AWS account. Confirm each billing line with AWS before you size the design.
  • Confirm in the documentation: Check the Wazuh integration guide for the exact Logstash plugin, the supported OCSF version and the custom source registration steps.

Before committing, confirm the current versions of the Wazuh, Logstash and OCSF schema that the documented method supports.

How to configure the Wazuh to Security Lake pipeline in sequence

This sequence takes a team from an empty AWS account to a verified flow of Wazuh alerts into Amazon Security Lake as OCSF data, with a test subscriber confirming the data can be read. Each step ends with a check so problems surface before the next layer is built.

  1. Prepare the AWS account and custom source

    Confirm that Amazon Security Lake is enabled in the target account and Region, then register a custom source for Wazuh alerts. Security Lake creates the source's S3 location and Glue resources, and the custom source definition fixes the OCSF event class your data must match. Record the source name, the Region, the bucket location and the AWS account ID, because every later step refers to them. Done means the custom source appears as active in the Security Lake console with no pending configuration errors. Ask your AWS partner or account team to confirm current Security Lake regional availability and quota limits before you start, since these vary by account.

  2. Create IAM roles with least permissions

    Create one role for the Logstash process on the Wazuh side and one execution role for the Lambda function that writes to Security Lake. Grant each role only the S3 write actions, Glue and Lake Formation permissions and AWS Key Management Service permissions needed for the source you registered, and scope resource ARNs to that source's bucket and prefix. Do not reuse administrator credentials. Done means you can assume each role from its intended host and a test write to the source location succeeds while a write to an unrelated bucket is denied. Confirm the exact action list with the current Security Lake documentation, because permission requirements change between releases.

  3. Install and configure Logstash on the Wazuh side

    On the Wazuh server or a dedicated host, install Logstash and add a pipeline that reads the Wazuh alert output, typically the alerts file or indexer data your architecture exposes, and forwards events to the Lambda entry point or the S3 path through the AWS output plugin. Store the role credentials through the host's instance profile or a secrets store, not in plain pipeline files. Keep the Wazuh and Logstash versions compatible with each other according to the Wazuh documentation. Done means Logstash starts without configuration errors and its pipeline log shows events read and sent with no persistent retry loop. Confirm the input and output plugin versions with the Wazuh and Logstash release notes before you deploy.

  4. Deploy and test the Lambda function

    Deploy the transformation Lambda function in the same Region as the source, attach the execution role from the previous step and set the environment variables for the source name and destination location. The function converts incoming Wazuh alert records into the OCSF structure your custom source expects and writes them to the Security Lake location. Invoke it with a known sample alert and inspect the CloudWatch logs for the invocation. Done means the invocation completes without errors and the log shows the converted record written. Test with one sample before connecting live traffic, so that a mapping fault does not fill the bucket with malformed objects.

  5. Map and validate OCSF fields

    Compare the fields your converter writes with the OCSF event class and the required attributes for that class. Map the Wazuh rule ID, level, description, agent name, timestamps and source and destination fields to their OCSF counterparts, and record any Wazuh values that have no clean equivalent so you can decide whether they belong in unmapped or extension fields. Validate a batch of records against the schema with a repeatable check script. Done means every sample record passes validation and the mapping document lists each field with its source and target. Treat field gaps as a design decision for the security team, not something to hide in the converter.

  6. Confirm events in the Security Lake bucket

    Trigger a controlled test alert on a monitored agent or replay a saved alert through Logstash, then find the resulting object in the Security Lake source location in S3. Check that the object is written under the expected Region, account and source prefix, that it is partitioned as Security Lake expects, and that the Glue table reflects the new partition or data. Done means the test event is visible in the bucket with the correct OCSF content and the query tool can return it. If the object is missing, check the Logstash output log, the Lambda logs and the role's permissions in that order.

  7. Enable and test a subscriber

    Create a Security Lake subscriber for the test consumer, such as an analytics account or a query service in the same account, and grant it access to the Wazuh custom source. Subscribers receive access through Lake Formation permissions, so confirm the grant and resource link exist before querying. Run a simple query for the test alert and confirm the expected row is returned with the mapped OCSF fields. Done means the subscriber reads the data without relying on the producer's credentials. Keep the subscriber list documented, since each added subscriber is another reader of your alert data and another place to review access.

How Wazuh alert fields map to OCSF attributes

This table compares the Wazuh alert fields that matter for Security Lake against the OCSF attributes or event classes they should populate, with a column for what to confirm in the integration documentation. Read each row as a design decision to validate in a test pipeline before production. The main takeaway is that the mapping is yours to define and document, so every field needs an explicit keep or drop decision.

Wazuh alert fieldTarget OCSF attribute or classWhat to confirm in the integration documentation
Rule ID, description and groupsFinding or security finding metadata, rule name and type attributesWhich rule attributes the transformation carries, and whether group names survive as labels or are dropped
Agent ID, name and IP addressDevice or endpoint attributes describing the reporting hostHow agent identity maps when agents are renamed, re-enrolled or grouped, and which identifier Security Lake should treat as stable
TimestampEvent time and observed time attributesWhich Wazuh timestamp is used, how time zones are normalized, and whether event time differs from ingestion time in the pipeline
Source and destination details (for example, srcip, dstip, ports)Source and destination endpoint attributes on network activity classesWhich decoders populate these fields for your log sources, and what happens when a rule alert has no network context
Rule level (severity)Severity and severity identifier attributesThe conversion table from Wazuh levels to OCSF severity values is a design choice, so confirm it with your SOC and test it against sample alerts
MITRE ATT&CK mappingAttack or threat technique attributes within the findingHow technique and tactic identifiers are carried, and whether the Wazuh MITRE tags map to the correct OCSF structure
Fields with no OCSF target (custom data, full log text)Unmapped or extension fields, or no output at allWhether unmapped fields are kept in an extension, dropped, or retained only in the source Wazuh archive, decided and recorded per field

Security controls for the Amazon Security Lake integration

The Security Lake integration moves alert data out of your environment and into AWS storage that other tools can read. These cards cover the identity, encryption, secret, network and content controls that keep that path scoped and reviewable. Verify key policy details against current AWS guidance before you apply them.

Least-privilege roles for Logstash and Lambda

Give the Logstash host and the Lambda function separate IAM roles, each limited to the actions its stage needs. Logstash should only write to the Security Lake source location, and the Lambda role should only read the staging objects and write the converted output. Review each policy for wildcard resources and actions, because a broad role on the Wazuh host becomes a path into the data lake. Confirm the exact action names with current AWS documentation.

Scoped S3 write permissions

Restrict write access to the specific bucket prefixes used for Wazuh events, and deny deletes unless a lifecycle process requires them. Keep read access for Security Lake subscribers separate from the source role that writes events. Check that bucket policies do not grant access to principals outside the accounts you intend to use. Ask your AWS administrator to confirm how Security Lake organizes source locations before you finalize prefixes.

Encryption with AWS KMS

Decide whether the S3 buckets and staging storage use customer-managed AWS KMS keys or AWS-managed keys. Customer-managed keys let you control key policies, rotation and who can decrypt events, and they add key-usage activity to your logs. Grant the Logstash and Lambda roles only the key permissions they need, such as encrypt and decrypt for their own objects. Confirm with AWS documentation which Security Lake and S3 settings require a specific key type.

Secret handling on the Wazuh host

Prefer an instance profile or IAM role attached to the host over long-lived access keys stored in configuration files. If static credentials are unavoidable, keep them in a root-owned file with restricted permissions, and do not place them in Logstash pipeline files that other administrators can read. Rotate any keys on a schedule and remove them from shell history and backups. Confirm the credential lookup order your Logstash plugin uses before you choose a method.

Network restrictions and pipeline logging

Limit outbound traffic from the Logstash host and the Lambda configuration to the AWS endpoints the pipeline uses, and keep the Wazuh server and indexer off public networks. Enable CloudTrail for the roles, buckets and keys involved so writes and policy changes leave an audit trail. Keep Logstash and Lambda logs for a period your incident response process can use, and alert on repeated authentication or access-denied events. Verify endpoint and logging options against current AWS guidance.

Review of alert content leaving your environment

Before enabling the pipeline, list which Wazuh alert fields will be converted and stored in Security Lake, including usernames, hostnames, IP addresses, file paths and command lines. Remove or mask fields that carry personal data or secrets, and confirm the retention and access rules that apply to the destination. Agree with your data protection and legal teams which subscribers may read the data. Check the field mapping after each Wazuh upgrade, since new alert fields can appear.

What drives Amazon Security Lake ingestion volume and cost

The main lever on ingestion volume is what Wazuh sends, not how much Amazon charges per gigabyte. Volume grows with the number of enrolled agents, the alert levels you forward, and the number of Wazuh rules that fire often. A broad forwarding filter on a large fleet can produce far more OCSF events than the team expects, so the first decision is a written forwarding policy: which agent groups, which minimum alert level, and which rule groups are in scope. Check the alert volume in your Wazuh indexer over a representative period before you configure the Logstash output, and treat that measured baseline as the input to any sizing exercise.

The OCSF transformation adds its own overhead. Each Wazuh alert is reshaped into an OCSF event by the Logstash pipeline and the Lambda or custom mapping you deploy, so the size of each record, the number of fields you keep, and any enrichment you add all change the bytes stored in Security Lake. Storage retention in Security Lake is a separate decision: it sets how long data stays in the S3 buckets and in which Region. Subscriber queries add a third cost stream, because each analytics service or scheduled query that scans the data is billed on what it reads, so partitioning and narrow queries matter as much as stored volume. Ask your team to confirm the query patterns subscribers will run before approving retention.

Amazon charges for these services under its own terms, and the rates, free tiers and Region differences change over time. Take current figures from the AWS pricing pages for Security Lake, S3, Lambda, and any query or analytics service you use, and build a sizing model from your measured alert volume, retention period and expected query frequency. DeployOpen does not estimate Amazon charges, and any figure you see in a planning document should be traced back to those pages and your own measurements. Ask your AWS account team and your finance owner to review the model before the forwarding filters are finalized, because tightening filters later is cheaper than paying to store and query data nobody uses.

Common failures when Wazuh and Security Lake do not connect

This table lists the failures teams most often hit when sending Wazuh data to Amazon Security Lake or reading it from Security Lake, with the cause and a check you can run for each. Work through the rows in the order the data flows: registration and permissions first, then transformation, transport and the subscriber's view of the data. The main takeaway is that most failures show up as silent gaps rather than errors, so confirm data arrives at each hop before tuning anything.

FailureLikely causeHow to check and fix
AccessDenied when writing to the S3 custom sourceThe IAM role used by Logstash or the ingest path lacks write permission on the custom source bucket or prefix, or the trust policy for the Security Lake source does not name that roleReview the role's policy and the bucket policy for the exact prefix Security Lake expects. Test a single object write with the same credentials before debugging the pipeline.
Lambda timeouts or memory errors during alert burstsBatch sizes are tuned for normal volume, and a burst of alerts exceeds the function's time or memory limit so records are retried or droppedCheck the function's duration and memory metrics in CloudWatch during a known burst. Confirm the retry and dead-letter behavior you configured, then size memory and timeout from measured peaks.
Events arrive with empty or misnamed OCSF fieldsThe Logstash filter maps Wazuh alert fields to OCSF attributes incorrectly, for example by using a Wazuh field name that does not exist in a given rule or decoder outputCompare a sample output event against the OCSF schema version you target. Log the Wazuh alert fields that are missing in your rule set and add explicit fallbacks in the mapping.
TLS or certificate errors between Logstash and the Wazuh indexerThe Logstash output does not trust the indexer's certificate chain, or the certificate names do not match the host used in the output configurationVerify the CA file path and the hostname in the output block. Test the connection with the same CA from the Logstash host before changing pipeline settings.
Security Lake shows no data from the custom sourceThe Region is not the one where Security Lake is enabled, or the custom source was not registered with the right account and schemaConfirm the Region in the Security Lake console matches your pipeline. Check that the custom source is listed, that the account is correct and that the source name matches the prefix your pipeline writes to.
Subscriber queries return no rows for Wazuh dataPartitions are written under a path or date layout the subscriber query does not read, or the schema version in the data differs from the version the subscriber table expectsInspect the S3 prefix layout and the table schema the subscriber uses. Run a query on a known date and compare partition names and the schema version recorded in the data.
Duplicate or delayed events in the lakeRetries after a failed batch write the same alerts again, or the pipeline buffers events before a timeout sends themCheck for repeated event identifiers across a retry window. Confirm the batch and flush settings and whether the write path is idempotent.

Questions buyers ask about a Wazuh and Security Lake project

How long does a Wazuh and Amazon Security Lake integration take?

No duration has been established for this integration, so any timeline should be confirmed in writing before you commit. The biggest drivers are the path you choose, the number of log sources and AWS accounts in scope, the Regions that hold data, and how much of the Wazuh environment already exists. The source path, which sends Wazuh data into Security Lake in OCSF through Logstash and Lambda, carries most of the build work: pipeline design, field mapping, error handling and testing. The subscriber path, which analyzes data already in Security Lake, usually has less pipeline work but still needs access design and validation. Ask for milestones covering environment checks, mapping validation, IAM review and a cutover test, each with its own acceptance criteria.

What does the integration need from our AWS and security teams?

The AWS account owner needs to approve and create the IAM roles, Security Lake settings, Lambda functions, S3 storage and any KMS keys the design uses, and must be able to review them. The security team needs to name the data owners for each log source, decide how fields should map to OCSF, and define which events matter for detection and triage. The Wazuh operators need administrative access to the Wazuh server, the Logstash host and agent configuration, plus a test environment where changes can be checked before production. Agree these responsibilities early. Most delays come from access requests and unresolved mapping decisions, not from the technical build itself.

Can our in-house team build this without outside help?

An in-house team can build it if it already has working knowledge of AWS IAM, Security Lake, Lambda, Logstash and Wazuh operations, and if it has time to test in a non-production environment. The Wazuh documentation covers the components and deployment options, but it does not replace hands-on experience with OCSF mapping and AWS permissions. The honest test is to list which of those skills exist today and who would own the pipeline after go-live. The cost of an in-house build is mainly staff time, which is harder to see than an invoice, and it includes the time needed to learn the gaps. A partner can take on the build, handover and documentation, while your team keeps ownership of the decisions.

What does a fixed-scope quote for this work cover?

A fixed-scope quote lists the agreed scope, deliverables and timeline in writing before work starts. For this integration, it should state which path is in scope, which AWS accounts and Regions are included, which log sources and Wazuh rules or decoders are covered, how OCSF mapping is handled, what IAM changes are made, how testing is done and what the handover includes. It should also list exclusions, such as sources added later or work on systems outside the agreed scope. Ask how changes to scope are priced and approved, and what assumptions about data volume the quote depends on. DeployOpen does not publish a price list, so the quote follows from the written scope.

What recurring work follows the integration after go-live?

Recurring work includes Wazuh version changes, mapping updates, IAM reviews and checks of the pipeline itself. Wazuh shipped 4.14 patch releases on 17 March, 23 April, 1 July, 29 July, 23 September and 14 October 2026, roughly one every one to two months, according to the Wazuh release notes. Each upgrade can affect decoders, Logstash configuration or the Lambda code, so those components need retesting after changes. Mapping needs review when log sources change or when the OCSF schema is updated. IAM roles should be reviewed on a set schedule. Ongoing support, upgrades and continuous testing are available as retainers, and the retainer scope should be written down with the same care as the build.

How do the source and subscriber paths differ in effort?

The source path makes Wazuh a provider of OCSF data into Security Lake, so your team owns the Logstash and Lambda pipeline, the mapping from Wazuh events, the handling of failed records and the monitoring that shows whether data is arriving. The subscriber path has Wazuh read and analyze data that already sits in Security Lake, so the pipeline work is smaller, but access, query design and validation of the subscriber permissions still need attention. Effort on the source path grows with the number of event types that need mapping and the data volume flowing through the pipeline. Effort on the subscriber path grows with the number of data sources and the analysis Wazuh must run. Ask the team to state which path it recommends and why, with the volume and mapping assumptions included.

Does the Wazuh license or Wazuh Cloud change the integration effort?

The self-hosted Wazuh software is open source with no license fee, and it is distributed under the GNU General Public License version 2 with an exception that permits linking with OpenSSL, according to the Wazuh LICENSE file. Your costs are therefore infrastructure, staff time and any partner work. Wazuh Cloud is the vendor's managed, cloud-delivered XDR and SIEM service, and it changes who operates the Wazuh stack. That choice should be made before scoping, because a managed service may remove some server work while still leaving the Security Lake design, IAM and mapping decisions with your team. Confirm with the vendor which Wazuh Cloud features apply to your Security Lake design before you rely on them.

How DeployOpen scopes and delivers the Wazuh and Security Lake integration

DeployOpen plans and builds the Wazuh and Amazon Security Lake integration inside your own AWS accounts and Wazuh environment, with the OCSF mapping, Logstash and Lambda path or subscriber design settled before build work starts. Each engagement ends with documented configuration, tested data flow and a handover your team can operate.

How we scope

  • Confirm whether Wazuh is the Security Lake source, the subscriber analyzing lake data, or both, before any design work starts.
  • Inventory the AWS accounts, Regions, log sources and IAM boundaries that the written scope will cover.
  • Agree in writing which OCSF event classes, volumes, retention settings and downstream consumers are in and out of scope.

How we build

  • Deploy the Logstash and Lambda path or the subscriber configuration in your accounts, with least-privilege IAM roles and encrypted storage.
  • Map Wazuh alert fields to OCSF schema in a tested transformation, and check each mapped field against sample alerts.
  • Run controlled test ingestion, then confirm that lake partitions, query results and alert timing match the agreed design.

How we hand over

  • Deliver architecture notes, IAM policy inventory, pipeline configuration and mapping documentation kept in your repositories.
  • Walk your security and platform engineers through troubleshooting steps for dropped events, permission errors and schema changes.
  • Record the verification results and open items so your team can repeat checks after future Wazuh or AWS changes.

How we support

  • Support after handover is available as a retainer covering monitoring of the pipeline, upgrades and mapping changes.
  • Retesting after Wazuh patch releases or significant AWS configuration changes can be included in an ongoing agreement.
  • Ask any provider to confirm response expectations, change control and who holds access to your AWS accounts during support.

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.