Using Multiple XMPP sections in Output section fails

Description

In the OUTPUT section, I was looking to do the following.

if [something] {
XMPP {
user1 info
}
}
else {
XMPP {
user2 info
}
}

The above fails looking in the logstash log.

If I remove the XMPP user2 section, user1 works fine.
If I remove the XMPP user1 section, user2 works fine. So, I know it is not
a user authentication issue.

I also decided to try this
if [something] {
XMPP {
user1
}

XMPP {
user2
}
}

and the above fails with the same error.

Exception in thread "LogStash::Runner" org.jruby.exceptions.RaiseException: (EHOSTUNREACH) No route to host - SocketChannel.connect

at org.jruby.ext.socket.RubyTCPSocket.initialize(org/jruby/ext/socket/RubyTCPSocket.java:123)

at org.jruby.RubyIO.new(org/jruby/RubyIO.java:852)

at RUBY.connect(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/xmpp4r/connection.rb:66)

at RUBY.connect(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/xmpp4r/client.rb:70)

at RUBY.connect(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/logstash/outputs/xmpp.rb:56)

at RUBY.register(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/logstash/outputs/xmpp.rb:36)

at org.jruby.RubyArray.each(org/jruby/RubyArray.java:1613)

at RUBY.outputworker(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/logstash/pipeline.rb:213)

at RUBY.start_outputs(file:/usr/local/logstash-1.3.2/logstash-1.3.2-flatjar.jar!/logstash/pipeline.rb:145)

Assignee

Logstash Developers

Reporter

Bruce Danziger

Labels

Affects versions

Configure