Giter VIP home page Giter VIP logo

logs2sns's Introduction

Overview

logs2sns is CloudFormation template for Lambda function that notify event with email using CloudWatchLogs subscription filter.

Usage

Login to AWS management console and create CloudFormation stack with logs2sns.yml(logs2sns2.yml). See: http://dev.classmethod.jp/cloud/aws/notify-error-cloudwatch-logs-with-lambda/

Standard logs2sns

Standard logs2sns has one FilterPattern and one SNS Topic.

CloudFormation Parameters

  • FilterPattern: Log pattern to notify
  • FilterPatternExcluded: Log exclude pattern to notify
  • MailSubject: Subject of notify mail ー NotifyTopicNameWarning: SNS topic name for notify.

2way logs2sns

2way logs2sns has two set of FilterPattern and one SNS Topic. One is warning filter and other is error filter.

CloudFormation Parameters

  • ErrorFilterPattern: Error log pattern to notify
  • ErrorFilterPatternExcluded: Error log exclude pattern to notify
  • ErrorMailSubject: Subject of error notify mail ー ErrorNotifyTopicName: SNS topic name for error notify.
  • WarningFilterPattern: Warning log pattern to notify
  • WarningFilterPatternExcluded: Warning log exclude pattern to notify
  • WarningMailSubject: Subject of warning notify mail ー WarningNotifyTopicName: SNS topic name for warning notify.

How it works?

  • Create SNS Topic with email subscription.
  • Create IAM Role for Lambda function.
  • Create Lambda function process CloudWatch Logs streaming event (filter and notify email).
  • Add permission to Lambda function to invoke from CloudWatch Logs

Licence

  • The MIT License (MIT)

logs2sns's People

Contributors

watanabeshuji avatar

Stargazers

 avatar tomo kaneko avatar Kazuki Ueki avatar ehiro avatar Takafumi Yoshida avatar Noda Shimpei avatar  avatar

logs2sns's Issues

Does the diagram match the architecture you have in mind?

Hello @watanabeshuji,

My team and I are currently working on automated generation of architecture diagrams for CloudFormation and Serverless projects. Your project is particularly interesting as it represents a good real-world use case.

The tool we are working on generated the following diagram for your repo. I am happy to get your feedback about it. You would help us a lot.

Does the diagram match the architecture you have in mind?

Cheers,
Asha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.