# Metricbeat module: collect metric only if there is a change

**URL:** <https://discuss.elastic.co/t/metricbeat-module-collect-metric-only-if-there-is-a-change/130608>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [May 4, 2018, 10:46am UTC](https://discuss.elastic.co/t/metricbeat-module-collect-metric-only-if-there-is-a-change/130608 "2018-05-04T10:46:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![annk](https://avatars.discourse-cdn.com/v4/letter/a/c68b51/32.png) [@annk](https://discuss.elastic.co/u/annk)\
**Post date:** [May 4, 2018, 10:46am UTC](https://discuss.elastic.co/t/metricbeat-module-collect-metric-only-if-there-is-a-change/130608/1 "2018-05-04T10:46:58Z")

</div>

Hi ,

I am new to beats , I was wondering if there are any options in metricbeat modules which I can turn on to collect metrics only if there is a change during the interval ?

are there any way I can avoid repetitions like these ..

```
          Time system.filesystem.device_name system.filesystem.available
    May 4th 2018, 11:41:06.503 /apps 72.243GB
May 4th 2018, 11:40:06.503 /apps 72.243GB
May 4th 2018, 11:39:06.503 /apps 72.243GB
May 4th 2018, 11:38:06.503 /apps 72.243GB
May 4th 2018, 11:37:06.503 /apps 72.243GB
May 4th 2018, 11:36:06.503 /apps 72.243GB
May 4th 2018, 11:35:06.503 /apps 72.243GB

```

(I got error when I tried to upload a screenshot of my discover tab)

Thanks  
Anu

---

<div class="post-metadata">

**Author:** ![andrewkroh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrewkroh/32/3784_2.png) [@andrewkroh](https://discuss.elastic.co/u/andrewkroh)\
**Post date:** [May 4, 2018, 1:37pm UTC](https://discuss.elastic.co/t/metricbeat-module-collect-metric-only-if-there-is-a-change/130608/2 "2018-05-04T13:37:20Z")

</div>

There's nothing like that in Beats. Generally Beats push raw data to an output destination and any follow-on processing or downsampling is done at the server.

I think you could accomplish what you asked in Logstash with an [aggregate filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-aggregate.html) that memorizes the previous value and if they are the same it calls `event.Cancel()`.

And in Elasticsearch + X-Pack 6.3 a new feature called [rollups](https://www.elastic.co/guide/en/elasticsearch/reference/6.3/rollup-job-config.html) is being introduced. This would allow you to create a rollup index that contains downsampled metrics leading to small storage requirements when retaining metrics for long periods.

---

<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:** [June 1, 2018, 1:37pm UTC](https://discuss.elastic.co/t/metricbeat-module-collect-metric-only-if-there-is-a-change/130608/3 "2018-06-01T13:37:25Z")

</div>

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