Class CfnApplicationPropsMixin.LogProperty
The AWS::ApplicationInsights::Application Log property type specifies a log to monitor for the component.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ApplicationInsights.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnApplicationPropsMixin.LogProperty : CfnApplicationPropsMixin.ILogProperty
Syntax (vb)
Public Class CfnApplicationPropsMixin.LogProperty Implements CfnApplicationPropsMixin.ILogProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ApplicationInsights.Mixins;
var logProperty = new LogProperty {
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
LogType = "logType",
PatternSet = "patternSet"
};
Synopsis
Constructors
| LogProperty() | The |
Properties
| Encoding | The type of encoding of the logs to be monitored. |
| LogGroupName | The CloudWatch log group name to be associated with the monitored log. |
| LogPath | The path of the logs to be monitored. |
| LogType | The log type decides the log patterns against which Application Insights analyzes the log. |
| PatternSet | The log pattern set. |
Constructors
LogProperty()
The AWS::ApplicationInsights::Application Log property type specifies a log to monitor for the component.
public LogProperty()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.Mixins.Preview.AWS.ApplicationInsights.Mixins;
var logProperty = new LogProperty {
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
LogType = "logType",
PatternSet = "patternSet"
};
Properties
Encoding
The type of encoding of the logs to be monitored.
public string? Encoding { get; set; }
Property Value
Remarks
The specified encoding should be included in the list of CloudWatch agent supported encodings. If not provided, CloudWatch Application Insights uses the default encoding type for the log type:
LogGroupName
The CloudWatch log group name to be associated with the monitored log.
public string? LogGroupName { get; set; }
Property Value
Remarks
LogPath
The path of the logs to be monitored.
public string? LogPath { get; set; }
Property Value
Remarks
The log path must be an absolute Windows or Linux system file path. For more information, see CloudWatch Agent Configuration File: Logs Section .
LogType
The log type decides the log patterns against which Application Insights analyzes the log.
public string? LogType { get; set; }
Property Value
Remarks
The log type is selected from the following: SQL_SERVER , MYSQL , MYSQL_SLOW_QUERY , POSTGRESQL , ORACLE_ALERT , ORACLE_LISTENER , IIS , APPLICATION , WINDOWS_EVENTS , WINDOWS_EVENTS_ACTIVE_DIRECTORY , WINDOWS_EVENTS_DNS , WINDOWS_EVENTS_IIS , WINDOWS_EVENTS_SHAREPOINT , SQL_SERVER_ALWAYSON_AVAILABILITY_GROUP , SQL_SERVER_FAILOVER_CLUSTER_INSTANCE , STEP_FUNCTION , API_GATEWAY_ACCESS , API_GATEWAY_EXECUTION , SAP_HANA_LOGS , SAP_HANA_TRACE , SAP_HANA_HIGH_AVAILABILITY , and DEFAULT .
PatternSet
The log pattern set.
public string? PatternSet { get; set; }