Control: Elasticsearch domain should send logs to CloudWatch
Description
Ensure that AWS OpenSearch Service (OpenSearch Service) domains are configured to send logs to AWS CloudWatch Logs. The rule is compliant if a log is enabled for an OpenSearch Service domain. This rule is non-compliant if logging is not configured.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.es_domain_logs_to_cloudwatch
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.es_domain_logs_to_cloudwatch --share
SQL
This control uses a named query:
es_domain_logs_to_cloudwatch