-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sumo extension ship logs to HTTP endpoint only after receiving SHUTDOWN api #3
Comments
@Seiji-U Can you please confirm what is the execution time of your lambda function? |
@SumoSourabh I tested at 24 Nov 2020 9:25AM AEDT |
@Seiji-U From the logs seems like the lambda only run for ~10ms. During this time the extension is not able to send logs to Sumologic and keeps on retrying during next invocation and either fails or timeout. We are looking into the same issue to send logs in case of lambda has a duration of less than 500ms (as extension duration is governed by the function run duration). Would it be possible for you to increase the lambda execution time to lets say 500ms and try the extension? |
@SumoSourabh I have a similar issue. |
For now, I would suggest to increase the execution time. We are working with AWS on a fix. Have kept the issue open till we push a fix. |
Hi, Thanks |
Does this AWS update fix the issue? https://aws.amazon.com/about-aws/whats-new/2021/05/aws-lambda-extensions-now-generally-available/ It mentions that the extensions run after the lambda runs. |
Hi All, We have updated the README.md on how to solve the above issue. There is no code fix made for the issue. As explained, if AWS lambda execution are short, it does not give enough time for extension to send logs to Sumo Logic and retries are done in the next invocation. All logs which are not sent during the invoke / execution phase, are sent in shutdown phase. Let us know if we can close the issue. |
Description
I have a lambda function with Sumologic extension layer and invoked every minutes.
The extension does not send any logs to HTTP endpoint while the same runtime is kept.
I stopped the invocation then SHUTDOWN event was sent to the extension after 7 minutes.
At that time the extension ships logs to the HTTP endpoint.
Steps to Reproduce
Expected Behavior
I want the logs to be shipped in every invocation.
Relevant Logs / Console output
Cloudwatch records an error on each invocation
Your Environment
The text was updated successfully, but these errors were encountered: