Logstash output to jms , qpid broker queue getting below error


(Jagatjyoti Mohanty) #1

:exception=>#<ArgumentError: wrong number of arguments (1 for 2)>, :backtrace=>["C:/logstash-5.4.1/vendor/bundle/jruby/1.9/gems/logstash-output-jms-3.0.1/lib/logstash/outputs/jms.rb:114:in receive'", "C:/logstash-5.4.1/logstash-core/lib/logstash/outputs/base.rb:92:inmulti_receive'", "org/jruby/RubyArray.java:1613:in each'", "C:/logstash-5.4.1/logstash-core/lib/logstash/outputs/base.rb:92:inmulti_receive'", "C:/logstash-5.4.1/logstash-core/lib/logstash/output_delegator_strategies/legacy.rb:22:in multi_receive'", "C:/logstash-5.4.1/logstash-core/lib/logstash/output_delegator.rb:47:inmulti_receive'", "C:/logstash-5.4.1/logstash-core/lib/logstash/pipeline.rb:407:in output_batch'", "org/jruby/RubyHash.java:1342:ineach'", "C:/logstash-5.4.1/logstash-core/lib/logstash/pipeline.rb:406:in output_batch'", "C:/logstash-5.4.1/logstash-core/lib/logstash/pipeline.rb:352:inworker_loop'", "C:/logstash-5.4.1/logstash-core/lib/logstash/pipeline.rb:317:in `start_workers'"]}

I am able to install the output plugin successfully by below command.
logstash-plugin install logstash-output-jms

Below Yml file also created and the configuration file.
jms-outout.yml:-
:jndi_name: output
:jndi_context:
java.naming.factory.initial: org.apache.qpid.jndi.PropertiesFileInitialContextFactory
connectionfactory.output: amqp://admin:admin@QPID/?brokerlist='tcp://localhost:10003'
:require_jars:
- C:\qpidlibforlogstash\qpid\lib\javax.jms.jar
- C:\qpidlibforlogstash\qpid\lib\backport-util-concurrent-2.2.jar
- C:\qpidlibforlogstash\qpid\lib\commons-collections-3.2.jar
- C:\qpidlibforlogstash\qpid\lib\commons-lang-2.2.jar
- C:\qpidlibforlogstash\qpid\lib\mina-core-1.0.1.jar
- C:\qpidlibforlogstash\qpid\lib\qpid-jms-client-0.8.0.jar
- C:\qpidlibforlogstash\qpid\lib\qpid-common-6.1.2.jar
- C:\qpidlibforlogstash\qpid\lib\proton-j-0.8.jar
- C:\qpidlibforlogstash\qpid\lib\slf4j-api-1.7.14.jar
- C:\qpidlibforlogstash\qpid\lib\log4j-1.2.17.jar
- C:\qpidlibforlogstash\qpid\lib\slf4j-log4j12-1.7.14.jar
- C:\qpid-client\6.1.2\lib\geronimo-jms_1.1_spec-1.1.1.jar
- C:\qpid-client\6.1.2\lib\qpid-client-6.1.2.jar
- C:\qpid-client\6.1.2\lib\qpid-common-6.1.2.jar
- C:\qpid-client\6.1.2\lib\slf4j-api-1.7.12.jar
- C:\qpid-client\6.1.2\lib\slf4j-simple-1.7.12.jar
- C:\qpid-client\6.1.2\lib\log4j-1.2.17.jar
logstash.config
input {
file {
path => [
"C:/logs/abc-01A/Wabtec$/abc/Diagnostics//file..log",
"C:/logs/xyz-01B/Wabtec$/xyz/Diagnostics/
/BOS*.*.log"
]
type => "logs"
start_position => "beginning"

}

heartbeat{}
stdin { }
}
output {
jms {
codec => plain {
charset => "ISO-8859-1"
}
destination => "queue.ocm.in"
#interval => 2
yaml_file => "C:\logstash-5.4.1\config\jms-output.yml"
yaml_section => "output"
}
}


(Jagatjyoti Mohanty) #2

need help :slight_smile:


(Jagatjyoti Mohanty) #3


(system) #4

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