Description
We can't use plugins in new ELK cluster. The messages not sending to ActiveMQ
(In Logstash 2.4 all warking good)
In new Logstash 6.4.2
logstash-output-stomp 3.0.9
os: debian 9
I see error:
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: Thread.exclusive is deprecated, use Mutex
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp.rb:121:in next_serial' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes/transaction_scope.rb:189:in
next_transaction_id'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes/transaction_scope.rb:47:in begin_with_transaction' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes/transaction_scope.rb:160:in
perform'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes.rb:24:in block in transaction' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes.rb:23:in
tap'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/onstomp-1.0.10/lib/onstomp/components/scopes.rb:23:in transaction' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/vendor/bundle/jruby/2.3.0/gems/logstash-output-stomp-3.0.9/lib/logstash/outputs/stomp.rb:77:in
multi_receive'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:475:in multi_receive' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:475:in
block in output_batch'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:474:in each' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:474:in
output_batch'
Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:426:in worker_loop' Nov 9 02:27:41 LOGSTASH-AMQ logstash[14118]: /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:384:in
block in start_workers'
Config:
Output {
stomp {
host => "XXX"
port => "XXX"
destination => "/topic/VirtualTopic.name"
user => ""
password => ""
codec => json
headers => {
"Content-Type" => "application/json; charset=UTF-8"
"MESSAGE_FORMAT" => "v1"
"MESSAGE_PRODUCER" => "%{[headers][request_path]}"
"MESSAGE_TYPE" => "ENTITY_EVENT"
"ENTITY_TYPE" => "dynamicAudienceMember"
"ENTITY_STATUS" => "Created"
"MESSAGE_ID" => "%{[@metadata][MESSAGE_ID]}"
"MESSAGE_CREATED" => "%{[MESSAGE_CREATED]}"
"CLIENT_ID" => "%{[dynamicAudienceMember][clientId]}"
}
}