If you don't have large amounts of log data, you may simply continue sending all data and filter it directly in CloudWatchs, for example via Logs Insights. This has the advantage that you don't lose any of your log data (such as Info or Debug messages) and still can query for relevant information at a later point, for example for troubleshooting.
If you want to filter data at the source, you should look at alternative log drivers, for example Firelens. Firelens can also send logs to CloudWatch, but supports more advanced features such as using regular expressions.
how to push only error and warning logs to cloudwatchasked 2 months ago
Is there a way to download the full log file from AWS Cloudwatch Log groups?asked 10 months ago
Pinpoint Push Message ErrorAccepted Answerasked 8 months ago
How to stream CloudFront real time logs to cloudwatchasked 8 months ago
Cloudwatch count and graph ERROR count in cloudwatch - only getting '1'Accepted Answerasked 3 months ago
Greengrass LogManager not pushing logs to cloudwatchasked 7 months ago
CloudWatch error : An error occurred while describing log groups : Rate exceededasked 2 months ago
How to give a user access only to a specific group of cloudwatch logsasked 6 months ago
Push logs to S3asked a year ago
How to push metrics in cloudwatch to opensearchAccepted Answerasked 2 months ago