Log collection from S3

Description

S3 to Coralogix lambda allows you to send your logs from your S3 bucket to Coralogix.

Usage

You must add the following environment variables when using this lambda. 

Name             Description
private_key   A private key which is used to validate your authenticity, this key will be sent to your mail once you register to Coralogix and should not be transferred outside your company
app_name The name of your main application, for example, a company named “SuperData” would  probably insert the “SuperData” string parameter or if they want to debug their test  environment they might insert the “SuperData– Test”
sub_name Your application probably has multiple subsystems, for example, Backend servers,  Middleware, Frontend servers etc. in order to help you examine the data you need,  inserting the subsystem parameter is vital

1. Create an “author from scratch” Node.js 8.10 runtime lambda with an S3 read permissions 

logs from S3 to Coralogix

2. At “Code entry type” choose “Upload a ZIP file” and upload “s3ToCoralogix.zip”

https://coralogixstorage.blob.core.windows.net/files/s3ToCoralogix.zip

coralogix S3 logs

3. Add the mandatory environment variables: private_key, app_name, sub_name

4. Choose the S3 bucket you want to get triggered by

6. Multiline pattern: Coralogix supports multiline pattern by default, you can define a custom pattern with an environment variables, for example: newline_pattern [\s(?={)|(?<=})\s,\s(?={)|(?<=})\s\]. 

custom multiline in S3

5. Click ‘Save’

Your all set! data would be streaming to Coralogix, need help? ping us on our in-app chat for tech support. 

Signup to Coralogix

WordPress Lightbox