# Aggregate more than one metric with Metrics filter plugin

**URL:** https://discuss.elastic.co/t/aggregate-more-than-one-metric-with-metrics-filter-plugin/98283
**Category:** Logstash
**Created:** [August 24, 2017, 7:22pm UTC](https://discuss.elastic.co/t/aggregate-more-than-one-metric-with-metrics-filter-plugin/98283 "2017-08-24T19:22:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![keithn](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@keithn](https://discuss.elastic.co/u/keithn)
#### Post date: [August 24, 2017, 7:22pm UTC](https://discuss.elastic.co/t/aggregate-more-than-one-metric-with-metrics-filter-plugin/98283/1 "2017-08-24T19:22:15Z")

</div>

I'm using Metricbeat to ship system metrics (CPU, Memory) to Logstash. Is it possible to configure the Logstash Metrics filter plugin to aggregate more than one metric at a time?

I want to get the min, max and mean for CPU and Memory metrics. Thanks.

For example,

```
"host1" => {
  "cpu" => {
    "p1" => 0.0,
    "rate_1m" => 5.2151785020849415,
    "rate_15m" => 11.351513626881186,
    "max" => 0.01,
    "p5" => 0.0,
    "p90" => 0.0,
    "count" => 60,
    "rate_5m" => 10.157780698687366,
    "p95" => 0.009499999999999958,
    "p10" => 0.0,
    "p99" => 0.01,
    "p100" => 0.01,
    "min" => 0.0,
    "mean" => 0.0005,
    "stddev" => 0.04688114521330327
  },
  "memory" => {
    "p1" => 0.0,
    "rate_1m" => 5.2151785020849415,
    "rate_15m" => 11.351513626881186,
    "max" => 0.01,
    "p5" => 0.0,
    "p90" => 0.0,
    "count" => 60,
    "rate_5m" => 10.157780698687366,
    "p95" => 0.009499999999999958,
    "p10" => 0.0,
    "p99" => 0.01,
    "p100" => 0.01,
    "min" => 0.0,
    "mean" => 0.0005,
    "stddev" => 0.04688114521330327
  }
}
```

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [September 21, 2017, 7:22pm UTC](https://discuss.elastic.co/t/aggregate-more-than-one-metric-with-metrics-filter-plugin/98283/2 "2017-09-21T19:22:17Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
