Skip to content

Sumo extension ship logs to HTTP endpoint only after receiving SHUTDOWN api #3

@Seiji-U

Description

@Seiji-U

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

  1. Create a lambda function with Sumologic extension.
  2. Set environment variables
  3. Invoke the function every minutes.
  4. Check nothing appears under the source category.
  5. Stop invocation and wait 7 minutes.
  6. SHUTDOWN event is sent to the extension.
  7. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions