parthu
April 5, 2016, 2:36pm
1
I could install the input JMS Plugin for Logstash and started it up on the command line using this config:
bin/logstash -e 'input {jms {destination => output_queue} } output {stdout {codec => rubydebug}}'
And I get this error:
Can you help me come up with a good config file?
warkolm
(Mark Walkom)
April 5, 2016, 10:28pm
2
Please don't post pictures of text, it's really hard to read.
What does your config look like?
parthu
April 7, 2016, 5:24pm
3
Config is this:
input {
jms {
destination => output_queue
}
}
output {
stdout {
codec => rubydebug
}
}'
Are there any more parameters that I need to give? Right now, I get this error:
JMS Consumer Died {:exception =>#<TypeError can't dup NilClass>, ...
warkolm
(Mark Walkom)
April 7, 2016, 10:00pm
4
Is there more to that error?
parthu
April 8, 2016, 2:15pm
5
That is all. Do I need to write any YAML file or anything like that to get it to work? OR is the configuration file I wrote correct? The complete error I got is this:
JMS Consumer died {:exception=>#<TypeError: can't dup NilClass>, :backtrace=>["org/jruby/RubyKernel.java:2029:in dup'", "/upapps/agl/gc/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:154:in
initialize'", "/upapps/agl/gc/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:50:in start'", "/upapps/agl/gc/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/jruby-jms-1.2.0-java/lib/jms/connection.rb:70:in
session'", "/upapps/agl/gc/logstash-2.2.2/vendor/local_gems/fca5bdc2/logstash-input-jms-2.0.1-java/lib/logstash/inputs/jms.rb:183:in run_consumer'", "/upapps/agl/gc/logstash-2.2.2/vendor/local_gems/fca5bdc2/logstash-input-jms-2.0.1-java/lib/logstash/inputs/jms.rb:261:in
run'", "/upapps/agl/gc/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.2-java/lib/logstash/pipeline.rb:331:in inputworker'", "/upapps/agl/gc/logstash-2.2.2/vendor/bundle/jruby/1.9/gems/logstash-core-2.2.2-java/lib/logstash/pipeline.rb:325:in
start_input'"], :level=>:warn}