# Telegraf: Clone a tag key with different name to the same measurement

**URL:** <https://community.influxdata.com/t/telegraf-clone-a-tag-key-with-different-name-to-the-same-measurement/13844>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [April 14, 2020, 8:20am UTC](https://community.influxdata.com/t/telegraf-clone-a-tag-key-with-different-name-to-the-same-measurement/13844 "2020-04-14T08:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![genetzhs](https://avatars.discourse-cdn.com/v4/letter/g/e9a140/32.png) [@genetzhs](https://community.influxdata.com/u/genetzhs)\
**Post date:** [April 14, 2020, 8:20am UTC](https://community.influxdata.com/t/telegraf-clone-a-tag-key-with-different-name-to-the-same-measurement/13844/1 "2020-04-14T08:20:32Z")

</div>

Hello everyone,

I have a measurement called my\_measurements with tag keys ID, host, Plan and i want to clone the tag key ID to a new tag key Called clientID within the same measurement (my\_measurements). Is there a way to do it through telegraf?

---

<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:** [April 15, 2020, 6:11pm UTC](https://community.influxdata.com/t/telegraf-clone-a-tag-key-with-different-name-to-the-same-measurement/13844/2 "2020-04-15T18:11:51Z")

</div>

If you just want to rename the tag, you can use the `rename` processor. If you need both new and the old tag, you can use the `regex` processor since it doesn’t remove the old value.
