logstash-output-bcdb 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 0cd0c19b3bdc42dc700c40046971e9073065c3951d76e73f7173e1e5b3bf0f90
4
+ data.tar.gz: 9efcd00f42428b64f4656e7d5fd6a9fe2832c61038f880dd4d24a3854d3cb0aa
5
+ SHA512:
6
+ metadata.gz: 5385a4806f24d92660bd5fefa7dd503f0de45613c4b48cb9fff1f24faa0c99551924c4eae36677454dfc2dabe2742ae428f0cf06f9f59280339202e97883eab0
7
+ data.tar.gz: 3e7eb0f89a2a1ab0cebb0cd82686c8209ea3d2fc38656eaee15dc1878f897265e35c342db8b23e53ffa69c0317cd81ba85f026629f1b90bbfc2950d950bbf965
@@ -0,0 +1,4 @@
1
+
2
+ ## 0.1.0
3
+ - single event insert
4
+ - buffered events insert
@@ -0,0 +1,10 @@
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
+ *
6
+
7
+ Note: If you've sent us patches, bug reports, or otherwise contributed to
8
+ Logstash, and you aren't on the list above and want to be, please let us know
9
+ and we'll make sure you're here. Contributions from folks like you are what make
10
+ 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,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2020 Elastic and contributors
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ 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,109 @@
1
+ # Logstash Plugin
2
+
3
+ [![Travis Build Status](https://travis-ci.org/logstash-plugins/logstash-output-bcdb.svg)](https://travis-ci.org/logstash-plugins/logstash-output-http)
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
+ - You can use the docker-compose file in this repo, before you do `docker-compose up` please modify the config in `dev/logstash/pipeline/logstash.conf`
28
+
29
+ - 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).
30
+
31
+ - Install dependencies
32
+ ```sh
33
+ bundle install
34
+ ```
35
+
36
+ #### Test
37
+
38
+ - Update your dependencies
39
+
40
+ ```sh
41
+ bundle install
42
+ ```
43
+
44
+ - Run tests
45
+
46
+ ```sh
47
+ bundle exec rspec
48
+ ```
49
+
50
+ ### 2. Running your unpublished Plugin in Logstash
51
+
52
+ #### 2.1 Run in a local Logstash clone
53
+
54
+ - Edit Logstash `Gemfile` and add the local plugin path, for example:
55
+ ```ruby
56
+ gem "logstash-filter-awesome", :path => "/your/local/logstash-filter-awesome"
57
+ ```
58
+ - Install plugin
59
+ ```sh
60
+ # Logstash 2.3 and higher
61
+ bin/logstash-plugin install --no-verify
62
+
63
+ # Prior to Logstash 2.3
64
+ bin/plugin install --no-verify
65
+
66
+ ```
67
+ - Run Logstash with your plugin
68
+ ```sh
69
+ bin/logstash -e 'filter {awesome {}}'
70
+ ```
71
+ At this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.
72
+
73
+ #### 2.2 Run in an installed Logstash
74
+
75
+ 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:
76
+
77
+ - Build your plugin gem
78
+ ```sh
79
+ gem build logstash-output-bcdb.gemspec
80
+ ```
81
+ - Install the plugin from the Logstash home
82
+ ```sh
83
+ # Logstash 2.3 and higher
84
+ bin/logstash-plugin install --no-verify
85
+
86
+ # Prior to Logstash 2.3
87
+ bin/plugin install --no-verify
88
+
89
+ ```
90
+ - Start Logstash and proceed to test the plugin
91
+
92
+ **Note** Examples of configuration and additional test files can be used from **./dev** folder. Also read the additional readme.md file locatated in the folder.
93
+
94
+ ## Publishing
95
+
96
+ ```
97
+ gem push <file>.gem
98
+
99
+ ```
100
+
101
+ ## Contributing
102
+
103
+ All contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.
104
+
105
+ 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.
106
+
107
+ It is more important to the community that you are able to contribute.
108
+
109
+ For more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.
@@ -0,0 +1,391 @@
1
+ :plugin: http
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
+ === Http 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!: