The following tutorial demonstrates how to collect your AWS load balancer (ELB, ALB, NLB) logs – decrypted and with their original timestamp – and send them to Coralogix. Installation free, the process entails simply deploying a Lambda.
AWS Load Balancer logs are written by AWS to S3, in order to ship them into Coralogix and enjoy our queries, alerts, visualizations, and ML capabilities, you should read the log data bucket using our proprietary Lambda.
Variable | Description |
Application Name | The stack name of this application created via AWS CloudFormation. If your log is JSON format, can use a Dynamic value from it. Example: $.level1.level2.value |
NotificationEmail | Failure notification email address (optional) |
S3BucketName | The name of the S3 bucket to watch |
ApplicationName | Application Name in Coralogix |
BlockingPattern | If you wish to block some of the logs adding a substring will act as selector. Default is empty to send all logs |
BufferSize | Buffer size for logs in the lambda function |
CoralogixRegion | The Coralogix location region [Europe, India, Singapore, US] Check your Coralogix account if url ends in .us its US. Region. Same for the others. |
Debug | Coralogix logger debug mode |
FunctionArchitecture | Our Function supports x86_64 or arm64 |
FunctionMemorySize | Max Memory for the function itself |
FunctionTimeout | Function TimeOut |
NewlinePattern | Pattern for multiLine example: [\s(?={)|(?<=})\s,\s(?={)|(?<=})\s] |
PrivateKey | Your Coralogix account ‘send your logs’ key. Can be found in DataFlow -> API Key |
SamplingRate | Sets the sampling rate |
SubsystemName | SubSystem name in Coralogix. If your log is JSON format, can use a Dynamic value from it. Example: $.level1.level2.value |
S3KeyPrefix | The S3 path prefix to watch, if you want to watch a particular subfolder within the bucket. |
S3KeySuffix | The S3 path suffix to watch |
You’re all set! Your AWS load balancer log data should now be streaming to Coralogix.
Please take a look at our “How to get the most out of your ELB logs” to learn more about ELB logs in general, how to parse them into JSON and find examples of useful visualizations and alerts that are based on these logs..
Need help? ping us on our in-app chat for our world-class tech support or send an email to [email protected]