AWS Cloudwatch log stream name not recognised
<p>So, </p>

<p>I'm using the automated logging from AWS Lambda. It generates log streams with names that look like this: <code>2016/05/18/[$LATEST]99577d10a8cb420cb124a90c20d5653a</code></p>

<p>I can query, using 'aws logs describe-log-streams', the available log streams and get some JSON containing these names alongside other meta data. </p>

<p>However if I then try to do this:</p>

<pre><code>aws logs get-log-events --log-group-name /aws/lambda/categorise --log-stream-name "2016/05/18/[$LATEST]99577d10a8cb420cb124a90c20d5653a"
</code></pre>

<p>I get an error </p>

<pre><code>A client error (ResourceNotFoundException) occurred when calling the GetLogEvents operation: The specified log stream does not exist.
</code></pre>

<p>So if the log stream name returned by the describe log streams command doesn't actually exist. What is it? </p>

<p>I've tried hacking around with the command a bit, removing the <code>[$LATEST]</code>, quoting it, escaping it. But no joy. Has anyone managed to retrieve their Lambda log events using the aws cli?</p>