You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a question on usage, or it may be an AWS API limitation or a bug in saw, I'm not sure. I hope you can give me some guidance.
Use-case
I'm running a serverless.com project, and I run saw against a log group set up against a lambda function like this:
saw watch /aws/lambda/my-function-name
Expected
When I invoke my lambda function, I expect to see the log output appear in saw for all invocations.
Actual
saw works beautifully when I invoke my lambda function so it only runs once at a time.
But when I invoke the same function multiple times in parallel (my test was to invoke the function 12 times), saw doesn't seem to detect all the log streams created in the log groups and it only returns the contents of one of the streams — the last one.
If I immediately run saw get /aws/lambda/my-function-name --start -5m then I can see all the logs mixed together as I'd expected to see in watch mode.
Extra info
Lambda creates one stream per invocation. I can invoke my lambda function using InvocationType: Event which runs each invocation asynchronously in parallel. My test runs 12 in parallel.
When I do this, I see all the 12 invocation logs in AWS Console, but saw only returns the contents for 1 of the invocations. It appears to be the last one I invoked.
The text was updated successfully, but these errors were encountered:
Hi,
This is a really cool tool — thanks.
This may be a question on usage, or it may be an AWS API limitation or a bug in
saw
, I'm not sure. I hope you can give me some guidance.Use-case
I'm running a serverless.com project, and I run
saw
against a log group set up against a lambda function like this:Expected
When I invoke my lambda function, I expect to see the log output appear in
saw
for all invocations.Actual
saw
works beautifully when I invoke my lambda function so it only runs once at a time.But when I invoke the same function multiple times in parallel (my test was to invoke the function 12 times),
saw
doesn't seem to detect all the log streams created in the log groups and it only returns the contents of one of the streams — the last one.If I immediately run
saw get /aws/lambda/my-function-name --start -5m
then I can see all the logs mixed together as I'd expected to see inwatch
mode.Extra info
Lambda creates one stream per invocation. I can invoke my lambda function using
InvocationType: Event
which runs each invocation asynchronously in parallel. My test runs 12 in parallel.When I do this, I see all the 12 invocation logs in AWS Console, but
saw
only returns the contents for 1 of the invocations. It appears to be the last one I invoked.The text was updated successfully, but these errors were encountered: