-
Notifications
You must be signed in to change notification settings - Fork 82
Description
Feature scope
LogMonitoring
Describe your suggested feature
As a DevOps Engineer,
I want to create CloudWatch Dashboard Widgets that can monitor CloudWatch logs for discovered JSON fields,
So that I can filter CloudWatch logs as "level": "ERROR"
for Lambda functions that use AWS Powertools for Lambda
As a DevOps Engineer,
I want to create CloudWatch Dashboard Widgets that can filter discovered JSON fields by equals
, or not equals
, or like
, or not like
operator,
So that I can perform advanced queries on CloudWatch Dashboard Widgets
As a DevOps Engineer,
I want to create CloudWatch Dashboard Widgets that can filter discovered JSON fields by in
, or not in
operator,
So that I can perform advanced queries on CloudWatch Dashboard Widgets
Currently, LogMonitoring.logMonitor
supports only pattern
that does filter @message like /pattern/
which is not ideal for JSON logs. Thanks to AWS Powertools for Lambda, JSON logs are becoming widely used and this feature will help logMonitor
to be more performable and sustainable.
This issue suggests a new prop
that expects operator
as string
and value
as Record<string, string | string[]>
that will enable more specific log queries.