Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/santthosh/sumologic-cloudwatch-lambda

Beam CloudWatch logs to SumoLogic using AWS Lambda
https://github.com/santthosh/sumologic-cloudwatch-lambda

Last synced: about 13 hours ago
JSON representation

Beam CloudWatch logs to SumoLogic using AWS Lambda

Awesome Lists containing this project

README

        

# CloudWatch logs connector for SumoLogic through AWS Lambda
Beam CloudWatch logs to SumoLogic using AWS Lambda

## Basics

### Requirements

* Have node.js installed
* Have an Amazon Web Services (AWS) Account
* Create an IAM role that has access to AWS Lambda, CloudWatch (make sure you modify package.json to set the same role name)

### Building

* `npm install` to install node modules

### Deploying

* Configure your AWS environment keys (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_ACCOUNT_ID)
* Modify config.json, add appropriate values as necessary (http collector endpoint from SumoLogic)
* `gulp deploy` to build and deploy this to your AWS Lambda environment. Check login function in your selected region
* Make sure to add appropriate CloudWatch logs as event sources to your lambda function

![aws-sumologic-cloudwatch](https://raw.githubusercontent.com/santthosh/sumologic-cloudwatch-lambda/develop/aws-lambda-sumologic.png)

### Testing

Check the HTTP collector to see if there are incoming messages and search using SumoLogic