I'm trying to filter log events from AWS cloud watch logs using awscli. I use the following pattern in the cloudwatch web console.
[ip, user, username, timestamp, request, status_code != 2*, bytes]
What is the equivalent filter pattern I should use in awscli? I tried aws logs filter-log-events --log-group-name *** --log-stream-name *** --filter-pattern "[ip, user, username, timestamp, request, status_code != 2*, bytes]" but it didn't filter anything.