Skip to content
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

Subscribe to Lambda Function Events; Receive & Forward Logs #1636

Open
tommyorndorff opened this issue Dec 23, 2024 · 0 comments
Open

Subscribe to Lambda Function Events; Receive & Forward Logs #1636

tommyorndorff opened this issue Dec 23, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@tommyorndorff
Copy link
Contributor

Is your feature request related to a problem? Please describe.
Several lambda extensions exist that on startup, subscribe to the lambda function & platform events, received by a http listener. This provides a language-agnostic way to capture the stdout logs from a lambda function and process them in any number of ways, including forwarding to downstream.

Describe the solution you'd like
On startup, subscribe to function and platform events (today, platform events only). When platform events are received, push those to a queue. Have that queue processed and forwarded to a http log service destination etc.

Describe alternatives you've considered
The only option I'm aware of is to use a language SDK to build a logger and the running lambda code must use that logger itself to make http calls. Using the lambda runtime APIs allows decoupling and is agnostic of the language used.

The only other language agnostic solution Im aware of is writing to Cloudwatch Logs then subscribing those log streams to something else (Kinesis or lambda function). I'm trying to avoid the unnecessary cost of Cloudwatch Logs ($0.50/GB for PutLogs)

Additional context
Examples:

@tommyorndorff tommyorndorff added the enhancement New feature or request label Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant