-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
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
- Create a lambda function with Sumologic extension.
- Set environment variables
- Invoke the function every minutes.
- Check nothing appears under the source category.
- Stop invocation and wait 7 minutes.
- SHUTDOWN event is sent to the extension.
- Check the source category and see logs are there now.
Expected Behavior
I want the logs to be shipped in every invocation.
Relevant Logs / Console output
Cloudwatch records an error on each invocation
level=error msg="Not able to post statuscode: Post "https://collectors.au.sumologic.com/receiver/v1/http/ZaVnC4dxxxxxxxxxxx\": context deadline exceeded (Client.Timeout exceeded while awaiting headers) \n" Name=sumologic-extension
Your Environment
- Layer version:
- 1
- RunTime:
- Python 3.8
- Environment Variables
- SUMO_HTTP_ENDPOINT=my endpoint
- SUMO_LOG_TYPES=function
Metadata
Metadata
Assignees
Labels
No labels