{"repo":"TheDesignium/cdk-log-notifier","free":true,"listed":false,"github":"https://github.com/TheDesignium/cdk-log-notifier","clone":"git clone https://github.com/TheDesignium/cdk-log-notifier.git","description":"Collect and filter CloudWatch logs and post to Slack.","language":"TypeScript","stars":42,"topics":["aws-cdk","cdk","cdk-constructs","aws-cdk-construct","typescript","javascript","aws-cloudwatch","cloudwatch","aws-cloudwatch-logs","cloudwatch-logs"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"cdk-log-notifier: Filter CloudWatch logs and post to Slack. The AWS CDK Construct to build a system that gather CloudWatch logs, filter and post to Slack. Example Usage Watch the all logs contains \"ERROR\" from Lambda functions. Installation API Reference Class: LogNotifier The properties in props : - filterPattern : The FilterPattern object in aws-cloudwatch module. The logs is filtered as specified here. Required. - slackIncomingWebhookUrl : The Incoming Webhook URL of Slack. Create for the Slack channel the logs should be posted. Required. - dateTimeFormatOptions : The arguments of the DateTimeFormat constructor, used to format the datetime which shown at the bottom of the Slack message. If omitted, it's formatted like 12/20, 3:00:00 AM UTC . Optional. Example: Static Method: fromAttributes Instantiate from the attributes. Put the value of logNotifier.attributes as attrs parameter. Method: watch Add the log group to watch list to notify. The logs in the watched log groups are filtered by the filterPattern and posted to Slack. Property: attributes To use with LogNotifier.fromAttributes() . Containing Resources - logs.SubscriptionFilter - lambda.Function Limitation The watch() method attaches a Subscription to the subject logGroup. The number of subscription can be attached to a logGroup, however, is only one. So it'll fail if the logGroup has another subscription already. Similary, the watched logGroup can't be attached another subscription nor watched from another LogNotifi","default_branch":null,"files":null,"tree":[],"storefront":"/r/TheDesignium","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/TheDesignium/cdk-log-notifier/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}