Giter Club home page Giter Club logo

ze-cloudwatch's Introduction

CLOUDWATCH COLLECTOR DETAILS

Zebrium's CloudWatch collector (lambda function for AWS) sends logs to Zebrium for automated Anomaly detection. Our github repository is located here.

ze-cloudwatch

Getting Started

Preparation

  1. Download Zebrium CloudWatch Lambda function package from https://github.com/zebrium/ze-cloudwatch/releases/download/1.47.0/zebrium_cloudwatch-1.47.0.zip
  2. If you have an existing Lambda function associated with the log group to be set up, you must go to AWS CloudWatch page and delete the existing subscription filter, otherwise you will get this error message: "An error occurred when creating the trigger: The log group host-log already has an enabled subscription filter associated with it."
  3. If you do not have an existing role with Lambda execution permission, you should got to AWS IAM service to create a role for running Lambda functions.

Installation

  1. Create a new Lambda function
    1. Go to AWS Lambda page
    2. Select "Author from scratch"
    3. Provide the following base information:
      • Function Name: zebrium-cloudwatch
      • Runtime: Node.js.12.x
    4. Click on "Create function"
  2. Edit function details
    1. On "Code entry type" dropdown menu, choose "Upload a .zip file"
    2. Upload the Zebrium Lambda function package file you just downloaded
    3. Enter "index.handler" for Handler setting
    4. Choose "Node.js.12.x" for Runtime
    5. For Execution role, choose an existing role with Lambda execution permission
    6. Click on Designer and click on "Add a trigger". Type "CloudWatch Logs" and choose your log group.
    7. Set the following environment variables:
      • ZE_DEPLOYMENT_NAME: Deployment name (Required)
      • ZE_HOST: Alternative Host Name (Optional)
      • ZE_LOG_COLLECTOR_URL: ZAPI URL
      • ZE_LOG_COLLECTOR_TOKEN: Auth token

Click on Save button to save your new Lambda function. New logs should appear on Zebrium web portal in a couple of minutes.

Configuration

No additional configuration is required

Setup

No additional setup is required

Testing your installation

Once the collector has been deployed in your CloudWatch environment, your logs and anomaly detection will be available in the Zebrium UI.

Contributors

  • Brady Zuo (Zebrium)

ze-cloudwatch's People

Contributors

bradyzebrium avatar ravenklaugh avatar rodbagg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

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.