logspout-cloudwatch
logspout-cloudwatch copied to clipboard
Question: Same stream name for multiple containers?
First off, thank you for this, it's the only cw logspout that does everything I need.
Wanted to ask a quick question. Is it ok if multiple containers have the same stream name? On some other libraries they say not to because of performance issues. Just wanted to check if others are sending multiple logs to the same stream.
I haven't looked at this library in depth, but I can tell you that CWL itself advises against multiple producers for a single stream. The CWL API requires a token to be round-tripped in each request, so two uncooperating producers would (1) try to send (2) perhaps fail because of token mismatch, (3) look up the correct token, (4) try again. A constant race condition.