Skip to main content

🧠 AWS OpenSearch Domain error logging is not enabled - prod.logic.yaml🟒

Uses​

Test Results πŸŸ’β€‹

Generated at: 2025-12-27T12:02:05.820814243Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟒test1βœ”οΈ 99βœ”οΈ isDisappeared(CA10__disappearanceTime__c)βœ”οΈ null
🟒test2βœ”οΈ 199βœ”οΈ extract('CA10__logPublishingOptionsJson__c').isEmpty()βœ”οΈ null
🟒test3βœ”οΈ 299βœ”οΈ not(extract('caJsonFrom__logPublishingOptionsJson__c').jsonQueryText('ES_APPLICATION_LOGS.enabled'))βœ”οΈ null
🟒test4βœ”οΈ 399βœ”οΈ extract('caJsonFrom__logPublishingOptionsJson__c').jsonQueryText('ES_APPLICATION_LOGS.enabled')βœ”οΈ null

Generation Bundle​

FileMD5
Open/ce/ca/aws/opensearch/domain-error-logging/policy.yaml06F4E5B330718F697C36168C013E5F96
Open/ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml0A5D9186EFCC0B713CB5030815BA5054
Open/ce/ca/aws/opensearch/domain-error-logging/test-data.jsonFD66C20387D26D0E2B38CB7FB9F78E66
Open/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml0D5B1BE6E92CCF38D456A62B74D84E17

Available Commands​

repo-manager policies generate FULL /ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/aws/opensearch/domain-error-logging/prod.logic.yaml

Content​

Open File

---
inputType: "CA10__CaAwsElasticsearchDomain__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAwsElasticsearchDomain__c/object.extracts.yaml"
conditions:
- status: "INCOMPLIANT"
currentStateMessage: "Log publishing options are not configured."
remediationMessage: "Enable error logging (ES_APPLICATION_LOGS) for the OpenSearch domain."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__logPublishingOptionsJson__c"
- status: "INCOMPLIANT"
currentStateMessage: "Error logging (ES_APPLICATION_LOGS) is explicitly disabled in the configuration."
remediationMessage: "Enable error logging (ES_APPLICATION_LOGS) for the OpenSearch domain."
check:
NOT:
arg:
JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logPublishingOptionsJson__c"
expression: "ES_APPLICATION_LOGS.enabled"
undeterminedIf:
evaluationError: "The ES_APPLICATION_LOGS key is missing from the configuration."
resultTypeMismatch: "The logging status value is not a boolean."
- status: "COMPLIANT"
currentStateMessage: "Error logging (ES_APPLICATION_LOGS) is enabled."
check:
JSON_QUERY_BOOLEAN:
arg:
EXTRACT: "caJsonFrom__logPublishingOptionsJson__c"
expression: "ES_APPLICATION_LOGS.enabled"
undeterminedIf:
evaluationError: "The ES_APPLICATION_LOGS key is missing from the configuration."
resultTypeMismatch: "The logging status value is not a boolean."
otherwise:
status: "UNDETERMINED"
currentStateMessage: "Unexpected values in the field."