aws-cdk-lib.aws_applicationinsights.CfnApplication.LogProperty

interface LogProperty

LanguageType name
.NETAmazon.CDK.AWS.ApplicationInsights.CfnApplication.LogProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapplicationinsights#CfnApplication_LogProperty
Javasoftware.amazon.awscdk.services.applicationinsights.CfnApplication.LogProperty
Pythonaws_cdk.aws_applicationinsights.CfnApplication.LogProperty
TypeScript aws-cdk-lib » aws_applicationinsights » CfnApplication » LogProperty

The AWS::ApplicationInsights::Application Log property type specifies a log to monitor for the component.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationinsights as applicationinsights } from 'aws-cdk-lib';
const logProperty: applicationinsights.CfnApplication.LogProperty = {
  logType: 'logType',

  // the properties below are optional
  encoding: 'encoding',
  logGroupName: 'logGroupName',
  logPath: 'logPath',
  patternSet: 'patternSet',
};

Properties

NameTypeDescription
logTypestringThe log type decides the log patterns against which Application Insights analyzes the log.
encoding?stringThe type of encoding of the logs to be monitored.
logGroupName?stringThe CloudWatch log group name to be associated with the monitored log.
logPath?stringThe path of the logs to be monitored.
patternSet?stringThe log pattern set.

logType

Type: string

The log type decides the log patterns against which Application Insights analyzes the log.

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 .


encoding?

Type: string (optional)

The type of encoding of the logs to be monitored.

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:

  • APPLICATION/DEFAULT : utf-8 encoding
  • SQL_SERVER : utf-16 encoding
  • IIS : ascii encoding

logGroupName?

Type: string (optional)

The CloudWatch log group name to be associated with the monitored log.


logPath?

Type: string (optional)

The path of the logs to be monitored.

The log path must be an absolute Windows or Linux system file path. For more information, see CloudWatch Agent Configuration File: Logs Section .


patternSet?

Type: string (optional)

The log pattern set.