Interface LoggingOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
LoggingOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:44.595Z") @Stability(Stable) public interface LoggingOptions extends software.amazon.jsii.JsiiSerializable
Configures log settings for the domain.

Example:

 Domain prodDomain = Domain.Builder.create(this, "Domain")
         .version(EngineVersion.OPENSEARCH_1_0)
         .capacity(CapacityConfig.builder()
                 .masterNodes(5)
                 .dataNodes(20)
                 .build())
         .ebs(EbsOptions.builder()
                 .volumeSize(20)
                 .build())
         .zoneAwareness(ZoneAwarenessConfig.builder()
                 .availabilityZoneCount(3)
                 .build())
         .logging(LoggingOptions.builder()
                 .slowSearchLogEnabled(true)
                 .appLogEnabled(true)
                 .slowIndexLogEnabled(true)
                 .build())
         .build();
 
  • Method Details

    • getAppLogEnabled

      @Stability(Stable) @Nullable default Boolean getAppLogEnabled()
      Specify if Amazon OpenSearch Service application logging should be set up.

      Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later.

      Default: - false

    • getAppLogGroup

      @Stability(Stable) @Nullable default ILogGroup getAppLogGroup()
      Log Amazon OpenSearch Service application logs to this log group.

      Default: - a new log group is created if app logging is enabled

    • getAuditLogEnabled

      @Stability(Stable) @Nullable default Boolean getAuditLogEnabled()
      Specify if Amazon OpenSearch Service audit logging should be set up.

      Requires Elasticsearch version 6.7 or later or OpenSearch version 1.0 or later and fine grained access control to be enabled.

      Default: - false

    • getAuditLogGroup

      @Stability(Stable) @Nullable default ILogGroup getAuditLogGroup()
      Log Amazon OpenSearch Service audit logs to this log group.

      Default: - a new log group is created if audit logging is enabled

    • getSlowIndexLogEnabled

      @Stability(Stable) @Nullable default Boolean getSlowIndexLogEnabled()
      Specify if slow index logging should be set up.

      Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later.

      Default: - false

    • getSlowIndexLogGroup

      @Stability(Stable) @Nullable default ILogGroup getSlowIndexLogGroup()
      Log slow indices to this log group.

      Default: - a new log group is created if slow index logging is enabled

    • getSlowSearchLogEnabled

      @Stability(Stable) @Nullable default Boolean getSlowSearchLogEnabled()
      Specify if slow search logging should be set up.

      Requires Elasticsearch version 5.1 or later or OpenSearch version 1.0 or later.

      Default: - false

    • getSlowSearchLogGroup

      @Stability(Stable) @Nullable default ILogGroup getSlowSearchLogGroup()
      Log slow searches to this log group.

      Default: - a new log group is created if slow search logging is enabled

    • builder

      @Stability(Stable) static LoggingOptions.Builder builder()
      Returns:
      a LoggingOptions.Builder of LoggingOptions