{
    "Provider": "aws",
    "CheckID": "opensearch_service_domains_cloudwatch_logging_enabled",
    "CheckTitle": "Check if Amazon Elasticsearch/Opensearch Service domains have logging enabled",
    "CheckType": ["Identify", "Logging"],
    "ServiceName": "opensearch",
    "SubServiceName": "",
    "ResourceIdTemplate": "arn:partition:service:region:account-id:resource-id",
    "Severity": "medium",
    "ResourceType": "AwsOpenSearchDomain",
    "Description": "Check if Amazon Elasticsearch/Opensearch Service domains have logging enabled",
    "Risk": "Amazon ES exposes four Elasticsearch/Opensearch logs through Amazon CloudWatch Logs: error logs; search slow logs; index slow logs; and audit logs.",
    "RelatedUrl": "",
    "Remediation": {
      "Code": {
        "CLI": "https://docs.bridgecrew.io/docs/elasticsearch_7#cli-command",
        "NativeIaC": "https://docs.bridgecrew.io/docs/elasticsearch_7#cloudformation",
        "Other": "https://docs.bridgecrew.io/docs/elasticsearch_7#fix---runtime",
        "Terraform": "https://docs.bridgecrew.io/docs/elasticsearch_7#fix---buildtime"
      },
      "Recommendation": {
        "Text": "Enable Elasticsearch/Opensearch log. Create use cases for them. Using audit logs check for access denied events.",
        "Url": "https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-createdomain-configure-slow-logs.html"
      }
    },
    "Categories": [],
    "Tags": {
      "Tag1Key": "value",
      "Tag2Key": "value"
    },
    "DependsOn": [],
    "RelatedTo": [],
    "Notes": "",
    "Compliance": []
  }
