Hello,
I am trying to setup ingestion of cloudwatch logs but get the following message in the logs:
Jun 21, 2021 @ 11:37:32.000 wazuh-modulesd:aws-s3 WARNING Service: cloudwatchlogs - Returned exit code 12
Jun 21, 2021 @ 11:37:32.000 wazuh-modulesd:aws-s3 WARNING Service: cloudwatchlogs - The config profile (default) could not be found
Jun 21, 2021 @ 11:37:32.000 wazuh-modulesd:aws-s3 INFO Fetching logs finished.
Jun 21, 2021 @ 11:37:31.000 wazuh-modulesd:aws-s3 INFO Starting fetching of logs.
Jun 21, 2021 @ 11:37:31.000 wazuh-modulesd:aws-s3 INFO Executing Service Analysis: (Service: cloudwatchlogs, Profile: default)
I made the assumption (and maybe incorrectly) that the "aws_profile" corresponded to the aws cli config which has access/secret key set in the default profile (side question - will roles ever be supported as well?)
My ossec.conf config
<wodle name="aws-s3">
<disabled>no</disabled>
<interval>5m</interval>
<run_on_start>yes</run_on_start>
<service type="cloudwatchlogs">
<aws_profile>default</aws_profile>
<aws_log_groups>vpcFlowLogs</aws_log_groups>
<regions>us-west-2</regions>
</service>
</wodle>