logstash-mixin-http_client 1.0.1 → 1.0.2
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 +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/logstash/plugin_mixins/http_client.rb +18 -12
- data/logstash-mixin-http_client.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a66e6686bef46e17adf671b8d5107bd32fab4ab
|
4
|
+
data.tar.gz: 520939e53295458df08f86ac7c535ff6dcd6d6fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 039b6f9f41a9309ab44d0ca7e4a9255beff4648951f49e693aa3103e140063d38d852520b7f0f8d9afeeaba8fd2f3b4bae52a5736a9a3ffef48daf86c876191d
|
7
|
+
data.tar.gz: f4df34ec419ce8d17fa2017685c3230791ffbd3bcd86750cb9b309df951834ad142b85f7758230ad0ef1e3708d14941fbe08145b0bdba0ab7af8c37557eac8b4
|
data/CHANGELOG.md
CHANGED
@@ -18,38 +18,42 @@ module LogStash::PluginMixins::HttpClient
|
|
18
18
|
# Timeout (in seconds) for the entire request
|
19
19
|
config :request_timeout, :validate => :number, :default => 60
|
20
20
|
|
21
|
-
# Timeout (in seconds) to wait for data on the socket. Default is 10s
|
21
|
+
# Timeout (in seconds) to wait for data on the socket. Default is `10s`
|
22
22
|
config :socket_timeout, :validate => :number, :default => 10
|
23
23
|
|
24
|
-
# Timeout (in seconds) to wait for a connection to be established. Default is 10s
|
24
|
+
# Timeout (in seconds) to wait for a connection to be established. Default is `10s`
|
25
25
|
config :connect_timeout, :validate => :number, :default => 10
|
26
26
|
|
27
|
-
# Should redirects be followed? Defaults to true
|
27
|
+
# Should redirects be followed? Defaults to `true`
|
28
28
|
config :follow_redirects, :validate => :boolean, :default => true
|
29
29
|
|
30
|
-
# Max number of concurrent connections. Defaults to 50
|
30
|
+
# Max number of concurrent connections. Defaults to `50`
|
31
31
|
config :pool_max, :validate => :number, :default => 50
|
32
32
|
|
33
|
-
# Max number of concurrent connections to a single host. Defaults to 25
|
33
|
+
# Max number of concurrent connections to a single host. Defaults to `25`
|
34
34
|
config :pool_max_per_route, :validate => :number, :default => 25
|
35
35
|
|
36
36
|
# Turn this on to enable HTTP keepalive support
|
37
37
|
config :keepalive, :validate => :boolean, :default => true
|
38
38
|
|
39
|
-
# How many times should the client retry a failing URL? Default is 0
|
39
|
+
# How many times should the client retry a failing URL? Default is `0`
|
40
40
|
config :automatic_retries, :validate => :number, :default => 0
|
41
41
|
|
42
|
+
# Set this to false to disable SSL/TLS certificate validation
|
43
|
+
# Note: setting this to false is generally considered insecure!
|
44
|
+
config :ssl_certificate_validation, :validate => :boolean, :default => true
|
45
|
+
|
42
46
|
# If you need to use a custom X.509 CA (.pem certs) specify the path to that here
|
43
47
|
config :cacert, :validate => :path
|
44
48
|
|
45
|
-
# If you need to use a custom keystore (
|
49
|
+
# If you need to use a custom keystore (`.jks`) specify that here
|
46
50
|
config :truststore, :validate => :path
|
47
51
|
|
48
52
|
# Specify the keystore password here.
|
49
53
|
# Note, most .jks files created with keytool require a password!
|
50
54
|
config :truststore_password, :validate => :password
|
51
55
|
|
52
|
-
# Specify the keystore type here. One of
|
56
|
+
# Specify the keystore type here. One of `JKS` or `PKCS12`. Default is `JKS`
|
53
57
|
config :truststore_type, :validate => :string, :default => "JKS"
|
54
58
|
|
55
59
|
# Enable cookie support. With this enabled the client will persist cookies
|
@@ -57,9 +61,10 @@ module LogStash::PluginMixins::HttpClient
|
|
57
61
|
config :cookies, :validate => :boolean, :default => true
|
58
62
|
|
59
63
|
# If you'd like to use an HTTP proxy . This supports multiple configuration syntaxes:
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
64
|
+
#
|
65
|
+
# 1. Proxy host in form: `http://proxy.org:1234`
|
66
|
+
# 2. Proxy host in form: `{host => "proxy.org", port => 80, scheme => 'http', user => 'username@host', password => 'password'}`
|
67
|
+
# 3. Proxy host in form: `{url => 'http://proxy.org:1234', user => 'username@host', password => 'password'}`
|
63
68
|
config :proxy
|
64
69
|
|
65
70
|
# If you'd like to use a client certificate (note, most people don't want this) set the path to the x509 cert here
|
@@ -79,7 +84,8 @@ module LogStash::PluginMixins::HttpClient
|
|
79
84
|
pool_max: @pool_max,
|
80
85
|
pool_max_per_route: @pool_max_per_route,
|
81
86
|
cookies: @cookies,
|
82
|
-
keepalive: @keepalive
|
87
|
+
keepalive: @keepalive,
|
88
|
+
verify: @ssl_certificate_validation
|
83
89
|
}
|
84
90
|
|
85
91
|
if @proxy
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-mixin-http_client'
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
s.licenses = ['Apache License (2.0)']
|
5
5
|
s.summary = "AWS mixins to provide a unified interface for Amazon Webservice"
|
6
6
|
s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-mixin-http_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core
|