AWS::OpenSearchService::Domain LogPublishingOption - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

AWS::OpenSearchService::Domain LogPublishingOption

Specifies whether the OpenSearch Service domain publishes application, search slow logs, or index slow logs to Amazon CloudWatch. Each option must be an object of name SEARCH_SLOW_LOGS, ES_APPLICATION_LOGS, INDEX_SLOW_LOGS, or AUDIT_LOGS depending on the type of logs you want to publish. For the full syntax, see the examples.

Before you enable log publishing, you need to create a CloudWatch log group and provide OpenSearch Service the correct permissions to write to it. To learn more, see Enabling log publishing (Amazon CloudFormation).

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "CloudWatchLogsLogGroupArn" : String, "Enabled" : Boolean }

YAML

CloudWatchLogsLogGroupArn: String Enabled: Boolean

Properties

CloudWatchLogsLogGroupArn

Specifies the CloudWatch log group to publish to. Required if you enable log publishing.

Required: Conditional

Type: String

Update requires: No interruption

Enabled

If true, enables the publishing of logs to CloudWatch.

Default: false.

Required: No

Type: Boolean

Update requires: No interruption

See also