Here is my command:
aws logs describe-metric-filters --log-group-name mahi | jq '.metricFilters[].metricTransformations' | grep "metricName"
output:
"metricName": "APIMetric",
"metricNamespace": "APINamespace",
From the above command i need only the metricName
where it is grepping both the words which starts with metricName
.