Open justin8 opened 1 year ago
My understanding is that the log streams you provide are actually regular expressions. Most of the time is doesn't matter, as one very rarely uses regular expression symbols as log stream names ([]()*.
etc).
In your case it does matter though, but it's easily fixed by escaping your log stream name just as you would a regular expression:
awslogs get my/log/stream "2023/06/01/\[$LATEST\]37fc8397fa59492cab1e6de1ad5d3e1f"
When calling
awslogs get
with a log stream that contains square brackets ([
]
) I get the following error:Repro steps:
awslogs get my/log/stream "2023/06/01/[$LATEST]37fc8397fa59492cab1e6de1ad5d3e1f"