Class CfnApplication.LogProperty
The AWS::ApplicationInsights::Application Log
property type specifies a log to monitor for the component.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ApplicationInsights
Assembly: Amazon.CDK.AWS.ApplicationInsights.dll
Syntax (csharp)
public class LogProperty : Object, CfnApplication.ILogProperty
Syntax (vb)
Public Class LogProperty
Inherits Object
Implements CfnApplication.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.AWS.ApplicationInsights;
var logProperty = new LogProperty {
LogType = "logType",
// the properties below are optional
Encoding = "encoding",
LogGroupName = "logGroupName",
LogPath = "logPath",
PatternSet = "patternSet"
};
Synopsis
Constructors
LogProperty() |
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()
public LogProperty()
Properties
Encoding
The type of encoding of the logs to be monitored.
public string Encoding { get; set; }
Property Value
System.String
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
System.String
Remarks
LogPath
The path of the logs to be monitored.
public string LogPath { get; set; }
Property Value
System.String
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
System.String
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; }
Property Value
System.String