Hi,
I'm having a similar issue. In my case, Wazuh seems not to be ingesting the AWS GuardDuty events.
I'm using Wazuh 4.4.1.
This is ossec.log file results:
Apr 20, 2023 @ 12:04:09.000 wazuh-modulesd:aws-s3 INFO Starting fetching of logs.
Apr 20, 2023 @ 12:04:09.000 wazuh-modulesd:aws-s3 INFO Executing Bucket Analysis: (Bucket: aws-guardduty-logs, Path: guardduty, Type: guardduty, Profile: default)
Apr 20, 2023 @ 12:04:09.000 wazuh-modulesd:aws-s3 DEBUG Create argument list
Apr 20, 2023 @ 12:04:09.000 wazuh-modulesd:aws-s3 DEBUG Launching S3 Command: wodles/aws/aws-s3 --bucket aws-guardduty-logs --aws_profile default --trail_prefix guardduty --type guardduty --debug 2
Apr 20, 2023 @ 12:04:09.000 wazuh-modulesd:aws-s3 DEBUG +++ Debug mode on - Level: 2
Here is my wodle configuration (ossec.conf):
<!-- Monitoring AWS based services -->
<wodle name="aws-s3">
<disabled>no</disabled>
<interval>5m</interval>
<run_on_start>yes</run_on_start>
<skip_on_error>no</skip_on_error>
<!-- Guard Duty -->
<bucket type="guardduty">
<name>aws-guardduty-logs</name>
<path>guardduty</path>
<aws_profile>default</aws_profile>
</bucket>
</wodle>
Here is aws-s3 wodle test in Wazuh-Server CLI:
root@wazuhmanager:/var/ossec/wodles/aws# ./aws-s3 -b 'aws-guardduty-logs' -l 'guardduty' -t 'guardduty' -p 'default' --debug 2
DEBUG: +++ Debug mode on - Level: 2
DEBUG: Found configuration for connection retries in /root/.aws/config
DEBUG: +++ Marker: guardduty/2023/04/20
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/0f1a3397-3130-360d-beca-dd496be5b5e0.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/35fcecd5-47a8-351a-b2a8-c08ab00a43ea.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/49f40712-cf6a-336a-a6e2-0907293aaaf0.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/67ded793-b79c-3b2d-af13-b52524317469.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/8a94247e-8a1b-3514-9023-8f34cb0de719.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/9ff5d863-6dec-344e-8cb3-123b83b93c86.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/d758e615-367f-3980-a25f-8e895dc5406f.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/db5faed8-74cb-30a0-9c0f-d174a72f263e.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/e68d06dc-307d-36aa-ada9-787bf664944d.jsonl.gz
DEBUG: ++ Skipping file with another prefix: guardduty/AWSLogs/XXXXXXXXXXXX/GuardDuty/us-east-1/2023/04/19/f10509e3-6f71-3e9a-84e9-50e62f432759.jsonl.gz
DEBUG: +++ DB Maintenance
Any recommendations would be greatly appreciated.
Best regards,
Allex Vieira