# How to DT\_CUSTOM\_PROP for Tomcat

**URL:** <https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, process-groups\
**Created:** [November 5, 2019, 8:50am UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487 "2019-11-05T08:50:36Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [November 5, 2019, 8:50am UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/1 "2019-11-05T08:50:36Z")

</div>

Hello based on this doc:

> **[Dynatrace Blog](https://www.dynatrace.com/news/blog/)**
>
> Stay updated on the latest news on observability, automation, AI, and app security. Look here for actionable insights for optimizing your digital ecosystem.

I cannot understand how/where to insert the DT\_CUSTOM\_PROP on Tomcat runninx on linux System.

Do someone have already done this? Can you guide me to do so?

Thank you

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [November 5, 2019, 9:25am UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/2 "2019-11-05T09:25:16Z")

</div>

If this is a standard tomcat and you are starting it with the catalina.sh startup script, just put it in the $CATALINA\_HOME/bin/setenv.sh script (or create it).

Don’t forget to export the variables, for example:

```auto
export DT_CLUSTER_ID=tomket1
export DT_NODE_ID=mynode1
export DT_CUSTOM_PROP=myprop=myvalue

```

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [November 7, 2019, 2:41pm UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/3 "2019-11-07T14:41:12Z")

</div>

Thank you this was the right solution for me, 9 points to gryffindor!

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [October 1, 2020, 11:56am UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/4 "2020-10-01T11:56:37Z")

</div>

[@Julius L.](https://answers.dynatrace.com/users/16467/view.html) hello! I’m back here 🙂

I was wondering, do you have any knowledge on where can I do this in Apache Web Server?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 1, 2020, 6:45pm UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/5 "2020-10-01T18:45:34Z")

</div>

Sure I do 🙂

However, it depends on your Apache Web Server distribution and how you start the apache process. Typically in Linux distributions, you will have to set it in the envvars file in your apache config directory or in the bin directory as they start it with the apachectl wrapper script.  
If you start it directly by running the binary httpd, then you will have to do it in your script.

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [May 4, 2021, 9:12am UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/6 "2021-05-04T09:12:15Z")

</div>

Hi Julius,

I’m investigating this for a vanilla installation of httpd Apache web server 🙂

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [May 4, 2021, 1:04pm UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/7 "2021-05-04T13:04:45Z")

</div>

As I wrote - it works even for vanilla installation. If you are starting it with apachectl, then you can put it into envvars file. If you are starting the httpd binary directly, then you will have to find a place where it fits you best.

---

<div class="post-metadata">

**Author:** ![Yann\_Buccellato](https://avatars.discourse-cdn.com/v4/letter/y/97f17d/32.png) [@Yann\_Buccellato](https://community.dynatrace.com/u/Yann_Buccellato)\
**Post date:** [May 4, 2021, 1:38pm UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/8 "2021-05-04T13:38:31Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![vinnu\_arige\_moe](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/vinnu_arige_moe/32/8903_2.png) [@vinnu\_arige\_moe](https://community.dynatrace.com/u/vinnu_arige_moe)\
**Post date:** [June 15, 2021, 3:56pm UTC](https://community.dynatrace.com/t/how-to-dt-custom-prop-for-tomcat/22487/9 "2021-06-15T15:56:56Z")

</div>

Do we know how to implement this&nbsp;DT\_CUSTOM\_PROP on container world. We have Vmware Tanzu cloud with springboot apps and wanted to know how to implement CT\_CUSTOM\_PROP on every service and process.

thanks

Vinnu
