Zebrium's CloudWatch collector (lambda function for AWS) sends logs to Zebrium for automated Anomaly detection. Our github repository is located here.
- Download Zebrium CloudWatch Lambda function package from https://github.com/zebrium/ze-cloudwatch/releases/download/1.47.0/zebrium_cloudwatch-1.47.0.zip
- 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."
- 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.
- Create a new Lambda function
- Go to AWS Lambda page
- Select "Author from scratch"
- Provide the following base information:
- Function Name: zebrium-cloudwatch
- Runtime: Node.js.12.x
- Click on "Create function"
- Edit function details
- On "Code entry type" dropdown menu, choose "Upload a .zip file"
- Upload the Zebrium Lambda function package file you just downloaded
- Enter "index.handler" for Handler setting
- Choose "Node.js.12.x" for Runtime
- For Execution role, choose an existing role with Lambda execution permission
- Click on Designer and click on "Add a trigger". Type "CloudWatch Logs" and choose your log group.
- Set the following environment variables:
ZE_DEPLOYMENT_NAME
: Deployment name (Required)ZE_HOST
: Alternative Host Name (Optional)ZE_LOG_COLLECTOR_URL
: ZAPI URLZE_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.
No additional configuration is required
No additional setup is required
Once the collector has been deployed in your CloudWatch environment, your logs and anomaly detection will be available in the Zebrium UI.
- Brady Zuo (Zebrium)