# Dynamic stream targets

**URL:** <https://community.wowza.com/t/dynamic-stream-targets/47057>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [May 20, 2016, 10:22am UTC](https://community.wowza.com/t/dynamic-stream-targets/47057 "2016-05-20T10:22:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Kou](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Andrew\_Kou](https://community.wowza.com/u/Andrew_Kou)\
**Post date:** [May 20, 2016, 10:22am UTC](https://community.wowza.com/t/dynamic-stream-targets/47057/1 "2016-05-20T10:22:20Z")

</div>

I have an incoming stream that goes to my app and stream (called myapp and mystream). I want to be able to send the incoming stream to a dynamically generated RTMP target.

How do I do that? Do I have to create a module or is there an existing module I can use to achieve that? The current stream targets needs to be preconfigured but I receive the RTMP target url on the fly.

Thanks!

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [May 23, 2016, 4:28pm UTC](https://community.wowza.com/t/dynamic-stream-targets/47057/2 "2016-05-23T16:28:32Z")

</div>

Hi,

In the recent releases of Wowza Streaming Engine the stream targets are loaded automatically once they appear in a map file. A simple way to do this dynamically is to add an entry to [install-dir]/conf/[app-name]/PushPublishMap.txt. This file gets polled frequently by the stream target sub-system and any new/deleted entries will be made active/removed. You can update this file manually/via scripting or use the [Stream Targets REST API](https://www.wowza.com/docs/stream-targets-query-examples-push-publishing%28push-publishing%29).

Paul

---

<div class="post-metadata">

**Author:** ![Andrew\_Kou](https://avatars.discourse-cdn.com/v4/letter/a/87869e/32.png) [@Andrew\_Kou](https://community.wowza.com/u/Andrew_Kou)\
**Post date:** [May 23, 2016, 3:21pm UTC](https://community.wowza.com/t/dynamic-stream-targets/47057/3 "2016-05-23T15:21:49Z")

</div>

Thank you I will try this out! Will be back with updates.

---

<div class="post-metadata">

**Author:** ![Jatinder\_Singh](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@Jatinder\_Singh](https://community.wowza.com/u/Jatinder_Singh)\
**Post date:** [January 18, 2018, 6:08pm UTC](https://community.wowza.com/t/dynamic-stream-targets/47057/4 "2018-01-18T18:08:24Z")

</div>

Please see this post to add stream targets

[trickntip.com/setup-wowza-stream-targets/](http://trickntip.com/setup-wowza-stream-targets/)
