Dear Team,
I am reaching out to seek assistance with an issue in our Wazuh deployment (version [4.9.2]) related to the AWS CloudWatch Logs integration.
Current Situation:
CloudTrail Integration: Our CloudTrail integration with the S3 bucket is working correctly. We can see logs being processed and events appearing in the Wazuh dashboard, including actions like RunInstances, CreateNetworkInterface, etc.
CloudWatch Logs Integration: The CloudWatch Logs integration is configured to monitor 70 log groups in us-east-2 for a AWS account. The Wazuh logs (/var/ossec/logs/ossec.log) show the module executing without error
For example:
Jul 8, 2025 @ 15:34:06.000 wazuh-rootcheck INFO Ending rootcheck scan.
Jul 8, 2025 @ 15:34:02.000 sca INFO Evaluation finished for policy '/var/ossec/ruleset/sca/cis_amazon_linux_2.yml'
Jul 8, 2025 @ 15:34:02.000 sca INFO Security Configuration Assessment scan finished. Duration: 46 seconds.
Jul 8, 2025 @ 15:33:43.000 wazuh-modulesd:aws-s3 INFO Executing Service Analysis: (Service: cloudwatchlogs, Account ID: ********, Profile: default)
Jul 8, 2025 @ 15:33:18.000 wazuh-logcollector INFO (9203): Monitoring journal entries.
However, no alerts or events for aws.cloudwatch appear in the Wazuh dashboard (wazuh-alerts-* or wazuh-archives-* index patterns), and no relevant entries are found in /var/ossec/logs/archives/archives.json when searching for aws.cloudwatch.
Logall_json: JSON logging is enabled (logall_json), but no aws.cloudwatch events appear in /var/ossec/logs/archives/archives.json.
Issue: Despite the CloudWatch Logs module running without errors (no exit code 2 or Error parsing arguments in recent logs), no alerts or events are generated in the Wazuh dashboard or logs for aws.cloudwatch. The CloudTrail integration works fine, but CloudWatch Logs are not being processed into alerts/events.
Could you assist in diagnosing why CloudWatch Logs are not generating alerts/events despite the module running successfully? Are there specific decoders or rules needed? Any additional debugging steps or configuration checks would be appreciated.
The wodle setting:
<wodle name="aws-s3">
<disabled>no</disabled>
<interval>5m</interval>
<run_on_start>yes</run_on_start>
<skip_on_error>yes</skip_on_error>
<bucket type="cloudtrail">
<name>***********</name>
<aws_profile>default</aws_profile>
</bucket>
<service type="cloudwatchlogs">
<aws_profile>default</aws_profile>
<aws_log_groups>******,*****,******,*******</aws_log_groups>
<regions>us-east-2</regions>
<aws_account_id>*********</aws_account_id>
<only_logs_after>2025-JUL-03</only_logs_after>
</service>
</wodle>
BR,
Kelvin