Ensures that audit logging is enabled for OpenSearch domains, providing a record of user activities and system changes for security audits.
Rule | OpenSearch domains should have audit logging enabled |
Framework | AWS Foundational Security Best Practices |
Severity | ✔ Medium |
Rule Description:
To comply with AWS Foundational Security Best Practices, it is essential to have audit logging enabled for OpenSearch domains. Audit logging helps in monitoring and tracking changes, activities, and access to the OpenSearch service, providing valuable insights for security analysis and compliance purposes.
Troubleshooting Steps:
If audit logging is not enabled for OpenSearch domains, follow the below steps to remediate the issue:
Code Snippet:
To enable audit logging for an OpenSearch domain using AWS CLI, you can use the following command:
aws opensearchservice update-domain-config --domain-name your-domain-name --advanced-security-options Enabled=true,AuditLogsEnabled=true
Remediation Steps:
Follow the step-by-step guide to enable audit logging for an OpenSearch domain:
By following these steps and enabling audit logging for OpenSearch domains, you ensure compliance with AWS Foundational Security Best Practices and enhance the security posture of your AWS environment.