logstash-output-influx 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 7011a8bd6191ba93a69f4a36ca7c03f38a272b7a
4
+ data.tar.gz: 63e1372b1432081b0f4e0be68c9cb9827c66b609
5
+ SHA512:
6
+ metadata.gz: d95c601b3b085e9ffb075e13e035247848ab2f08b1f46b1537f25f61a78577a90bfa19056d3152cee2e775b26e3a0c4708349e8c07b70c9f24c4bbcda7c97ad9
7
+ data.tar.gz: d034b572f2cb4042259128c1deef1d9e61f80374a6ca4dfccdcb3f0b2f32569e53981e095fd0ce8acba2a02d7d7871f78069ff577e8bfd97c439635c141ddecc
data/CHANGELOG.md ADDED
@@ -0,0 +1,98 @@
1
+ ## 5.2.4
2
+ - Relax dependency on http_client mixin since current major works on both
3
+
4
+ ## 5.2.3
5
+ - Fixed handling of empty `retryable_codes` [#99](https://github.com/logstash-plugins/logstash-output-http/pull/99)
6
+
7
+ ## 5.2.2
8
+ - Fix high CPU usage on retries in json_batch mode. [#89](https://github.com/logstash-plugins/logstash-output-http/pull/89)
9
+ - Enable compression in json_batch mode. [#89](https://github.com/logstash-plugins/logstash-output-http/pull/89)
10
+
11
+ ## 5.2.1
12
+ - Docs: Set the default_codec doc attribute.
13
+
14
+ ## 5.2.0
15
+ - Added json_batch format
16
+ - Make 429 responses log at debug, not error level. They are really just flow control
17
+
18
+ ## 5.1.2
19
+ - Add check to avoid hanging pipeline if an empty event array is passed in. #80
20
+
21
+ ## 5.1.1
22
+ - Update gemspec summary
23
+
24
+ ## 5.1.0
25
+ - Adding a new option `http_compression` for sending compressed payload with the `Content-Encoding: gzip` header to the configured http endpoint #66
26
+
27
+ ## 5.0.1
28
+ - Fix some documentation issues
29
+
30
+ ## 5.0.0
31
+ - Breaking: bump dependency in breaking version of logstash-mixin-http_client
32
+
33
+ ## 4.3.3
34
+ - Docs: Add plugin description.
35
+
36
+ ## 4.3.2
37
+ - Docs: Update plugin title.
38
+
39
+ ## 4.3.1
40
+ - Fix deadlock that could occur in certain situations. All users should upgrade to the latest version.
41
+ This deadlock was caused by certain async HTTP APIs being called out of order thus creating a race.
42
+
43
+ ## 4.3.0
44
+ - Add `user` and `password` options to support HTTP basic auth
45
+
46
+ ## 4.2.0
47
+ - Allow nested array in field definition, See https://github.com/logstash-plugins/logstash-output-http/pull/53
48
+
49
+ ## 4.1.0
50
+ - Allow nested field definitions in `mappings`
51
+
52
+ ## 4.0.0
53
+ - Major overhaul of internals, adds new retry options
54
+ - Allow users to specify non-standard response codes as ignorable
55
+ - Set concurrency level to shared allowing for greater efficiency across threads
56
+
57
+ ## 3.1.1
58
+ - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
59
+
60
+ ## 3.1.0
61
+ - breaking,config: Remove deprecated config 'verify_ssl'. Please use 'ssl_certificate_validation'.
62
+
63
+ ## 3.0.1
64
+ - Republish all the gems under jruby.
65
+
66
+ ## 3.0.0
67
+ - Update the plugin to the version 2.0 of the plugin api, this change is required for Logstash 5.0 compatibility. See https://github.com/elastic/logstash/issues/5141
68
+
69
+ ## 2.1.3
70
+ - Depend on logstash-core-plugin-api instead of logstash-core, removing the need to mass update plugins on major releases of logstash
71
+
72
+ ## 2.1.2
73
+ - New dependency requirements for logstash-core for the 5.0 release
74
+
75
+ ## 2.1.1
76
+ - Require http_client mixin with better keepalive handling
77
+
78
+
79
+ ## 2.1.0
80
+ - Properly close the client on #close
81
+ - Optimized execution for Logstash 2.2 ng pipeline
82
+
83
+ ## 2.0.5
84
+ - fixed memory leak
85
+
86
+ ## 2.0.3
87
+ - fixed potential race condition on async callbacks
88
+ - silenced specs equest logs and other spec robustness fixes
89
+
90
+ ## 2.0.0
91
+ - Plugins were updated to follow the new shutdown semantic, this mainly allows Logstash to instruct input plugins to terminate gracefully,
92
+ instead of using Thread.raise on the plugins' threads. Ref: https://github.com/elastic/logstash/pull/3895
93
+ - Dependency on logstash-core update to 2.0
94
+
95
+ ## 1.1.0
96
+ - Concurrent execution
97
+ - Add many HTTP options via the http_client mixin
98
+ - Switch to manticore as HTTP Client
data/CONTRIBUTORS ADDED
@@ -0,0 +1,16 @@
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
+ * Christian S. (squiddle)
6
+ * Colin Surprenant (colinsurprenant)
7
+ * John E. Vincent (lusis)
8
+ * Jordan Sissel (jordansissel)
9
+ * Kurt Hurtado (kurtado)
10
+ * Pier-Hugues Pellerin (ph)
11
+ * Richard Pijnenburg (electrical)
12
+
13
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
14
+ Logstash, and you aren't on the list above and want to be, please let us know
15
+ and we'll make sure you're here. Contributions from folks like you are what make
16
+ 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.
data/NOTICE.TXT ADDED
@@ -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/).
data/README.md ADDED
@@ -0,0 +1,89 @@
1
+ # Logstash Plugin
2
+
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-http.svg)](https://travis-ci.org/logstash-plugins/logstash-output-influx)
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
+ ## Usage
10
+
11
+ <pre><code>
12
+ output {
13
+ influx {
14
+ url => "http://localhost:8086/"
15
+ db => "mydb"
16
+ is_batch => true
17
+ }
18
+ }
19
+ </code></pre>
20
+
21
+ ## Developing
22
+
23
+ ### 1. Plugin Developement and Testing
24
+
25
+ #### Code
26
+ - To get started, you'll need JRuby with the Bundler gem installed.
27
+
28
+ - 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).
29
+
30
+ - Install dependencies
31
+ ```sh
32
+ bundle install
33
+ ```
34
+
35
+ #### Test
36
+
37
+ - Update your dependencies
38
+
39
+ ```sh
40
+ bundle install
41
+ ```
42
+
43
+ - Run tests
44
+
45
+ ```sh
46
+ bundle exec rspec
47
+ ```
48
+
49
+ ### 2. Running your unpublished Plugin in Logstash
50
+
51
+ #### 2.1 Run in a local Logstash clone
52
+
53
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
54
+ ```ruby
55
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
56
+ ```
57
+ - Install plugin
58
+ ```sh
59
+ # Logstash 2.3 and higher
60
+ bin/logstash-plugin install --no-verify
61
+
62
+ # Prior to Logstash 2.3
63
+ bin/plugin install --no-verify
64
+
65
+ ```
66
+ - Run Logstash with your plugin
67
+ ```sh
68
+ bin/logstash -e 'filter {awesome {}}'
69
+ ```
70
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
71
+
72
+ #### 2.2 Run in an installed Logstash
73
+
74
+ 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:
75
+
76
+ - Build your plugin gem
77
+ ```sh
78
+ gem build logstash-output-influx.gemspec
79
+ ```
80
+ - Install the plugin from the Logstash home
81
+ ```sh
82
+ # Logstash 2.3 and higher
83
+ bin/logstash-plugin install --no-verify
84
+
85
+ # Prior to Logstash 2.3
86
+ bin/plugin install --no-verify
87
+
88
+ ```
89
+ - Start Logstash and proceed to test the plugin
@@ -0,0 +1,391 @@
1
+ :plugin: influx
2
+ :type: output
3
+ :default_codec: plain
4
+
5
+ ///////////////////////////////////////////
6
+ START - GENERATED VARIABLES, DO NOT EDIT!
7
+ ///////////////////////////////////////////
8
+ :version: %VERSION%
9
+ :release_date: %RELEASE_DATE%
10
+ :changelog_url: %CHANGELOG_URL%
11
+ :include_path: ../../../../logstash/docs/include
12
+ ///////////////////////////////////////////
13
+ END - GENERATED VARIABLES, DO NOT EDIT!
14
+ ///////////////////////////////////////////
15
+
16
+ [id="plugins-{type}s-{plugin}"]
17
+
18
+ === Influx output plugin
19
+
20
+ include::{include_path}/plugin_header.asciidoc[]
21
+
22
+ ==== Description
23
+
24
+ This output lets you send events to a generic HTTP(S) endpoint.
25
+
26
+ This output will execute up to 'pool_max' requests in parallel for performance.
27
+ Consider this when tuning this plugin for performance.
28
+
29
+ Additionally, note that when parallel execution is used strict ordering of events is not
30
+ guaranteed!
31
+
32
+ Beware, this gem does not yet support codecs. Please use the 'format' option for now.
33
+
34
+ [id="plugins-{type}s-{plugin}-options"]
35
+ ==== Http Output Configuration Options
36
+
37
+ This plugin supports the following configuration options plus the <<plugins-{type}s-{plugin}-common-options>> described later.
38
+
39
+ [cols="<,<,<",options="header",]
40
+ |=======================================================================
41
+ |Setting |Input type|Required
42
+ | <<plugins-{type}s-{plugin}-automatic_retries>> |<<number,number>>|No
43
+ | <<plugins-{type}s-{plugin}-cacert>> |a valid filesystem path|No
44
+ | <<plugins-{type}s-{plugin}-client_cert>> |a valid filesystem path|No
45
+ | <<plugins-{type}s-{plugin}-client_key>> |a valid filesystem path|No
46
+ | <<plugins-{type}s-{plugin}-connect_timeout>> |<<number,number>>|No
47
+ | <<plugins-{type}s-{plugin}-content_type>> |<<string,string>>|No
48
+ | <<plugins-{type}s-{plugin}-cookies>> |<<boolean,boolean>>|No
49
+ | <<plugins-{type}s-{plugin}-follow_redirects>> |<<boolean,boolean>>|No
50
+ | <<plugins-{type}s-{plugin}-format>> |<<string,string>>, one of `["json", "json_batch", "form", "message"]`|No
51
+ | <<plugins-{type}s-{plugin}-headers>> |<<hash,hash>>|No
52
+ | <<plugins-{type}s-{plugin}-http_compression>> |<<boolean,boolean>>|No
53
+ | <<plugins-{type}s-{plugin}-http_method>> |<<string,string>>, one of `["put", "post", "patch", "delete", "get", "head"]`|Yes
54
+ | <<plugins-{type}s-{plugin}-ignorable_codes>> |<<number,number>>|No
55
+ | <<plugins-{type}s-{plugin}-keepalive>> |<<boolean,boolean>>|No
56
+ | <<plugins-{type}s-{plugin}-keystore>> |a valid filesystem path|No
57
+ | <<plugins-{type}s-{plugin}-keystore_password>> |<<password,password>>|No
58
+ | <<plugins-{type}s-{plugin}-keystore_type>> |<<string,string>>|No
59
+ | <<plugins-{type}s-{plugin}-mapping>> |<<hash,hash>>|No
60
+ | <<plugins-{type}s-{plugin}-message>> |<<string,string>>|No
61
+ | <<plugins-{type}s-{plugin}-pool_max>> |<<number,number>>|No
62
+ | <<plugins-{type}s-{plugin}-pool_max_per_route>> |<<number,number>>|No
63
+ | <<plugins-{type}s-{plugin}-proxy>> |<<,>>|No
64
+ | <<plugins-{type}s-{plugin}-request_timeout>> |<<number,number>>|No
65
+ | <<plugins-{type}s-{plugin}-retry_failed>> |<<boolean,boolean>>|No
66
+ | <<plugins-{type}s-{plugin}-retry_non_idempotent>> |<<boolean,boolean>>|No
67
+ | <<plugins-{type}s-{plugin}-retryable_codes>> |<<number,number>>|No
68
+ | <<plugins-{type}s-{plugin}-socket_timeout>> |<<number,number>>|No
69
+ | <<plugins-{type}s-{plugin}-truststore>> |a valid filesystem path|No
70
+ | <<plugins-{type}s-{plugin}-truststore_password>> |<<password,password>>|No
71
+ | <<plugins-{type}s-{plugin}-truststore_type>> |<<string,string>>|No
72
+ | <<plugins-{type}s-{plugin}-url>> |<<string,string>>|Yes
73
+ | <<plugins-{type}s-{plugin}-validate_after_inactivity>> |<<number,number>>|No
74
+ |=======================================================================
75
+
76
+ Also see <<plugins-{type}s-{plugin}-common-options>> for a list of options supported by all
77
+ output plugins.
78
+
79
+ &nbsp;
80
+
81
+ [id="plugins-{type}s-{plugin}-automatic_retries"]
82
+ ===== `automatic_retries`
83
+
84
+ * Value type is <<number,number>>
85
+ * Default value is `1`
86
+
87
+ How many times should the client retry a failing URL. We highly recommend NOT setting this value
88
+ to zero if keepalive is enabled. Some servers incorrectly end keepalives early requiring a retry!
89
+ Only IO related failures will be retried, such as connection timeouts and unreachable hosts.
90
+ Valid but non 2xx HTTP responses will always be retried, regardless of the value of this setting,
91
+ unless `retry_failed` is set.
92
+ Note: if `retry_non_idempotent` is NOT set only GET, HEAD, PUT, DELETE, OPTIONS, and TRACE requests will be retried.
93
+
94
+ [id="plugins-{type}s-{plugin}-cacert"]
95
+ ===== `cacert`
96
+
97
+ * Value type is <<path,path>>
98
+ * There is no default value for this setting.
99
+
100
+ If you need to use a custom X.509 CA (.pem certs) specify the path to that here
101
+
102
+ [id="plugins-{type}s-{plugin}-client_cert"]
103
+ ===== `client_cert`
104
+
105
+ * Value type is <<path,path>>
106
+ * There is no default value for this setting.
107
+
108
+ If you'd like to use a client certificate (note, most people don't want this) set the path to the x509 cert here
109
+
110
+ [id="plugins-{type}s-{plugin}-client_key"]
111
+ ===== `client_key`
112
+
113
+ * Value type is <<path,path>>
114
+ * There is no default value for this setting.
115
+
116
+ If you're using a client certificate specify the path to the encryption key here
117
+
118
+ [id="plugins-{type}s-{plugin}-connect_timeout"]
119
+ ===== `connect_timeout`
120
+
121
+ * Value type is <<number,number>>
122
+ * Default value is `10`
123
+
124
+ Timeout (in seconds) to wait for a connection to be established. Default is `10s`
125
+
126
+ [id="plugins-{type}s-{plugin}-content_type"]
127
+ ===== `content_type`
128
+
129
+ * Value type is <<string,string>>
130
+ * There is no default value for this setting.
131
+
132
+ Content type
133
+
134
+ If not specified, this defaults to the following:
135
+
136
+ * if format is "json", "application/json"
137
+ * if format is "json_batch", "application/json". Each Logstash batch of events will be concatenated into a single array and sent in one request.
138
+ * if format is "form", "application/x-www-form-urlencoded"
139
+
140
+ [id="plugins-{type}s-{plugin}-cookies"]
141
+ ===== `cookies`
142
+
143
+ * Value type is <<boolean,boolean>>
144
+ * Default value is `true`
145
+
146
+ Enable cookie support. With this enabled the client will persist cookies
147
+ across requests as a normal web browser would. Enabled by default
148
+
149
+ [id="plugins-{type}s-{plugin}-follow_redirects"]
150
+ ===== `follow_redirects`
151
+
152
+ * Value type is <<boolean,boolean>>
153
+ * Default value is `true`
154
+
155
+ Should redirects be followed? Defaults to `true`
156
+
157
+ [id="plugins-{type}s-{plugin}-format"]
158
+ ===== `format`
159
+
160
+ * Value can be any of: `json`, `json_batch`, `form`, `message`
161
+ * Default value is `"json"`
162
+
163
+ Set the format of the http body.
164
+
165
+ If json_batch, each batch of events received by this output will be placed
166
+ into a single JSON array and sent in one request. This is particularly useful
167
+ for high throughput scenarios such as sending data between Logstash instaces.
168
+
169
+ If form, then the body will be the mapping (or whole event) converted
170
+ into a query parameter string, e.g. `foo=bar&baz=fizz...`
171
+
172
+ If message, then the body will be the result of formatting the event according to message
173
+
174
+ Otherwise, the event is sent as json.
175
+
176
+ [id="plugins-{type}s-{plugin}-headers"]
177
+ ===== `headers`
178
+
179
+ * Value type is <<hash,hash>>
180
+ * There is no default value for this setting.
181
+
182
+ Custom headers to use
183
+ format is `headers => ["X-My-Header", "%{host}"]`
184
+
185
+ [id="plugins-{type}s-{plugin}-http_compression"]
186
+ ===== `http_compression`
187
+
188
+ * Value type is <<boolean,boolean>>
189
+ * Default value is `false`
190
+
191
+ Enable request compression support. With this enabled the plugin will compress
192
+ http requests using gzip.
193
+
194
+ [id="plugins-{type}s-{plugin}-http_method"]
195
+ ===== `http_method`
196
+
197
+ * This is a required setting.
198
+ * Value can be any of: `put`, `post`, `patch`, `delete`, `get`, `head`
199
+ * There is no default value for this setting.
200
+
201
+ The HTTP Verb. One of "put", "post", "patch", "delete", "get", "head"
202
+
203
+ [id="plugins-{type}s-{plugin}-ignorable_codes"]
204
+ ===== `ignorable_codes`
205
+
206
+ * Value type is <<number,number>>
207
+ * There is no default value for this setting.
208
+
209
+ If you would like to consider some non-2xx codes to be successes
210
+ enumerate them here. Responses returning these codes will be considered successes
211
+
212
+ [id="plugins-{type}s-{plugin}-keepalive"]
213
+ ===== `keepalive`
214
+
215
+ * Value type is <<boolean,boolean>>
216
+ * Default value is `true`
217
+
218
+ Turn this on to enable HTTP keepalive support. We highly recommend setting `automatic_retries` to at least
219
+ one with this to fix interactions with broken keepalive implementations.
220
+
221
+ [id="plugins-{type}s-{plugin}-keystore"]
222
+ ===== `keystore`
223
+
224
+ * Value type is <<path,path>>
225
+ * There is no default value for this setting.
226
+
227
+ If you need to use a custom keystore (`.jks`) specify that here. This does not work with .pem keys!
228
+
229
+ [id="plugins-{type}s-{plugin}-keystore_password"]
230
+ ===== `keystore_password`
231
+
232
+ * Value type is <<password,password>>
233
+ * There is no default value for this setting.
234
+
235
+ Specify the keystore password here.
236
+ Note, most .jks files created with keytool require a password!
237
+
238
+ [id="plugins-{type}s-{plugin}-keystore_type"]
239
+ ===== `keystore_type`
240
+
241
+ * Value type is <<string,string>>
242
+ * Default value is `"JKS"`
243
+
244
+ Specify the keystore type here. One of `JKS` or `PKCS12`. Default is `JKS`
245
+
246
+ [id="plugins-{type}s-{plugin}-mapping"]
247
+ ===== `mapping`
248
+
249
+ * Value type is <<hash,hash>>
250
+ * There is no default value for this setting.
251
+
252
+ This lets you choose the structure and parts of the event that are sent.
253
+
254
+
255
+ For example:
256
+ [source,ruby]
257
+ mapping => {"foo" => "%{host}"
258
+ "bar" => "%{type}"}
259
+
260
+ [id="plugins-{type}s-{plugin}-message"]
261
+ ===== `message`
262
+
263
+ * Value type is <<string,string>>
264
+ * There is no default value for this setting.
265
+
266
+
267
+
268
+ [id="plugins-{type}s-{plugin}-pool_max"]
269
+ ===== `pool_max`
270
+
271
+ * Value type is <<number,number>>
272
+ * Default value is `50`
273
+
274
+ Max number of concurrent connections. Defaults to `50`
275
+
276
+ [id="plugins-{type}s-{plugin}-pool_max_per_route"]
277
+ ===== `pool_max_per_route`
278
+
279
+ * Value type is <<number,number>>
280
+ * Default value is `25`
281
+
282
+ Max number of concurrent connections to a single host. Defaults to `25`
283
+
284
+ [id="plugins-{type}s-{plugin}-proxy"]
285
+ ===== `proxy`
286
+
287
+ * Value type is <<string,string>>
288
+ * There is no default value for this setting.
289
+
290
+ If you'd like to use an HTTP proxy . This supports multiple configuration syntaxes:
291
+
292
+ 1. Proxy host in form: `http://proxy.org:1234`
293
+ 2. Proxy host in form: `{host => "proxy.org", port => 80, scheme => 'http', user => 'username@host', password => 'password'}`
294
+ 3. Proxy host in form: `{url => 'http://proxy.org:1234', user => 'username@host', password => 'password'}`
295
+
296
+ [id="plugins-{type}s-{plugin}-request_timeout"]
297
+ ===== `request_timeout`
298
+
299
+ * Value type is <<number,number>>
300
+ * Default value is `60`
301
+
302
+ This module makes it easy to add a very fully configured HTTP client to logstash
303
+ based on [Manticore](https://github.com/cheald/manticore).
304
+ For an example of its usage see https://github.com/logstash-plugins/logstash-input-http_poller
305
+ Timeout (in seconds) for the entire request
306
+
307
+ [id="plugins-{type}s-{plugin}-retry_failed"]
308
+ ===== `retry_failed`
309
+
310
+ * Value type is <<boolean,boolean>>
311
+ * Default value is `true`
312
+
313
+ Set this to false if you don't want this output to retry failed requests
314
+
315
+ [id="plugins-{type}s-{plugin}-retry_non_idempotent"]
316
+ ===== `retry_non_idempotent`
317
+
318
+ * Value type is <<boolean,boolean>>
319
+ * Default value is `false`
320
+
321
+ If `automatic_retries` is enabled this will cause non-idempotent HTTP verbs (such as POST) to be retried.
322
+ This only affects connectivity related errors (see related `automatic_retries` setting).
323
+
324
+ [id="plugins-{type}s-{plugin}-retryable_codes"]
325
+ ===== `retryable_codes`
326
+
327
+ * Value type is <<number,number>>
328
+ * Default value is `[429, 500, 502, 503, 504]`
329
+
330
+ If encountered as response codes this plugin will retry these requests
331
+
332
+ [id="plugins-{type}s-{plugin}-socket_timeout"]
333
+ ===== `socket_timeout`
334
+
335
+ * Value type is <<number,number>>
336
+ * Default value is `10`
337
+
338
+ Timeout (in seconds) to wait for data on the socket. Default is `10s`
339
+
340
+ [id="plugins-{type}s-{plugin}-truststore"]
341
+ ===== `truststore`
342
+
343
+ * Value type is <<path,path>>
344
+ * There is no default value for this setting.
345
+
346
+ If you need to use a custom truststore (`.jks`) specify that here. This does not work with .pem certs!
347
+
348
+ [id="plugins-{type}s-{plugin}-truststore_password"]
349
+ ===== `truststore_password`
350
+
351
+ * Value type is <<password,password>>
352
+ * There is no default value for this setting.
353
+
354
+ Specify the truststore password here.
355
+ Note, most .jks files created with keytool require a password!
356
+
357
+ [id="plugins-{type}s-{plugin}-truststore_type"]
358
+ ===== `truststore_type`
359
+
360
+ * Value type is <<string,string>>
361
+ * Default value is `"JKS"`
362
+
363
+ Specify the truststore type here. One of `JKS` or `PKCS12`. Default is `JKS`
364
+
365
+ [id="plugins-{type}s-{plugin}-url"]
366
+ ===== `url`
367
+
368
+ * This is a required setting.
369
+ * Value type is <<string,string>>
370
+ * There is no default value for this setting.
371
+
372
+ URL to use
373
+
374
+ [id="plugins-{type}s-{plugin}-validate_after_inactivity"]
375
+ ===== `validate_after_inactivity`
376
+
377
+ * Value type is <<number,number>>
378
+ * Default value is `200`
379
+
380
+ How long to wait before checking if the connection is stale before executing a request on a connection using keepalive.
381
+ You may want to set this lower, possibly to 0 if you get connection errors regularly
382
+ Quoting the Apache commons docs (this client is based Apache Commmons):
383
+ 'Defines period of inactivity in milliseconds after which persistent connections must be re-validated prior to being leased to the consumer. Non-positive value passed to this method disables connection validation. This check helps detect connections that have become stale (half-closed) while kept inactive in the pool.'
384
+ See https://hc.apache.org/httpcomponents-client-ga/httpclient/apidocs/org/apache/http/impl/conn/PoolingHttpClientConnectionManager.html#setValidateAfterInactivity(int)[these docs for more info]
385
+
386
+
387
+
388
+ [id="plugins-{type}s-{plugin}-common-options"]
389
+ include::{include_path}/{type}.asciidoc[]
390
+
391
+ :default_codec!: