Metric filters could be used to extract logs from CloudWatch log group and create custom metrics. It is all great, except that it's not possible to create metrics with dimension.
Put custom metrics with multiple dimensions
metrics|namespace|metric_name|value|unit|dimensions
Valid units and values are as defined in AWS API Reference. Values shall be available as const in aws sdk.