Coralogix provides a predefined Lambda function to forward your Cloudwatch logs straight to Coralogix.
Follow the following 7 steps to get your Cloudwatch logs streaming into Coralogix:
1. Create an “author from scratch” Node.js 10.x runtime lambda with basic permissions:
2. At “Code entry type” choose “Edit code inline” and paste the function code.
3. Add the mandatory environment variables
Private Key – A unique ID that represents your company, this Id will be sent to your mail once you register to Coralogix.
Application Name – Used to separate your environment, e.g. SuperApp-test/SuperApp-prod.
SubSystem Name – Your application probably has multiple subsystems, for example, Backend servers, Middleware, Frontend servers, etc.
4. Go to “Add triggers” and add “CloudWatch logs”: