Skip to content
This repository has been archived by the owner on May 29, 2023. It is now read-only.

Start streaming cloudwatch logs with a valid, recent timestamp #1

Merged
merged 1 commit into from
May 13, 2021

Conversation

lwc
Copy link
Member

@lwc lwc commented May 13, 2021

The issue we've been seeing with ecs-run-task is due to a change in the cloudwatch logs API.

It now appears to fail if a FilterLogEventsPages is provided a zero StartTime. Previously this would work fine, but now it seems to fail silently without returning events.

The fix here is to simply provide the time from prior to creating the event stream, which is close enough to kick things off.

@lwc
Copy link
Member Author

lwc commented May 13, 2021

Credit to @lachlan-bird for figuring this out!

@lwc lwc merged commit b98a4f6 into master May 13, 2021
@lwc lwc deleted the stream-logs-from-now branch May 13, 2021 05:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant