# Refresh tags from environment variables

**URL:** <https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304>\
**Category:** Open Q&A\
**Tags:** dynatrace-managed, oneagent, processes\
**Created:** [December 4, 2025, 8:20pm UTC](https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304 "2025-12-04T20:20:07Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![markusb](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@markusb](https://community.dynatrace.com/u/markusb)\
**Post date:** [December 4, 2025, 8:20pm UTC](https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304/1 "2025-12-04T20:20:07Z")

</div>

I set a couple of tags from environment variables.

These tags can change when the process is restarted. But Dynatrace still displays the old setting. How can I tell Dynatrace to refresh the tags to what the environment variables say.

For example I have

DT\_RELEASE\_VERSION=v10.4.0-b02

in my environment.

After updating the software the variable is set to

DT\_RELEASE\_VERSION=v10.5.0-b01

but in Dynatrace I still see the old value ‘v10.4.0-b02’.

How can I tell Dynatrace to refresh the tags bases on the environment variables of the running process?

---

<div class="post-metadata">

**Author:** ![AntonPineiro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antonpineiro/32/49_2.png) [@AntonPineiro](https://community.dynatrace.com/u/AntonPineiro)\
**Post date:** [December 5, 2025, 7:34am UTC](https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304/2 "2025-12-05T07:34:54Z")

</div>

Hi,

You can try to ingest metadata using oneagenctl + autotagging rule.

Best regards

---

<div class="post-metadata">

**Author:** ![m3tomlins](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/m3tomlins/32/15924_2.png) [@m3tomlins](https://community.dynatrace.com/u/m3tomlins)\
**Post date:** [December 5, 2025, 5:46pm UTC](https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304/3 "2025-12-05T17:46:53Z")

</div>

One of our experiences is that tag value updates are delayed with the auto-tagging propagation, for complex rules. If you have tags that are applied to other layers in the “stack” (e.g. apply to services, or underlying hosts, etc). In some cases it could take hours for a tag to be propagated to the new value. We ended up scoping our auto-tagging rules to limit propagation and keep tags from being applied unneccesarily to other entities.

One other thought I had: perhaps your process restart isn’t refreshing the session hosting the process?..thus the environment variables would not be dropped and re-set on a new underlying session?

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [December 8, 2025, 10:29pm UTC](https://community.dynatrace.com/t/refresh-tags-from-environment-variables/54304/4 "2025-12-08T22:29:29Z")

</div>

Dynatrace reads environment variables (like DT\_RELEASE\_VERSION) only at process start when OneAgent injects its hooks. If you change the variable and restart the process, Dynatrace should pick up the new value — but if the process group detection or tagging logic is cached, the old tag can persist until the agent re-evaluates.

Restart the monitored process. If restart didn’t help, restart the OneAgent service on the host. This clears cached metadata.
