# Merge process groups

**URL:** <https://community.dynatrace.com/t/merge-process-groups/32865>\
**Category:** Open Q&A\
**Tags:** services-classic, process-groups\
**Created:** [October 1, 2021, 7:50am UTC](https://community.dynatrace.com/t/merge-process-groups/32865 "2021-10-01T07:50:55Z")\
**Posts on this page:** 6\
**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:** [October 1, 2021, 7:50am UTC](https://community.dynatrace.com/t/merge-process-groups/32865/1 "2021-10-01T07:50:55Z")

</div>

Hi all,

we’ve 2 weblogic servers with this configuration:

 ![jcamps_0-1633074421191.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bf3134af6884c5a333f555a2dcc949059d82fadf.png)

 ![jcamps_1-1633074430741.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/0/b0cb3b80587ad4769ed51bc45d1fb1ac01b90afe.png)

By default Dynatrace user the -Dweblogic.Name to separate the process groups, in this case creates 2 process groups:

- WebLogic weblogic\_domain srvowlcfpro01\_online

- WebLogic weblogic\_domain srvowlcfpro02\_online

and because of this, the services running into each process are duplicated.

How can I group the two processes into one process group in order to have only one service?

Maybe with a Process group detection rules? Witch property can I use to group the two processes:

 ![jcamps_2-1633074598515.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bc6cc4454660efa94f1f705d278d2d66b535c94f.png)

Regards, Josep Maria

---

<div class="post-metadata">

**Author:** ![pahofmann](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pahofmann/32/17076_2.png) [@pahofmann](https://community.dynatrace.com/u/pahofmann)\
**Post date:** [October 1, 2021, 8:19am UTC](https://community.dynatrace.com/t/merge-process-groups/32865/2 "2021-10-01T08:19:19Z")

</div>

You can use a Process Group Detection Rule, if there is a property that is the same for the processes that belong together. From the Screenshot it doesn’t look like there is a fitting _Java system property_, but you could use anything under shown on the process under&nbsp;_properties and tags_ with a rule based on a&nbsp;_process property._

If there is no meta data that works, you can also set the environment variable&nbsp; **DT\_CLUSTER\_ID** &nbsp;to the same value **for the processes**. Dynatrace detects that variable automatically and groups als processes that have the same value in it.

See the [yellow box in the documentation](https://www.dynatrace.com/support/help/shortlink/process-groups#process-group-detection-rules)&nbsp;for more information about the env variables.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [October 1, 2021, 9:15am UTC](https://community.dynatrace.com/t/merge-process-groups/32865/3 "2021-10-01T09:15:52Z")

</div>

Hi&nbsp;[@jcamps](https://community.dynatrace.com/user/16448),

We had similar issue with Oracle OSB and we managed to over come this service split by setting a rule with&nbsp;[Service Detection API](https://www.dynatrace.com/support/help/shortlink/api-config-services-detection-rules-post-rule-full-request)&nbsp;that merged the services right away.

Check this [thread](https://community.dynatrace.com/post/86314#M5240)&nbsp;for more details

HTH

Yos

---

<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:** [October 1, 2021, 12:05pm UTC](https://community.dynatrace.com/t/merge-process-groups/32865/4 "2021-10-01T12:05:42Z")

</div>

Hi [@Yosi\_Neuman](https://community.dynatrace.com/user/6931) ,

the problem is that the services doesn’t have the same Process Group and for this reason aren’t “mergeables”, right?

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:** [October 1, 2021, 12:28pm UTC](https://community.dynatrace.com/t/merge-process-groups/32865/5 "2021-10-01T12:28:16Z")

</div>

[@jcamps](https://community.dynatrace.com/user/16448)&nbsp; did you set some process group detection flags or rules?

From my experience the process group is named by the WebLogic domain and the weblogic.name is the node id within the process group.

You can also check the log from the OneAgent for the WebLogic process. It has information how Dynatrace identified the process group.

---

<div class="post-metadata">

**Author:** ![Yosi\_Neuman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yosi_neuman/32/9845_2.png) [@Yosi\_Neuman](https://community.dynatrace.com/u/Yosi_Neuman)\
**Post date:** [October 2, 2021, 8:39am UTC](https://community.dynatrace.com/t/merge-process-groups/32865/6 "2021-10-02T08:39:24Z")

</div>

Hi&nbsp;[@jcamps](https://community.dynatrace.com/user/16448)&nbsp;,

Yep, from UI the services are not mergeable, but with the rest API you can merge them, at least we&nbsp;succeed to do that for split OSB services.

HTH

Yos
