Metric filter based on more than one variable

Hello Everyone,

Is there a way to create a metric events based on more than one field, e.g. status code AND hostname?

I have tried adding a field with dynamic value, but apparently dynamic variables resolution is broken in add_field in metrics filter and the value is added as string, without substituting %{host}.

I could create metric like
meter => [ "code_%{code}_host_%{host}" ]
but I won't be able to parse it later in Kibana.

I could hardcode hostnames into metrics config and add several meters with hardcoded static fields, but that's wrong on so many levels.

Is there any other way I haven't thought of?

Thanks, regards,

Bartek