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
Describe the bug
I have the following filter expression which works perfectly fine in the AWS Console {$.service="service-name"}.
Works using aws logs filter-log-events --filter-pattern '{$.service="service-name"}' --log-group-name "log-group-name".
But I cannot get it to work using cw.
Closest I got it to "working" is cw tail "log-group-name" -g="\"{$.service="service-name"}\"" as that at least doesn't crash but it still result in no events.
To Reproduce cw tail "log-group-name" -g="\"{$.service="service-name"}\""
Expected behavior
It should be possible to provide cw with the same filter expression as in cloudwatch console. I suspect this is just a matter on how to properly pass it to the sdk but none of the docs state how to achieve it.
Desktop (please complete the following information):
OS: MacOs 14.2
Terminal zsh
cw version 4.1.3
The text was updated successfully, but these errors were encountered:
Describe the bug
I have the following filter expression which works perfectly fine in the AWS Console
{$.service="service-name"}
.Works using
aws logs filter-log-events --filter-pattern '{$.service="service-name"}' --log-group-name "log-group-name"
.But I cannot get it to work using cw.
Closest I got it to "working" is
cw tail "log-group-name" -g="\"{$.service="service-name"}\""
as that at least doesn't crash but it still result in no events.To Reproduce
cw tail "log-group-name" -g="\"{$.service="service-name"}\""
Expected behavior
It should be possible to provide cw with the same filter expression as in cloudwatch console. I suspect this is just a matter on how to properly pass it to the sdk but none of the docs state how to achieve it.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: