# Sum last 10 minutes of data

**URL:** <https://community.influxdata.com/t/sum-last-10-minutes-of-data/18453>\
**Category:** Systems\
**Created:** [February 19, 2021, 5:45pm UTC](https://community.influxdata.com/t/sum-last-10-minutes-of-data/18453 "2021-02-19T17:45:37Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![borpin](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/borpin/32/5257_2.png) [@borpin](https://community.influxdata.com/u/borpin)\
**Post date:** [February 22, 2021, 6:04am UTC](https://community.influxdata.com/t/sum-last-10-minutes-of-data/18453/8 "2021-02-22T06:04:38Z")

</div>

> [@Giovanni\_Luisotto](#):
>
> You can do a lot of stuff with telegraf,

Yes I am gradually finding that 😀

I have raised a separate question about the structure of my MQTT data as I think if I did this as my data is currently structured, it would add this tag to all my MQTT data which I do not want - just the specific topic. [Collecting metrics via mqtt\_consumer](https://community.influxdata.com/t/collecting-metrics-via-mqtt-consumer/18490)

Leaving that question aside for the minute, if I want to add tags Day, Month, Year - do I need to create 3 separate processors?

```auto
[[processors.date]]
  ## New tag to create
  tag_key = "month"
  date_format = "Jan"

[[processors.date]]
  ## New tag to create
  tag_key = "day"
  date_format = "2"

[[processors.date]]
  ## New tag to create
  tag_key = "year"
  date_format = "2006"

```

---

_[View the full topic](https://community.influxdata.com/t/sum-last-10-minutes-of-data/18453)._
