![]() ![]() ![]() Step 5 (Optional): Receive logs during AWS Lambda execution time Īll the logs that are not sent to Sumo Logic during the Execution phase of the AWS Lambda, are sent during the shutdown phase instead. The platform.report and platform.end events are sent in next execution. Since AWS Lambda continues to send logs to CloudWatch Logs even if extensions subscribe to the logs stream, you can disable logging to CloudWatch Logs for your function as described in the documentation. Step 4 (Optional): Disable logging to CloudWatch logs Logs from the Sumo Logic Lambda extension are stored and compressed in the following prefix path sumologic-extension/////////.gz If you have enabled failover, do the following:Īdd the following inline policy to the IAM role associated with your lambda function. Once you have set your parameters, execute your AWS Lambda function, and validate that the logs are coming into Sumo Logic. You can however override it with this parameter The Source Category for all incoming data is set to that of the HTTP endpoint by default. Log level, which can be one of info, error, or debug. The Region where the above AWS S3 bucket is located.Ī Number of retries to send logs to Sumo Logic. In the case of throttling or, exceptions the default value assumed is False. Set to True to failover in case you would like the extension to send logs to an AWS S3 bucket. By default, all of these three values are assumed. Please provide a comma-separated list of values that are one or more "platform", "function" or "extension" to indicate which AWS Lambda logs you want to send to Sumo Logic. ![]() This is the URL of the Sumo Logic HTTP source created in Step 1. Step 3: Adding the Environment variables Īdd the following environment variables to your Lambda function: Variable Name Do not change the directory structure as it is required by AWS Lambda to identify all the external extensions. The command will extract the Sumo Logic Lambda extension binary file into the folder structure as /opt/extensions. In the AWS Management Console, navigate to the definition of your Lambda function, Select Layers and click Add a Layer.įor x86_64 architecture, enter the following ARN: To add the Sumo Logic Lambda Extension to your AWS Lambda function, please follow the steps below: AWS Lambda functions created using Container ImagesĪWS Lambda functions created using zip files, blueprint, serverless applications įor AWS Lambda functions created using Zip files, blueprint or serverless applications:.AWS Lambda functions created using Zip files, blueprint or serverless applications.The Sumo Logic Lambda Extension can be added to your AWS Lambda function that is created through all supported methods. Step 2: Adding the Sumo Logic Lambda Extension to your AWS Lambda function Create a new HTTP Log Source in the hosted collector created above by following these instructions. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |