Wazuh AWS monitoring with the aws-s3 module: what it collects and how
AWS audit and security logs usually sit outside your SIEM, in CloudTrail event history, GuardDuty findings, VPC flow logs and AWS Config records, until someone exports them. The aws-s3 module gives Wazuh a controlled path in. It polls S3 buckets where AWS services deliver their logs, and the Wazuh server decodes each record and applies rules to produce alerts. The services in scope for this topic are CloudTrail, GuardDuty, VPC flow logs and Config. Which log types each module version decodes, and the bucket prefixes and file layout it expects, must be confirmed in the Wazuh documentation for the release you run, because decoder coverage changes between releases.
Before anything is configured, decide where the logs will land and who can read them. Each service writes to its own prefix in an S3 bucket, often across several accounts and regions, so the bucket layout determines what the module can reach and how much work each poll involves. Confirm whether your organization uses a single log archive account, one bucket per account, or a mix. Then plan the IAM identity Wazuh uses. It needs read access to the relevant objects and list access on the bucket, and nothing that allows writes or deletes. Document the role, the trust relationship and the rotation method so that a later review can check them against the bucket policy.
Enable services in an order that matches the questions your security team must answer first. CloudTrail usually comes first because it records management events for identity and configuration changes, and GuardDuty findings are a useful second feed because they are already triaged by AWS. VPC flow logs and Config add volume and context, so turn them on once the path for the first two is proven. Ingestion volume depends on account count, region count, traffic and how many resources Config records, so ask your team for a measured baseline in a test account before you size storage on the Wazuh indexer. Treat the first weeks as a tuning period for both alert noise and index growth.
What Wazuh AWS monitoring needs before the first log arrives
Most delays in AWS log collection come from decisions made before any configuration starts: which Wazuh release and components run, which accounts and regions are in scope, and who controls the buckets and keys. The cards below list each prerequisite and the questions to settle with the AWS account owner and the Wazuh documentation first.
Wazuh release line and components
Confirm which Wazuh release you will deploy. The current line is 4.14, and the 4.14 patch releases are frequent, so pin a specific patch and plan upgrades separately. The Wazuh indexer, server, dashboard and at least one agent or host that runs the AWS module must be running and reachable before the aws-s3 module can write alerts. Check the component versions against the Wazuh documentation for your chosen release.
Wazuh componentsAWS accounts and regions in scope
List every AWS account and region whose logs you need, including the management account, security tooling accounts and any regions used for disaster recovery. Ask the account owner which services are active in each region, because GuardDuty, Config and VPC flow logs are configured per account and region. An unlisted region is the most common cause of missing data during the first review.
S3 buckets and bucket layout
Confirm which S3 buckets hold CloudTrail, GuardDuty, VPC flow and Config logs, and who owns each bucket. Agree on a prefix layout per service and account so the aws-s3 module can read each source without scanning unrelated objects. Ask whether any bucket is shared with other teams, since shared buckets change the read permissions and the volume Wazuh must process.
KMS keys and encrypted objects
If the log buckets use SSE-KMS, the Wazuh read role must also be allowed to use the key for decryption. Ask the account owner which key encrypts each bucket and whether key policies restrict use to specific roles. A bucket policy that allows reads while the key policy blocks decryption will look like a working setup until the first object is opened.
Outbound access from the Wazuh server
The Wazuh server or the host running the module needs outbound network access to the AWS endpoints for S3 and the other services it reads. Confirm with your network team whether traffic goes through a NAT gateway, a proxy or a VPC endpoint, and whether firewall rules allow it. Check the AWS endpoint requirements in the Wazuh documentation for the aws-s3 module, because these details change between releases.
Ownership of the AWS side
Name the person who approves IAM roles, bucket policies and KMS key changes, and the person who owns the Wazuh server. Many delays happen because the security team runs Wazuh while a cloud platform team controls the accounts. Agree in writing who creates the read-only role, who reviews its permissions and who responds when log delivery stops.
How AWS logs travel from the service to the Wazuh dashboard
The path starts when AWS services such as CloudTrail, GuardDuty and VPC flow logs write log objects to S3 buckets in a log archive account. The Wazuh server's aws-s3 module then reads those objects using a read-only IAM identity that crosses the trust boundary from the AWS account into your network. The server applies decoders and rules to each event, stores alerts in the Wazuh indexer, and analysts review them in the Wazuh dashboard. Check the IAM permission path and the bucket layout at the boundary first, because most ingestion gaps start there.
Log flow from AWS services through the aws-s3 module into the Wazuh dashboard.
Which AWS services to enable first and why
Start with the sources that answer the most urgent questions, which for most teams means CloudTrail management events for account activity and GuardDuty findings for threat signals. Management events record who changed IAM policies, created access keys, modified security groups or turned off logging, so they are the fastest route to detecting a compromised administrator. GuardDuty findings add an independent threat signal that Wazuh can alert on without the team first writing detection logic for every AWS API pattern. Enable both, confirm the aws-s3 module reads each source correctly, and spend the first weeks tuning alerts before adding anything else.
Network flow logs and AWS Config history come next, once the first alerts are understood. VPC flow logs help with lateral movement and unexpected egress, and Config history shows configuration drift over time, but both can multiply ingestion volume quickly, and flow logs in particular grow with traffic across every subnet and network interface. Data event logging for services such as S3 or Lambda is the largest multiplier of all, and it should be scoped to specific buckets or functions rather than switched on account-wide. Enable each source deliberately, record the daily volume it adds to the Wazuh indexer, and check that the added alerts are ones your analysts will act on.
The right order depends on your threat model, so confirm it with the security team before enabling anything. A company with heavy public S3 use may need data events earlier, while a team that runs most workloads in one region may find flow logs less urgent than Config history for audit questions. Ask the security lead which incidents they most need to reconstruct, which accounts and regions are in scope, and what storage and retention the business accepts. Confirm current service behavior and log formats against the AWS documentation for each service, since these details change, and document the answers so the order can be revisited when the threat model changes.
Bucket layout for single account and multi-account AWS setups
In a single account, CloudTrail, GuardDuty, VPC flow logs and AWS Config can all deliver to one bucket. Separation between sources depends on the prefix structure, because the aws-s3 module selects objects by the path they are written under. Keep the layout simple enough that a person reading the bucket can tell which service and region produced each object.
- Prefixes per service and region: Each source writes under its own prefix, typically including the service name, account ID and region in the path. Confirm the exact pattern in the Wazuh documentation and do not assume it from examples.
- Bucket policy owned by the security team: The team that owns the logging account should own the bucket policy. It should allow only the AWS log delivery services and the Wazuh reader role to act on the bucket.
- Encryption set at creation: Choose SSE-KMS or SSE-S3 when the bucket is created. With a customer managed KMS key, the reader role needs decrypt permission on that key, and a missing grant shows up as silent ingestion failure.
- Retention through lifecycle rules: Set lifecycle rules per prefix so raw logs expire on the schedule your retention policy sets. This is separate from how long the Wazuh indexer keeps alerts.
- Module configuration: The module block needs the bucket name, the prefix and the region. Point it at one service prefix at a time so an error in one source does not hide problems in another.
Before adding a second source, confirm the first one produces objects under the expected path and that Wazuh generates events from them.
An AWS Organizations setup usually sends logs from member accounts to a central log archive account. The archive account keeps retention, encryption and access decisions in one place, and member teams cannot change them. The prefix structure must carry the account identity, because the reader needs to know which member account produced each object.
- Account ID in the path: Prefixes include the member account ID so events can be traced to their source and, if needed, filtered per account. Confirm with the Wazuh documentation whether the module filters by account ID or reads everything under a shared prefix.
- Organization-scoped bucket policy: The archive account owner controls the bucket policy. Use conditions tied to your organization identifier so that only accounts in your organization can deliver logs into the bucket.
- Central key ownership: A KMS key in the archive account, with a key policy that grants the reader role decrypt access, lets the archive team control decryption for all member accounts.
- Retention set by the archive owner: Lifecycle rules and any object lock settings belong to the archive account. Ask your compliance lead whether your retention requirements call for object lock, because it changes how deletions can be performed.
- Reader access across accounts: Decide whether the Wazuh reader role lives in the archive account or is assumed from another account. Confirm which cross-account role configuration the aws-s3 module supports before writing the policy.
Ask the archive account owner to confirm the policy conditions with a test delivery from one member account before enabling the rest.
The prefix and path expectations in this layout come from the Wazuh documentation, and the documentation may change between releases. Before the module is pointed at production buckets, compare the documented pattern with objects that AWS has actually delivered. A sandbox account or a test bucket is the safest place to do this, because it lets you change prefixes without affecting live ingestion.
- List delivered keys: Use the AWS CLI to list object keys under the bucket and compare each path with the documented pattern. Record any difference before going further.
- Enable one source at a time: Start with CloudTrail, confirm ingestion end to end, then add GuardDuty, VPC flow logs and Config in turn so that a fault can be traced to a single source.
- Check events, not only objects: Objects arriving in the bucket only show that delivery works. Confirm that the module reads them and that Wazuh produces events, and test sample log lines against your decoders where a source needs custom handling.
- Measure volume per prefix: Track object counts and sizes for each prefix over a representative period. Use those numbers to size storage and ingestion, not estimates taken from a single day.
- Record the final layout: Document the prefixes, account IDs, regions, key and role names in your runbook so later changes do not silently break ingestion.
Do not point production at the buckets until the delivered keys, the module configuration and the resulting Wazuh events all agree.
Setting up Wazuh AWS monitoring, step by step
This sequence takes a Wazuh server from a healthy baseline to verified AWS log ingestion, one service at a time, so each source is proven before the next is added.
Confirm the Wazuh release and server health
Before touching AWS, confirm which Wazuh release the server runs and that the components are healthy. Check the version against the current release line in the Wazuh release notes, then confirm the Wazuh indexer, Wazuh server and Wazuh dashboard all start cleanly and that the dashboard loads for an administrator. Record the version and the server hostname in your change record. Done when every component reports healthy and an existing agent still shows as active, so you have a known baseline to compare against if ingestion problems appear later.
Create a read-only IAM identity for the module
Create a dedicated IAM identity, ideally a role or user used only for this integration, that can read the log objects in the one bucket that will hold the test logs. Grant only the read and list actions on that bucket and prefix, and no write or administrative permissions. Confirm the exact action list for the aws-s3 module in the Wazuh documentation for your release before you attach it. Check the result by using the identity's credentials from a shell to list objects in the test bucket, and confirm that a write attempt is denied. Store the access key or role configuration in your secrets store, not in plain text on the server.
Enable log delivery for one service into a test bucket
Choose one service to start with, CloudTrail is a common first choice because it records API activity across the account. Create or confirm a trail that delivers logs to a dedicated test bucket, and note the bucket name, the key prefix and the region. Keep the bucket layout simple and document it, because the Wazuh configuration must match the prefix exactly. Confirm that delivery works by waiting for log files to arrive and listing them with the read-only identity from the previous step. Done when at least one delivered object is visible in the bucket with the expected prefix.
Add the aws-s3 wodle configuration on the server
On the Wazuh server, add an aws-s3 wodle block to the server configuration file for the one service you enabled. Set the bucket name, the prefix, the region and the service type as the Wazuh documentation for your release describes, and reference the credentials through the method the documentation recommends for your environment. Keep the first configuration limited to this one bucket and prefix. Validate the XML or configuration syntax before restarting, using the validation approach the documentation provides. Done when the configuration passes validation and no error appears in the server logs at startup.
Restart or reload the server as documented
Apply the configuration by restarting or reloading the Wazuh server service in the way the documentation directs for the release you run, rather than by guessing. Watch the server logs during startup for the aws-s3 module. Expect the first pull to take some time depending on how many objects exist under the prefix. Done when the log shows the module starting, reading the bucket and reporting progress without authentication or permission errors. If you see access denied messages, return to the identity policy and confirm the bucket and prefix match exactly.
Verify decoded events in the indexer and dashboard
Generate a known, low-risk API call in the account, for example listing an S3 bucket with a test identity, so you know what event should appear. Wait for CloudTrail to deliver the log file, then search the Wazuh dashboard for AWS events within the time window of your test. Confirm that the event has been decoded into fields such as the event name, source identity and region, and that the alert or archived event matches the call you made. Done when your known API call is visible in the dashboard with decoded fields. Only then add the next service.
Add each further service one at a time
Repeat the cycle for each additional service, such as GuardDuty findings, VPC flow logs or AWS Config, using a separate prefix or bucket and a separate configuration block per service. For each one, confirm the service's delivery settings, extend the read-only policy only to the new prefix, validate, restart, and check decoded events for a known example. Estimate ingestion volume from the first week of data before enabling the noisier sources such as VPC flow logs, and ask your team to confirm the storage and indexer capacity they expect. Done when each service produces verified decoded events in the dashboard and the total volume is recorded against your indexer capacity.
Mapping AWS log sources to Wazuh decoders and rules
This table maps the four AWS services in scope, plus the account and region fields, to what each records, where it lands in the S3 bucket, and which Wazuh decoder or rule group handles it. Read each row as a checklist: confirm the bucket prefix and decoder names against your installed release before you rely on them, because the exact IDs change between versions.
| AWS source | What it records | Bucket or prefix it arrives under | Wazuh decoder or rule group | What to confirm before relying on it |
|---|---|---|---|---|
| CloudTrail | API calls and console activity recorded by account, including IAM changes, sign-ins and resource configuration changes | The trail's S3 prefix, typically organized by account ID, region and date. Confirm the layout your trail writes to | The aws-s3 module CloudTrail decoder and its rule group in the Wazuh rules reference for your release | That the trail is multi-region if you need global events, that log file validation is on, and that the prefix matches the module configuration |
| GuardDuty | Threat detection findings generated from analysis of account, network and DNS activity | The findings export prefix configured for the detector. Confirm whether findings are exported to S3 in your setup | The GuardDuty decoder and rule group listed in the Wazuh rules reference for the installed release | Which finding types you export, and whether findings already duplicate alerts from another source you collect |
| VPC flow logs | Accepted and rejected network traffic metadata for network interfaces, subnets or VPCs, with source and destination addresses and ports | The flow log destination prefix, often separated by VPC, account and region. Confirm the chosen log format and version | The VPC flow log decoder in the Wazuh rules reference, which depends on the log format you selected | The custom log format fields you chose, and expected volume, since flow logs grow quickly on busy networks |
| AWS Config | Configuration items and configuration snapshots for supported resource types, with change history | The Config delivery channel prefix, usually split into configuration history and snapshot folders. Confirm both | The AWS Config decoder and compliance-related rule group in the Wazuh rules reference | Which resource types are recorded, and whether a delivery channel is active in every region you monitor |
| Account and region fields | The account ID and region that identify where each event came from, present in the record body of most AWS service logs | Encoded in the object path for many services, so the bucket layout determines whether you can filter by account or region before decoding | Fields extracted by the decoders above, used by rules to group alerts by account and region in the dashboard | That account and region fields are parsed in your release, and that multi-account setups keep account IDs distinct in each prefix |
Securing the AWS to Wazuh path
The path from AWS to Wazuh crosses three trust boundaries: the AWS account that produces the logs, the bucket that stores them, and the Wazuh server that reads them. Each card covers one boundary or one control that keeps the logs complete and the reading identity limited. Verify each item in your own accounts before the first ingestion run.
Read-only IAM scope
The identity that Wazuh uses to read logs should only list and get objects in the log bucket and prefixes it needs. It should have no permission to write, delete or change bucket settings. Check the attached policy in IAM and confirm it covers the exact bucket and prefixes your trails write to, with no wildcard resource. Test the identity with a read and a denied write before enabling the module.
Short-lived credentials over access keys
Long-lived access keys on the Wazuh server are the most common weak point in this path because they stay valid until someone rotates them. Check the Wazuh aws-s3 module documentation for the credential methods it supports, then prefer an instance role or another temporary method where the module allows it. Where static keys are unavoidable, confirm an owner, a rotation schedule and a removal step for the key.
Bucket policy limited to the reader
A bucket policy should allow the reading identity and the AWS log delivery services, and deny everything else, including broad access from other accounts. Review the policy for principals, public access settings and any cross-account grants that were added for testing. Confirm that the policy denies unencrypted or insecure transport requests if your bucket policy design includes those conditions.
Encryption and KMS key permissions
If log objects are encrypted with a customer managed KMS key, the Wazuh reading identity needs decrypt permission on that key, and nothing else in the key policy should grant broad use. Check that the key policy allows the log delivery service to encrypt and the reader to decrypt, and that key administrators are separate from the reader. Test ingestion after any key rotation or policy change, because a key permission gap often looks like an empty module.
Wazuh server credentials and configuration
The Wazuh server holds the AWS credentials and the module configuration, so its files need the same protection as other secrets. Confirm that the ossec configuration containing the aws-s3 settings is readable only by the service account and root, and that credentials are not copied into shared tickets, scripts or backups. Record who can edit the configuration and review changes through your normal change process.
Raw log retention in a separate archive
Wazuh retention controls how long alerts and indexed data stay searchable, not how long the source evidence exists. Keep raw CloudTrail and other service logs in an archive account or bucket with its own lifecycle and object lock settings, so the evidence survives a Wazuh rebuild or a retention change. Ask your compliance team which retention period applies to each log type before setting lifecycle rules.
Auditing access to the buckets
Access to the log buckets should itself be logged, so unexpected reads or deletes are visible. Confirm that S3 server access logging or CloudTrail data events are enabled for the log buckets, and that someone reviews them on a schedule. Alert on changes to the bucket policy, the reader role and the KMS key policy, since those changes can silently stop collection.
Common failures when AWS logs do not reach Wazuh
This table pairs each symptom seen when AWS logs fail to arrive in Wazuh with its likely cause and a check you can run to confirm it. Work through the rows in order, because a missing bucket or permission error usually hides every later symptom. The main takeaway is that most failures trace to the bucket layout, prefix settings or IAM permissions, so verify those before changing the Wazuh configuration.
| Symptom | Likely cause | Fix and check to run |
|---|---|---|
| No events after configuration | Wrong bucket name, region, or prefix in the module settings, so the module finds no objects | List the bucket with the AWS CLI using the same region and prefix you configured, then compare those values with the module block in the Wazuh server configuration |
| No events after configuration | The log delivery service writes to a different path than the prefix Wazuh reads | Check the S3 key path of a recent object in the bucket and confirm the prefix matches it, including account ID and region segments |
| Access denied errors | The IAM identity used by the Wazuh server lacks s3:ListBucket or s3:GetObject on the bucket or prefix | Run a list and a get on one known object with the same credentials, then review the attached policy for the exact bucket and prefix resources |
| Access denied errors | The bucket uses a customer-managed KMS key and the identity cannot decrypt objects | Confirm the identity has decrypt permission on that key and that the key policy allows the identity, then test a single object download |
| Duplicate events after reconfiguration | The module re-reads objects after a change to the prefix, region or bucket, or the state tracking was reset | Compare the object keys in the logs with the earlier run, then confirm which prefixes were previously processed before you change the configuration again |
| Events arriving late | Log delivery from the AWS service runs on its own schedule, and the Wazuh poll interval adds more delay | Check the time stamps of the newest object in the bucket against the time it was processed on the Wazuh server, and record both delays separately |
| Events arriving but not decoded | The log format differs from the one the decoders expect, such as a new field layout or a different compression or file type | Take one raw event from the archive, run it through wazuh-logtest, and compare its structure with the decoder and rule files for that service |
| Events arriving but not decoded | The service logs are stored in a format the module does not parse as expected, so events land as unparsed text | Open a sample object, confirm its format and encoding, and check the server ossec log for parsing messages for that service |
| Volume higher than planned | Verbose or data-plane logs such as VPC flow logs are enabled on busy accounts or across many regions | Measure object count and size per prefix over a representative period, then reduce the enabled sources or regions before adding capacity |
Questions buyers ask before hiring help with Wazuh AWS monitoring
What drives the cost of setting up AWS log collection in Wazuh?
The main drivers are the number of AWS accounts and regions, which log services you enable, how deeply you tune detection content for them, and how you design the S3 buckets that hold the logs. Each additional account or region adds IAM roles, bucket paths and collection jobs to build and test. Enabling more services adds parsing and rule work for each new log type. A quote covers one-time build work (IAM, buckets, module configuration, decoders and rules) and any recurring support you choose separately. Ask for the quote to list each account, region and service in scope, and whether tuning is included or priced separately.
How long does a Wazuh AWS monitoring project take?
The timeline depends on how many accounts and services are in scope, how quickly the AWS account owners approve IAM and bucket changes, and how much detection tuning is agreed before go-live. Most delays come from waiting on approvals and access, not from the Wazuh configuration itself. Work usually runs in a sequence: confirm scope, prepare IAM and buckets, enable one service, verify ingestion, then add the next. Ask for a written schedule with dependencies on your side, such as access grants and change windows, so you can see which dates depend on your team.
What does our team need to provide before the work starts?
You need to provide AWS access appropriate to the scope, a named owner for each AWS account, and approval for IAM role and S3 bucket changes made through your change process. You also need a Wazuh environment you control, network paths from the Wazuh server to the S3 buckets, and a named person who receives and acts on alerts. Without that alert owner, collection works but findings have nowhere to go. Confirm these items in the written scope so access requests start on day one rather than mid-project.
Can our internal team set up Wazuh AWS monitoring without outside help?
Yes, a team can do it alone if it has working knowledge of AWS IAM, S3 bucket policies, CloudTrail and the other services you plan to collect, plus Wazuh administration. The work needs someone who can write and test decoders and rules, and someone who can read the logs well enough to decide what is noise. Smaller teams often underestimate the time spent on tuning and verifying each service. Check your team against those skills before deciding, and consider a short scoped review if one of them is missing.
How do we estimate and review ongoing AWS log ingestion volume?
Ingestion volume depends on which services you enable, how much activity your accounts generate, and how often the aws-s3 module polls the buckets. Estimate it by enabling one service, measuring the object count and size it produces over a representative period, and projecting from there. Review the figures regularly, because a new workload or a noisy service can change them quickly. Also check storage retention on the Wazuh indexer and any cost in AWS for the buckets and API calls. Ask your provider to document the measurement method and the review cadence.
Which AWS services should we enable first?
Start with the services that record who did what in your accounts, usually CloudTrail, followed by GuardDuty findings, because they give the highest value for detection early. VPC flow logs and AWS Config add useful context but produce more data and need more tuning. Confirm the exact sequence against your threat model and the Wazuh documentation for each module. Enabling one service at a time makes it easier to verify ingestion and to catch decoding problems before they multiply.
Does DeployOpen cover the AWS side or only the Wazuh side?
DeployOpen's work covers both the Wazuh configuration and the AWS-side setup that feeds it, such as IAM roles, bucket layout and log delivery, within the written scope. It does not take over your AWS governance, change approval or account ownership. Decisions about which accounts and regions are in scope stay with your team. The written scope lists which AWS resources are changed, who approves those changes and what remains your responsibility after handover.
How DeployOpen works on this
DeployOpen plans and builds Wazuh AWS security monitoring inside your own infrastructure, starting from which AWS accounts, regions and log sources matter to your security team. Work is agreed as a fixed-scope engagement, with the IAM roles, bucket layout, aws-s3 module configuration and verification steps written down before the build starts.
How we scope
- Inventory the AWS accounts, regions and services whose logs your security team needs in Wazuh
- Agree which log sources come first, such as CloudTrail and GuardDuty, and which wait for a later phase
- Confirm the Wazuh deployment that will receive the logs and where the server and indexer run
- Estimate ingestion volume and retention needs, and record the assumptions in the written scope
How we build
- Create least-privilege IAM roles and policies for each log source, with reads limited to the required buckets
- Lay out S3 buckets and prefixes so the aws-s3 module can read each service's logs predictably
- Configure the aws-s3 module for each source and confirm that events decode and reach the indexer
- Test detection content against sample AWS events and tune rules to reduce noise before handover
How we hand over
- Deliver a written record of the IAM setup, bucket layout, module settings and the decoders and rules in use
- Document the verification checks your team can rerun after changes, such as confirming new events arrive
- Walk your engineers through the operations steps for adding accounts, services and log sources later
- Provide a list of open items, including anything to confirm with AWS or your own environment
How we support
- Ongoing support, upgrades and continuous testing are available as retainers after the initial build
- Retainers can cover Wazuh version upgrades, new AWS services and periodic checks of IAM permissions
- Scope changes are priced and agreed in writing before the work starts
- Ask for the support scope, response expectations and change process in writing when requesting a quote

