Show / Hide Table of Contents

Class LoggingOptions

Configures log settings for the domain.

Inheritance
System.Object
LoggingOptions
Implements
ILoggingOptions
Namespace: Amazon.CDK.AWS.OpenSearchService
Assembly: Amazon.CDK.AWS.OpenSearchService.dll
Syntax (csharp)
public class LoggingOptions : Object, ILoggingOptions
Syntax (vb)
Public Class LoggingOptions
    Inherits Object
    Implements ILoggingOptions
Remarks

ExampleMetadata: infused

Examples
var prodDomain = new Domain(this, "Domain", new DomainProps {
    Version = EngineVersion.OPENSEARCH_1_0,
    Capacity = new CapacityConfig {
        MasterNodes = 5,
        DataNodes = 20
    },
    Ebs = new EbsOptions {
        VolumeSize = 20
    },
    ZoneAwareness = new ZoneAwarenessConfig {
        AvailabilityZoneCount = 3
    },
    Logging = new LoggingOptions {
        SlowSearchLogEnabled = true,
        AppLogEnabled = true,
        SlowIndexLogEnabled = true
    }
});

Synopsis

Constructors

LoggingOptions()

Properties

AppLogEnabled

Specify if Amazon OpenSearch Service application logging should be set up.

AppLogGroup

Log Amazon OpenSearch Service application logs to this log group.

AuditLogEnabled

Specify if Amazon OpenSearch Service audit logging should be set up.

AuditLogGroup

Log Amazon OpenSearch Service audit logs to this log group.

SlowIndexLogEnabled

Specify if slow index logging should be set up.

SlowIndexLogGroup

Log slow indices to this log group.

SlowSearchLogEnabled

Specify if slow search logging should be set up.

SlowSearchLogGroup

Log slow searches to this log group.

Constructors

LoggingOptions()

public LoggingOptions()

Properties

AppLogEnabled

Specify if Amazon OpenSearch Service application logging should be set up.

public Nullable<bool> AppLogEnabled { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

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

Default: - false

AppLogGroup

Log Amazon OpenSearch Service application logs to this log group.

public ILogGroup AppLogGroup { get; set; }
Property Value

ILogGroup

Remarks

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

AuditLogEnabled

Specify if Amazon OpenSearch Service audit logging should be set up.

public Nullable<bool> AuditLogEnabled { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

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

Default: - false

AuditLogGroup

Log Amazon OpenSearch Service audit logs to this log group.

public ILogGroup AuditLogGroup { get; set; }
Property Value

ILogGroup

Remarks

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

SlowIndexLogEnabled

Specify if slow index logging should be set up.

public Nullable<bool> SlowIndexLogEnabled { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

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

Default: - false

SlowIndexLogGroup

Log slow indices to this log group.

public ILogGroup SlowIndexLogGroup { get; set; }
Property Value

ILogGroup

Remarks

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

SlowSearchLogEnabled

Specify if slow search logging should be set up.

public Nullable<bool> SlowSearchLogEnabled { get; set; }
Property Value

System.Nullable<System.Boolean>

Remarks

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

Default: - false

SlowSearchLogGroup

Log slow searches to this log group.

public ILogGroup SlowSearchLogGroup { get; set; }
Property Value

ILogGroup

Remarks

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

Implements

ILoggingOptions
Back to top Generated by DocFX