# Aggregator basicstats filtering is not working

**URL:** https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690
**Category:** Telegraf
**Created:** [January 16, 2018, 6:50am UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690 "2018-01-16T06:50:21Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ashinde](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@ashinde](https://community.influxdata.com/u/ashinde)
#### Post date: [January 16, 2018, 6:50am UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/1 "2018-01-16T06:50:21Z")

</div>

Hi All,

Configurable Aggregator Basicstats seems to be already available as per the below links, but somehow didn’t work for me for Telegraf v1.5.0 (git: release-1.5 a1668bbf)

> <https://github.com/influxdata/telegraf/tree/master/plugins/aggregators/basicstats>
>
> //github.com/influxdata/telegraf/tree/master/plugins/aggregators/basicstats

> <https://github.com/influxdata/telegraf/pull/3580>
>
> Basic implementation of configuring which stats are pushed from basicstats aggre…gator (https://github.com/influxdata/telegraf/issues/3413)
> 
> \### Required for all PRs:
> 
> \- \[X\] Signed \[CLA\](https://influxdata.com/community/cla/).
> \- \[X\] Associated README.md updated.
> \- \[X\] Has appropriate unit tests.

Also a new version of Telegraf released last week . But is not working with the new version as well.

> [@Telegraf v1.5.1](https://community.influxdata.com/t/telegraf-v1-5-1/3670):
>
> I am pleased to announce the release of Telegraf [1.5.1](https://github.com/influxdata/telegraf/releases/tag/1.5.1). This is a support release and contains the following bug fixes: [#3624](https://github.com/influxdata/telegraf/pull/3624): Fix name error in jolokia2\_agent sample config. [#3625](https://github.com/influxdata/telegraf/pull/3625): Fix DC/OS login expiration time. [#3593](https://github.com/influxdata/telegraf/pull/3593): Set Content-Type charset in influxdb output and allow it be overridden. [#3594](https://github.com/influxdata/telegraf/pull/3594): Document permissions setup for postfix input. [#3633](https://github.com/influxdata/telegraf/pull/3633): Fix deliver\_get field in rabbitmq input. [#3607](https://github.com/influxdata/telegraf/issues/3607): Escape environment variables during config toml parsing. Official packages are available…

Any ideas why this might be happening?

getting this error -

> telegraf -config telegraf.conf  
> 2018/01/16 12:05:18 E! Error parsing telegraf.conf, line 153: field corresponding to `stats' is not defined in `\*basicstats.BasicStats’

And here is configuration for telegraf.conf -

[[aggregators.basicstats]]  
period = “30s”  
drop\_original = true  
stats = [“count”,“min”,“max”,“mean”]

---

<div class="post-metadata">

### Author: ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)
#### Post date: [January 16, 2018, 6:59pm UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/2 "2018-01-16T18:59:37Z")

</div>

The `stats` option is not yet available in 1.5, so you will have to comment that line out until 1.6 is released.

---

<div class="post-metadata">

### Author: ![ashinde](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@ashinde](https://community.influxdata.com/u/ashinde)
#### Post date: [January 17, 2018, 4:08am UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/3 "2018-01-17T04:08:10Z")

</div>

Thanks for your reply !!

---

<div class="post-metadata">

### Author: ![ashinde](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@ashinde](https://community.influxdata.com/u/ashinde)
#### Post date: [January 17, 2018, 4:26am UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/4 "2018-01-17T04:26:19Z")

</div>

Any idea when is 1.6 planned for release?

---

<div class="post-metadata">

### Author: ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)
#### Post date: [January 17, 2018, 6:48am UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/5 "2018-01-17T06:48:51Z")

</div>

The target date is currently mid February. If you want to get the same functionality now you should be able to use fielddrop on the output plugin to remove the unwanted fields.

```auto
[[outputs.influxdb]]
  fielddrop=["*_stddev", "*_s2"]

```

---

<div class="post-metadata">

### Author: ![ashinde](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@ashinde](https://community.influxdata.com/u/ashinde)
#### Post date: [January 17, 2018, 1:03pm UTC](https://community.influxdata.com/t/aggregator-basicstats-filtering-is-not-working/3690/6 "2018-01-17T13:03:48Z")

</div>

@daniel Hey there! Many thanks for the quick responses and suggestion to get the same functionality !!
