logstash-integration-rabbitmq 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +2 -0
  3. data/CONTRIBUTORS +26 -0
  4. data/Gemfile +11 -0
  5. data/LICENSE +13 -0
  6. data/NOTICE.TXT +5 -0
  7. data/README.md +98 -0
  8. data/docs/index-input.asciidoc +395 -0
  9. data/docs/index-output.asciidoc +266 -0
  10. data/lib/logstash/inputs/rabbitmq.rb +317 -0
  11. data/lib/logstash/outputs/rabbitmq.rb +100 -0
  12. data/lib/logstash/plugin_mixins/rabbitmq_connection.rb +235 -0
  13. data/lib/logstash_registry.rb +7 -0
  14. data/logstash-integration-rabbitmq.gemspec +37 -0
  15. data/spec/fixtures/README.md +150 -0
  16. data/spec/fixtures/client/cert.pem +69 -0
  17. data/spec/fixtures/client/key.pem +27 -0
  18. data/spec/fixtures/client/keycert.p12 +0 -0
  19. data/spec/fixtures/client/req.pem +15 -0
  20. data/spec/fixtures/client_untrusted/cert.pem +19 -0
  21. data/spec/fixtures/client_untrusted/key.pem +28 -0
  22. data/spec/fixtures/client_untrusted/keycert.p12 +0 -0
  23. data/spec/fixtures/server/cert.pem +69 -0
  24. data/spec/fixtures/server/key.pem +27 -0
  25. data/spec/fixtures/server/key_password +1 -0
  26. data/spec/fixtures/server/keycert.p12 +0 -0
  27. data/spec/fixtures/server/rabbitmq.config +10 -0
  28. data/spec/fixtures/server/req.pem +15 -0
  29. data/spec/fixtures/testca/cacert.cer +0 -0
  30. data/spec/fixtures/testca/cacert.pem +17 -0
  31. data/spec/fixtures/testca/certs/01.pem +18 -0
  32. data/spec/fixtures/testca/certs/02.pem +18 -0
  33. data/spec/fixtures/testca/certs/05.pem +69 -0
  34. data/spec/fixtures/testca/certs/06.pem +69 -0
  35. data/spec/fixtures/testca/index.txt +4 -0
  36. data/spec/fixtures/testca/index.txt.attr +1 -0
  37. data/spec/fixtures/testca/index.txt.attr.old +1 -0
  38. data/spec/fixtures/testca/index.txt.old +3 -0
  39. data/spec/fixtures/testca/openssl.cnf +53 -0
  40. data/spec/fixtures/testca/private/cakey.pem +27 -0
  41. data/spec/fixtures/testca/serial +1 -0
  42. data/spec/fixtures/testca/serial.old +1 -0
  43. data/spec/inputs/rabbitmq_spec.rb +278 -0
  44. data/spec/outputs/rabbitmq_spec.rb +228 -0
  45. data/spec/plugin_mixins/rabbitmq_connection_spec.rb +175 -0
  46. metadata +241 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 52cf5ceb8cb2600a30486903f8cf0786e5939ed34c4e57a0ce4c66e751f0e859
