You must be logged in to view saved presets
Creates a CloudWatch Log Metric Filter and a Log Group to count access events in a specified log file.
resource "aws_cloudwatch_log_group" "dada" {
name = "MyApp/access.log"
}
resource "aws_cloudwatch_log_metric_filter" "yada" {
log_group_name = aws_cloudwatch_log_group.dada.name
metric_transformation {
name = "EventCount"
namespace = "YourNamespace"
value = "1"
}
name = "MyAppAccessCount"
}