# Can we have multiple destinations in one jms plugin in logstash cofiguration?

**URL:** <https://discuss.elastic.co/t/can-we-have-multiple-destinations-in-one-jms-plugin-in-logstash-cofiguration/334910>\
**Category:** Logstash\
**Created:** [June 1, 2023, 7:06am UTC](https://discuss.elastic.co/t/can-we-have-multiple-destinations-in-one-jms-plugin-in-logstash-cofiguration/334910 "2023-06-01T07:06:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pranjal\_Sett](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pranjal_sett/32/98834_2.png) [@Pranjal\_Sett](https://discuss.elastic.co/u/Pranjal_Sett)\
**Post date:** [June 1, 2023, 7:06am UTC](https://discuss.elastic.co/t/can-we-have-multiple-destinations-in-one-jms-plugin-in-logstash-cofiguration/334910/1 "2023-06-01T07:06:24Z")

</div>

So my requirement is want to insert multiple destination name in one JMS plugin. Writing multiple JMS input plugin for more than 1 destination is bit hectic.

So, how can we achieve this with one single jms input plugin.

as destination is accept only string filed. I was trying to insert like below:

[2023-05-31T14:00:21,882][ERROR][logstash.inputs.jms] Invalid setting for jms input plugin:

input {  
jms {  
# This setting must be a string  
# Expected string, got ["abc.xyz", "mnc.det"]  
destination =\> ["abc.xyz", "mnc.det"]  
...  
}  
}

I understand it will not run.

But is there any way to achieve this solution.

Thanks & Regards,  
Pranjal

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 1, 2023, 6:02pm UTC](https://discuss.elastic.co/t/can-we-have-multiple-destinations-in-one-jms-plugin-in-logstash-cofiguration/334910/2 "2023-06-01T18:02:47Z")

</div>

> [@Pranjal\_Sett](#):
>
> So my requirement is want to insert multiple destination name in one JMS plugin.

That is not possible. You will have to use multiple plugins.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 29, 2023, 6:03pm UTC](https://discuss.elastic.co/t/can-we-have-multiple-destinations-in-one-jms-plugin-in-logstash-cofiguration/334910/3 "2023-06-29T18:03:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
