Class: LogStash::Inputs::RabbitMQ
- Inherits:
-
Threadable
- Object
- Plugin
- Base
- Threadable
- LogStash::Inputs::RabbitMQ
- Includes:
- BunnyImpl, MarchHareImpl
- Defined in:
- lib/logstash/inputs/rabbitmq.rb,
lib/logstash/inputs/rabbitmq/bunny.rb,
lib/logstash/inputs/rabbitmq/march_hare.rb
Overview
Pull events from a RabbitMQ exchange.
The default settings will create an entirely transient queue and listen for all messages by default. If you need durability or any other advanced settings, please set the appropriate options
This has been tested with Bunny 0.9.x, which supports RabbitMQ 2.x and 3.x. You can find links to both here:
-
RabbitMQ - <www.rabbitmq.com/>
-
March Hare: <rubymarchhare.info>
-
Bunny - <github.com/ruby-amqp/bunny>
Direct Known Subclasses
Defined Under Namespace
Modules: BunnyImpl, MarchHareImpl
Constant Summary
Constants included from Config::Mixin
Instance Attribute Summary
Attributes inherited from Base
Attributes included from Config::Mixin
Attributes inherited from Plugin
Instance Method Summary collapse
-
#initialize(params) ⇒ RabbitMQ
constructor
A new instance of RabbitMQ.
Methods included from BunnyImpl
#consume, #register, #run, #setup, #teardown
Methods included from MarchHareImpl
Methods inherited from Base
Methods included from Config::Mixin
Methods inherited from Plugin
#eql?, #finished, #finished?, #hash, #inspect, lookup, #reload, #running?, #shutdown, #teardown, #terminating?, #to_s
Constructor Details
#initialize(params) ⇒ RabbitMQ
Returns a new instance of RabbitMQ.
104 105 106 107 108 |
# File 'lib/logstash/inputs/rabbitmq.rb', line 104 def initialize(params) params["codec"] = "json" if !params["codec"] super end |