4
+ data.tar.gz: 9f45d58f3a060cae5c05532e6d151e16195cdcff60590956f277e01435b6fc1d
5
+ SHA512:
6
+ metadata.gz: f419b19e4e8fb6991496c169562968d07679db54152734c621941c749a2efd58e3b513caf2a88f3408bdd96369e9d03e634fe064797699c589646a4fcb8c855c
7
+ data.tar.gz: 6299ae1d3197d557fa4880c146d89b03ac7c1fb18e932bc6bb80479314ba4fb3565112e669a4f8a4f99ba6cebd4b2f22a973bc94edf41ea10ffc823631206188
@@ -0,0 +1,2 @@
1
+ ## 1.0.0
2
+ - Initial import of rabbitmq input, output and mixin
@@ -0,0 +1,26 @@
1
+ The following is a list of people who have contributed ideas, code, bug
2
+ reports, or in general have helped logstash along its way.
3
+
4
+ Contributors:
5
+ * Avishai Ish-Shalom (avishai-ish-shalom)
6
+ * Colin Surprenant (colinsurprenant)
7
+ * Jonathan Van Eenwyk (jdve)
8
+ * Jordan Sissel (jordansissel)
9
+ * João Duarte (jsvd)
10
+ * Kurt Hurtado (kurtado)
11
+ * Marc Fournier (mfournier)
12
+ * Mathieu MILLET (htam-net)
13
+ * Michael Klishin (michaelklishin)
14
+ * Michael Zaccari (mzaccari)
15
+ * Nick Ethier (nickethier)
16
+ * Pier-Hugues Pellerin (ph)
17
+ * Richard Pijnenburg (electrical)
18
+ * Suyog Rao (suyograo)
19
+ * Tim Potter (tpot)
20
+ * avleen
21
+ * ssc-
22
+
23
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
24
+ Logstash, and you aren't on the list above and want to be, please let us know
25
+ and we'll make sure you're here. Contributions from folks like you are what make
26
+ open source awesome.
data/Gemfile ADDED
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ logstash_path = ENV["LOGSTASH_PATH"] || "../../logstash"
6
+ use_logstash_source = ENV["LOGSTASH_SOURCE"] && ENV["LOGSTASH_SOURCE"].to_s == "1"
7
+
8
+ if Dir.exist?(logstash_path) && use_logstash_source
9
+ gem 'logstash-core', :path => "#{logstash_path}/logstash-core"
10
+ gem 'logstash-core-plugin-api', :path => "#{logstash_path}/logstash-core-plugin-api"
11
+ end
data/LICENSE ADDED
@@ -0,0 +1,13 @@
1
+ Copyright (c) 2012-2018 Elasticsearch <http://www.elastic.co>
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
@@ -0,0 +1,5 @@
1
+ Elasticsearch
2
+ Copyright 2012-2015 Elasticsearch
3
+
4
+ This product includes software developed by The Apache Software
5
+ Foundation (http://www.apache.org/).
@@ -0,0 +1,98 @@
1
+ # Logstash Plugin
2
+
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-input-rabbitmq.svg)](https://travis-ci.org/logstash-plugins/logstash-input-rabbitmq)
4
+
5
+ This is a plugin for [Logstash](https://github.com/elastic/logstash).
6
+
7
+ It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
8
+
9
+ ## Documentation
10
+
11
+ Logstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).
12
+
13
+ - For formatting code or config example, you can use the asciidoc `[source,ruby]` directive
14
+ - For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide
15
+
16
+ ## Need Help?
17
+
18
+ Need help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.
19
+
20
+ ## Developing
21
+
22
+ ### 1. Plugin Developement and Testing
23
+
24
+ #### Code
25
+ - To get started, you'll need JRuby with the Bundler gem installed.
26
+
27
+ - Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization. We also provide [example plugins](https://github.com/logstash-plugins?query=example).
28
+
29
+ - Install dependencies
30
+ ```sh
31
+ bundle install
32
+ ```
33
+
34
+ #### Test
35
+
36
+ - Update your dependencies
37
+
38
+ ```sh
39
+ bundle install
40
+ ```
41
+
42
+ - Run tests
43
+
44
+ ```sh
45
+ bundle exec rspec
46
+ ```
47
+
48
+ ### 2. Running your unpublished Plugin in Logstash
49
+
50
+ #### 2.1 Run in a local Logstash clone
51
+
52
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
53
+ ```ruby
54
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
55
+ ```
56
+ - Install plugin
57
+ ```sh
58
+ # Logstash 2.3 and higher
59
+ bin/logstash-plugin install --no-verify
60
+
61
+ # Prior to Logstash 2.3
62
+ bin/plugin install --no-verify
63
+
64
+ ```
65
+ - Run Logstash with your plugin
66
+ ```sh
67
+ bin/logstash -e 'filter {awesome {}}'
68
+ ```
69
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
70
+
71
+ #### 2.2 Run in an installed Logstash
72
+
73
+ You can use the same **2.1** method to run your plugin in an installed Logstash by editing its `Gemfile` and pointing the `:path` to your local plugin development directory or you can build the gem and install it using:
74
+
75
+ - Build your plugin gem
76
+ ```sh
77
+ gem build logstash-filter-awesome.gemspec
78
+ ```
79
+ - Install the plugin from the Logstash home
80
+ ```sh
81
+ # Logstash 2.3 and higher
82
+ bin/logstash-plugin install --no-verify
83
+
84
+ # Prior to Logstash 2.3
85
+ bin/plugin install --no-verify
86
+
87
+ ```
88
+ - Start Logstash and proceed to test the plugin
89
+
90
+ ## Contributing
91
+
92
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
93
+
94
+ Programming is not a required skill. Whatever you've seen about open source and maintainers or community members saying "send patches or die" - you will not see that here.
95
+
96
+ It is more important to the community that you are able to contribute.
97
+
98
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,395 @@
1
+ :plugin: rabbitmq
2
+ :type: input
3
+
4
+ ///////////////////////////////////////////
5
+ START - GENERATED VARIABLES, DO NOT EDIT!
6
+ ///////////////////////////////////////////
7
+ :version: %VERSION%
8
+ :release_date: %RELEASE_DATE%
9
+ :changelog_url: %CHANGELOG_URL%
10
+ :include_path: ../../../../logstash/docs/include
11
+ ///////////////////////////////////////////
12
+ END - GENERATED VARIABLES, DO NOT EDIT!
13
+ ///////////////////////////////////////////
14
+
15
+ [id="plugins-{type}s-{plugin}"]
16
+
17
+ === Rabbitmq input plugin
18
+
19
+ include::{include_path}/plugin_header.asciidoc[]
20
+
21
+ ==== Description
22
+
23
+ Pull events from a http://www.rabbitmq.com/[RabbitMQ] queue.
24
+
25
+ The default settings will create an entirely transient queue and listen for all messages by default.
26
+ If you need durability or any other advanced settings, please set the appropriate options
27
+
28
+ This plugin uses the http://rubymarchhare.info/[March Hare] library
29
+ for interacting with the RabbitMQ server. Most configuration options
30
+ map directly to standard RabbitMQ and AMQP concepts. The
31
+ https://www.rabbitmq.com/amqp-0-9-1-reference.html[AMQP 0-9-1 reference guide]
32
+ and other parts of the RabbitMQ documentation are useful for deeper
33
+ understanding.
34
+
35
+ The properties of messages received will be stored in the
36
+ `[@metadata][rabbitmq_properties]` field if the `@metadata_enabled` setting is checked.
37
+ Note that storing metadata may degrade performance.
38
+ The following properties may be available (in most cases dependent on whether
39
+ they were set by the sender):
40
+
41
+ * app-id
42
+ * cluster-id
43
+ * consumer-tag
44
+ * content-encoding
45
+ * content-type
46
+ * correlation-id
47
+ * delivery-mode
48
+ * exchange
49
+ * expiration
50
+ * message-id
51
+ * priority
52
+ * redeliver
53
+ * reply-to
54
+ * routing-key
55
+ * timestamp
56
+ * type
57
+ * user-id
58
+
59
+ For example, to get the RabbitMQ message's timestamp property
60
+ into the Logstash event's `@timestamp` field, use the date
61
+ filter to parse the `[@metadata][rabbitmq_properties][timestamp]`
62
+ field:
63
+ [source,ruby]
64
+ filter {
65
+ if [@metadata][rabbitmq_properties][timestamp] {
66
+ date {
67
+ match => ["[@metadata][rabbitmq_properties][timestamp]", "UNIX"]
68
+ }
69
+ }
70
+ }
71
+
72
+ Additionally, any message headers will be saved in the
73
+ `[@metadata][rabbitmq_headers]` field.
74
+
75
+ [id="plugins-{type}s-{plugin}-options"]
76
+ ==== Rabbitmq Input Configuration Options
77
+
78
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
79
+
80
+ [cols="<,<,<",options="header",]
81
+ |=======================================================================
82
+ |Setting |Input type|Required
83
+ | <<plugins-{type}s-{plugin}-ack>> |<<boolean,boolean>>|No
84
+ | <<plugins-{type}s-{plugin}-arguments>> |<<array,array>>|No
85
+ | <<plugins-{type}s-{plugin}-auto_delete>> |<<boolean,boolean>>|No
86
+ | <<plugins-{type}s-{plugin}-automatic_recovery>> |<<boolean,boolean>>|No
87
+ | <<plugins-{type}s-{plugin}-connect_retry_interval>> |<<number,number>>|No
88
+ | <<plugins-{type}s-{plugin}-connection_timeout>> |<<number,number>>|No
89
+ | <<plugins-{type}s-{plugin}-durable>> |<<boolean,boolean>>|No
90
+ | <<plugins-{type}s-{plugin}-exchange>> |<<string,string>>|No
91
+ | <<plugins-{type}s-{plugin}-exchange_type>> |<<string,string>>|No
92
+ | <<plugins-{type}s-{plugin}-exclusive>> |<<boolean,boolean>>|No
93
+ | <<plugins-{type}s-{plugin}-heartbeat>> |<<number,number>>|No
94
+ | <<plugins-{type}s-{plugin}-host>> |<<string,string>>|Yes
95
+ | <<plugins-{type}s-{plugin}-key>> |<<string,string>>|No
96
+ | <<plugins-{type}s-{plugin}-metadata_enabled>> |<<boolean,boolean>>|No
97
+ | <<plugins-{type}s-{plugin}-passive>> |<<boolean,boolean>>|No
98
+ | <<plugins-{type}s-{plugin}-password>> |<<password,password>>|No
99
+ | <<plugins-{type}s-{plugin}-port>> |<<number,number>>|No
100
+ | <<plugins-{type}s-{plugin}-prefetch_count>> |<<number,number>>|No
101
+ | <<plugins-{type}s-{plugin}-queue>> |<<string,string>>|No
102
+ | <<plugins-{type}s-{plugin}-ssl>> |<<boolean,boolean>>|No
103
+ | <<plugins-{type}s-{plugin}-ssl_certificate_password>> |<<string,string>>|No
104
+ | <<plugins-{type}s-{plugin}-ssl_certificate_path>> |a valid filesystem path|No
105
+ | <<plugins-{type}s-{plugin}-ssl_version>> |<<string,string>>|No
106
+ | <<plugins-{type}s-{plugin}-subscription_retry_interval_seconds>> |<<number,number>>|Yes
107
+ | <<plugins-{type}s-{plugin}-threads>> |<<number,number>>|No
108
+ | <<plugins-{type}s-{plugin}-user>> |<<string,string>>|No
109
+ | <<plugins-{type}s-{plugin}-vhost>> |<<string,string>>|No
110
+ |=======================================================================
111
+
112
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
113
+ input plugins.
114
+
115
+ &nbsp;
116
+
117
+ [id="plugins-{type}s-{plugin}-ack"]
118
+ ===== `ack`
119
+
120
+ * Value type is <<boolean,boolean>>
121
+ * Default value is `true`
122
+
123
+ Enable message acknowledgements. With acknowledgements
124
+ messages fetched by Logstash but not yet sent into the
125
+ Logstash pipeline will be requeued by the server if Logstash
126
+ shuts down. Acknowledgements will however hurt the message
127
+ throughput.
128
+
129
+ This will only send an ack back every `prefetch_count` messages.
130
+ Working in batches provides a performance boost here.
131
+
132
+ [id="plugins-{type}s-{plugin}-arguments"]
133
+ ===== `arguments`
134
+
135
+ * Value type is <<array,array>>
136
+ * Default value is `{}`
137
+
138
+ Extra queue arguments as an array.
139
+ To make a RabbitMQ queue mirrored, use: `{"x-ha-policy" => "all"}`
140
+
141
+ [id="plugins-{type}s-{plugin}-auto_delete"]
142
+ ===== `auto_delete`
143
+
144
+ * Value type is <<boolean,boolean>>
145
+ * Default value is `false`
146
+
147
+ Should the queue be deleted on the broker when the last consumer
148
+ disconnects? Set this option to `false` if you want the queue to remain
149
+ on the broker, queueing up messages until a consumer comes along to
150
+ consume them.
151
+
152
+ [id="plugins-{type}s-{plugin}-automatic_recovery"]
153
+ ===== `automatic_recovery`
154
+
155
+ * Value type is <<boolean,boolean>>
156
+ * Default value is `true`
157
+
158
+ Set this to automatically recover from a broken connection. You almost certainly don't want to override this!!!
159
+
160
+ [id="plugins-{type}s-{plugin}-connect_retry_interval"]
161
+ ===== `connect_retry_interval`
162
+
163
+ * Value type is <<number,number>>
164
+ * Default value is `1`
165
+
166
+ Time in seconds to wait before retrying a connection
167
+
168
+ [id="plugins-{type}s-{plugin}-connection_timeout"]
169
+ ===== `connection_timeout`
170
+
171
+ * Value type is <<number,number>>
172
+ * There is no default value for this setting.
173
+
174
+ The default connection timeout in milliseconds. If not specified the timeout is infinite.
175
+
176
+ [id="plugins-{type}s-{plugin}-durable"]
177
+ ===== `durable`
178
+
179
+ * Value type is <<boolean,boolean>>
180
+ * Default value is `false`
181
+
182
+ Is this queue durable? (aka; Should it survive a broker restart?)
183
+
184
+ [id="plugins-{type}s-{plugin}-exchange"]
185
+ ===== `exchange`
186
+
187
+ * Value type is <<string,string>>
188
+ * There is no default value for this setting.
189
+
190
+ The name of the exchange to bind the queue to. Specify `exchange_type`
191
+ as well to declare the exchange if it does not exist
192
+
193
+ [id="plugins-{type}s-{plugin}-exchange_type"]
194
+ ===== `exchange_type`
195
+
196
+ * Value type is <<string,string>>
197
+ * There is no default value for this setting.
198
+
199
+ The type of the exchange to bind to. Specifying this will cause this plugin
200
+ to declare the exchange if it does not exist.
201
+
202
+ [id="plugins-{type}s-{plugin}-exclusive"]
203
+ ===== `exclusive`
204
+
205
+ * Value type is <<boolean,boolean>>
206
+ * Default value is `false`
207
+
208
+ Is the queue exclusive? Exclusive queues can only be used by the connection
209
+ that declared them and will be deleted when it is closed (e.g. due to a Logstash
210
+ restart).
211
+
212
+ [id="plugins-{type}s-{plugin}-heartbeat"]
213
+ ===== `heartbeat`
214
+
215
+ * Value type is <<number,number>>
216
+ * There is no default value for this setting.
217
+
218
+ Heartbeat delay in seconds. If unspecified no heartbeats will be sent
219
+
220
+ [id="plugins-{type}s-{plugin}-host"]
221
+ ===== `host`
222
+
223
+ * This is a required setting.
224
+ * Value type is <<string,string>>
225
+ * There is no default value for this setting.
226
+
227
+ Common functionality for the rabbitmq input/output
228
+ RabbitMQ server address(es)
229
+ host can either be a single host, or a list of hosts
230
+ i.e.
231
+ host => "localhost"
232
+ or
233
+ host => ["host01", "host02]
234
+
235
+ if multiple hosts are provided on the initial connection and any subsequent
236
+ recovery attempts of the hosts is chosen at random and connected to.
237
+ Note that only one host connection is active at a time.
238
+
239
+ [id="plugins-{type}s-{plugin}-key"]
240
+ ===== `key`
241
+
242
+ * Value type is <<string,string>>
243
+ * Default value is `"logstash"`
244
+
245
+ The routing key to use when binding a queue to the exchange.
246
+ This is only relevant for direct or topic exchanges.
247
+
248
+ * Routing keys are ignored on fanout exchanges.
249
+ * Wildcards are not valid on direct exchanges.
250
+
251
+ [id="plugins-{type}s-{plugin}-metadata_enabled"]
252
+ ===== `metadata_enabled`
253
+
254
+ * Value type is <<boolean,boolean>>
255
+ * Default value is `false`
256
+
257
+ Enable the storage of message headers and properties in `@metadata`. This may impact performance
258
+
259
+ [id="plugins-{type}s-{plugin}-passive"]
260
+ ===== `passive`
261
+
262
+ * Value type is <<boolean,boolean>>
263
+ * Default value is `false`
264
+
265
+ If true the queue will be passively declared, meaning it must
266
+ already exist on the server. To have Logstash create the queue
267
+ if necessary leave this option as false. If actively declaring
268
+ a queue that already exists, the queue options for this plugin
269
+ (durable etc) must match those of the existing queue.
270
+
271
+ [id="plugins-{type}s-{plugin}-password"]
272
+ ===== `password`
273
+
274
+ * Value type is <<password,password>>
275
+ * Default value is `"guest"`
276
+
277
+ RabbitMQ password
278
+
279
+ [id="plugins-{type}s-{plugin}-port"]
280
+ ===== `port`
281
+
282
+ * Value type is <<number,number>>
283
+ * Default value is `5672`
284
+
285
+ RabbitMQ port to connect on
286
+
287
+ [id="plugins-{type}s-{plugin}-prefetch_count"]
288
+ ===== `prefetch_count`
289
+
290
+ * Value type is <<number,number>>
291
+ * Default value is `256`
292
+
293
+ Prefetch count. If acknowledgements are enabled with the `ack`
294
+ option, specifies the number of outstanding unacknowledged
295
+ messages allowed.
296
+
297
+ [id="plugins-{type}s-{plugin}-queue"]
298
+ ===== `queue`
299
+
300
+ * Value type is <<string,string>>
301
+ * Default value is `""`
302
+
303
+ The properties to extract from each message and store in a
304
+ @metadata field.
305
+
306
+ Technically the exchange, redeliver, and routing-key
307
+ properties belong to the envelope and not the message but we
308
+ ignore that distinction here. However, we extract the
309
+ headers separately via get_headers even though the header
310
+ table technically is a message property.
311
+
312
+ Freezing all strings so that code modifying the event's
313
+ @metadata field can't touch them.
314
+
315
+ If updating this list, remember to update the documentation
316
+ above too.
317
+ The default codec for this plugin is JSON. You can override this to suit your particular needs however.
318
+ The name of the queue Logstash will consume events from. If
319
+ left empty, a transient queue with an randomly chosen name
320
+ will be created.
321
+
322
+ [id="plugins-{type}s-{plugin}-ssl"]
323
+ ===== `ssl`
324
+
325
+ * Value type is <<boolean,boolean>>
326
+ * There is no default value for this setting.
327
+
328
+ Enable or disable SSL.
329
+ Note that by default remote certificate verification is off.
330
+ Specify ssl_certificate_path and ssl_certificate_password if you need
331
+ certificate verification
332
+
333
+ [id="plugins-{type}s-{plugin}-ssl_certificate_password"]
334
+ ===== `ssl_certificate_password`
335
+
336
+ * Value type is <<string,string>>
337
+ * There is no default value for this setting.
338
+
339
+ Password for the encrypted PKCS12 (.p12) certificate file specified in ssl_certificate_path
340
+
341
+ [id="plugins-{type}s-{plugin}-ssl_certificate_path"]
342
+ ===== `ssl_certificate_path`
343
+
344
+ * Value type is <<path,path>>
345
+ * There is no default value for this setting.
346
+
347
+ Path to an SSL certificate in PKCS12 (.p12) format used for verifying the remote host
348
+
349
+ [id="plugins-{type}s-{plugin}-ssl_version"]
350
+ ===== `ssl_version`
351
+
352
+ * Value type is <<string,string>>
353
+ * Default value is `"TLSv1.2"`
354
+
355
+ Version of the SSL protocol to use.
356
+
357
+ [id="plugins-{type}s-{plugin}-subscription_retry_interval_seconds"]
358
+ ===== `subscription_retry_interval_seconds`
359
+
360
+ * This is a required setting.
361
+ * Value type is <<number,number>>
362
+ * Default value is `5`
363
+
364
+ Amount of time in seconds to wait after a failed subscription request
365
+ before retrying. Subscribes can fail if the server goes away and then comes back.
366
+
367
+ [id="plugins-{type}s-{plugin}-threads"]
368
+ ===== `threads`
369
+
370
+ * Value type is <<number,number>>
371
+ * Default value is `1`
372
+
373
+ [id="plugins-{type}s-{plugin}-user"]
374
+ ===== `user`
375
+
376
+ * Value type is <<string,string>>
377
+ * Default value is `"guest"`
378
+
379
+ RabbitMQ username
380
+
381
+ [id="plugins-{type}s-{plugin}-vhost"]
382
+ ===== `vhost`
383
+
384
+ * Value type is <<string,string>>
385
+ * Default value is `"/"`
386
+
387
+ The vhost (virtual host) to use. If you don't know what this
388
+ is, leave the default. With the exception of the default
389
+ vhost ("/"), names of vhosts should not begin with a forward
390
+ slash.
391
+
392
+
393
+
394
+ [id="plugins-{type}s-{plugin}-common-options"]
395
+ include::{include_path}/{type}.asciidoc[]