# Multiple DT\_CLUSTER\_ID variable for several apache processes in one machine

**URL:** <https://community.dynatrace.com/t/multiple-dt-cluster-id-variable-for-several-apache-processes-in-one-machine/19310>\
**Category:** Open Q&A\
**Tags:** process-groups\
**Created:** [May 13, 2020, 10:44am UTC](https://community.dynatrace.com/t/multiple-dt-cluster-id-variable-for-several-apache-processes-in-one-machine/19310 "2020-05-13T10:44:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jcamps](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jcamps/32/6791_2.png) [@jcamps](https://community.dynatrace.com/u/jcamps)\
**Post date:** [May 13, 2020, 10:44am UTC](https://community.dynatrace.com/t/multiple-dt-cluster-id-variable-for-several-apache-processes-in-one-machine/19310/1 "2020-05-13T10:44:18Z")

</div>

Hi all,

I’ve multiple Apache instances in a single machine and, in order to create a process group for every instance we want to assign the DT\_CLUSTER\_ID, DT\_NODE\_ID and DT\_CUSRTOM\_PROP environment variables.

My doubt here is, if we put the instruction _ **export DT\_CLUSTER\_ID=name** _ in every script that runs every apache, with a different name for each instance, the value of DT\_CLUSTER\_ID is overwritten? Or every apache has its own DT\_CLUSTER\_ID environment variable?

Regards, Josep Maria

---

<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 13, 2020, 12:10pm UTC](https://community.dynatrace.com/t/multiple-dt-cluster-id-variable-for-several-apache-processes-in-one-machine/19310/2 "2020-05-13T12:10:21Z")

</div>

I’m not sure if you are using standard apache startup scripts or not. If you are using standard ones, there is even a place for that and that file is called envvars. You will just have to put correct DT\_CLUSTER\_ID for each instance. Something like this:

```auto
export DT_CLUSTER_ID="apache1"

```

In general - you must ensure the process will have the environment variable set. This applies if you are using custom startup scripts.

Another way would be to use the process group detection rules or process group naming rules - depending on if the processes are “glued” together or you just want to rename them to a name you need.
