INTEGRATIONS

AWS Kinesis with Lambda function

logs from kinesis into Coralogix

Usage

Coralogix provides a predefined Lambda function to forward your Kinesis stream straight to Coralogix

1. Create an “author from scratch” Node.js 10.x runtime lambda with the following permissions(Create execution role tutorial):

2. At “Code entry type” choose “Edit code inline” and paste this function

3. Add the mandatory environment variables:

  • Private Key – A unique ID which 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.Amazon kinesis integration coralogix environment variables

4.   Go to Add triggers and add Kinesis:

amazon kinesis integration coralogix designer

5.  Configure the trigger, select the desired “Kinesis stream” and “Consumer”, change “Batch size” equals to 10:
amazon kinesis integration coralogix configure triggers

6.  Increase Memory to 1024MB and Timeout to 1 min.
amazon kinesis integration coralogix basic settings

7.  Click “Save”.

Start solving your production issues faster

Let's talk about how Coralogix can help you better understand your logs

Managed, Scaled and Compliant ELK Stack

No credit card required

Get a personalized demo

Jump on a call with one of our experts and get a live personalized demonstration