# Changing Statistic in metricbeat

**URL:** <https://discuss.elastic.co/t/changing-statistic-in-metricbeat/261918>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [January 22, 2021, 1:24pm UTC](https://discuss.elastic.co/t/changing-statistic-in-metricbeat/261918 "2021-01-22T13:24:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rudraram](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rudraram](https://discuss.elastic.co/u/rudraram)\
**Post date:** [January 22, 2021, 1:24pm UTC](https://discuss.elastic.co/t/changing-statistic-in-metricbeat/261918/1 "2021-01-22T13:24:57Z")

</div>

Hello folks, I am trying to use metricbeat - lambda metricset to import Lambda metrics to ELK. Unfortunately all the metrics are 'averaged' while i need support for 'Sum' for few metrics

I tried to add following to the aws.yml which works fine but metrics not listed here are no more ingested. if i tried to add MORE THAN 3 metrics result in error (mostly a BUG)

```auto
- module: aws
  period: 2m
  metricsets:
    - lambda
  metrics:
      - name: "ConcurrentExecutions"
        statistic: "Sum"
      - name: "Duration"
        statistic: "Average"
      - name: "Throttles"
        statistic: "Sum"
  access_key_id: "ACCESSKEYID"
  secret_access_key: "SeCReTAACCeSSKEYIDISSECRET"
  regions: ["us-east-1", "us-west-2"]

##Output from CLI
2021-01-22T07:24:13.753-0600	INFO	instance/beat.go:456	metricbeat stopped.
2021-01-22T07:24:13.753-0600	ERROR	instance/beat.go:951	Exiting: 1 error: error unpack raw module config using UnpackConfig: string value is not set accessing 'metrics.3.namespace' (source:'/root/elastic/metricbeat-7.9.3-linux-x86_64/modules.d/aws.yml')
Exiting: 1 error: error unpack raw module config using UnpackConfig: string value is not set accessing 'metrics.3.namespace' (source:'/root/elastic/metricbeat-7.9.3-linux-x86_64/modules.d/aws.yml')

```

---

<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:** [February 19, 2021, 3:24pm UTC](https://discuss.elastic.co/t/changing-statistic-in-metricbeat/261918/2 "2021-02-19T15:24:59Z")

</div>

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