Beam CloudWatch logs to SumoLogic using AWS Lambda
- 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)
npm install
to install node modules
- 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
Check the HTTP collector to see if there are incoming messages and search using SumoLogic