# Logstash x ActiveMQ

**URL:** <https://discuss.elastic.co/t/logstash-x-activemq/151455>\
**Category:** Logstash\
**Created:** [October 8, 2018, 1:05pm UTC](https://discuss.elastic.co/t/logstash-x-activemq/151455 "2018-10-08T13:05:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![denisgalvao](https://avatars.discourse-cdn.com/v4/letter/d/f4b2a3/32.png) [@denisgalvao](https://discuss.elastic.co/u/denisgalvao)\
**Post date:** [October 8, 2018, 1:05pm UTC](https://discuss.elastic.co/t/logstash-x-activemq/151455/1 "2018-10-08T13:05:34Z")

</div>

Hello.

Im trying to figure out how to set up logstash as an input for ActiveMQ. The documentation about it is not clear at all. Do I need to configure the MQ on logstash conf files(conf.d on Debian) only? Is there any other file that should be modified?

Here is my jms.conf:

input {  
jms {  
broker\_url = "tcp://172.16.0.232:61616"  
destination = "QUEUE"  
username = "admin"  
password = "admin"  
}  
}  
output {  
elasticsearch {  
hosts = ["localhost:9200"]  
index = "mensagens"  
}  
stdout {  
codec =\> rubydebug  
}  
file {  
path = "/var/log/logstash/jms.log"  
codec = line { format =\> " %{@timestamp} FILA WHATSAPP ActiveMQ: %{message}"}  
}  
}

## Do I need to change this file also? vendor/bundle/jruby/2.3.0/gems/logstash-input-jms-3.0.5-java/spec/inputs/jms.yml

# HornetQ Broker

hornetq:

# Connect to a local HornetQ Broker using JNDI

:jndi\_name: /ConnectionFactory  
:jndi\_context:  
java.naming.factory.initial: org.jnp.interfaces.NamingContextFactory  
java.naming.provider.url: jnp://localhost:1099  
java.naming.factory.url.pkgs: org.jboss.naming:org.jnp.interfaces  
java.naming.security.principal: guest  
java.naming.security.credentials: guest  
:require\_jars:  
- /Applications/hornetq-2.4.0.Final/lib/hornetq-commons.jar  
- /Applications/hornetq-2.4.0.Final/lib/hornetq-core-client.jar  
- /Applications/hornetq-2.4.0.Final/lib/hornetq-jms-client.jar  
- /Applications/hornetq-2.4.0.Final/lib/jboss-jms-api.jar  
- /Applications/hornetq-2.4.0.Final/lib/jnp-client.jar  
- /Applications/hornetq-2.4.0.Final/lib/netty.jar

---

<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:** [November 5, 2018, 1:05pm UTC](https://discuss.elastic.co/t/logstash-x-activemq/151455/2 "2018-11-05T13:05:34Z")

</div>

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