logstash-output-amazon_es 6.4.1-java → 6.4.2-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17eb123cc2139d8477a04a8a3d809d43b49010f9fe8582933193ca16ebe6b44f
4
- data.tar.gz: 420352d6cd91730c4fd8d61248336d9cda161a676518768d6a8c958e522b28eb
3
+ metadata.gz: e0343008189d553e78c73eb48ae74ca2e95cea78ad659c7b423411981c75154a
4
+ data.tar.gz: 5cb2f2372bccf1b0740b3f2ae67ad3b817c78e7beeb76a34ec7832d19d65c2c6
5
5
  SHA512:
6
- metadata.gz: 6d9ac4617b99e7703375d34cbaf45ad4610107eafacbb21287fc68eb83a37e8d7ebe139b12fb74b6204d80aa32e37b1bdf3ec527762cd067c377169c0024e985
7
- data.tar.gz: 78bf8133942d515e8d268eed0609da9202b4bdd1789ed4ed9c9fe40ca01df62227249d104b50fe2721e8deaea3f63ffa22673627cd65a6873c9de3ca9b1f33ca
6
+ metadata.gz: 416a7eae7b7fe0e1c82a6b7de2dd8cd96533c4e311d1e330026bb497100580de2baba138ba5cc1d4737cba1700406b1efe0473a2ff66ae2d934bb951c40c0ea5
7
+ data.tar.gz: b4dd8ae83a614568739beb66623996b8e75e02efc16464614a72faf9d722aecffd9d12175d5665f362a4c23adbb4e0fd9b18438fb43400933ad0bdd1d5aa7ce3
@@ -33,12 +33,15 @@ module LogStash; module Outputs; class ElasticSearch; class HttpClient;
33
33
  @port = options[:port] || 9200
34
34
  @protocol = options[:protocol] || 'http'
35
35
  @region = options[:region] || 'us-east-1'
36
- @aws_access_key_id = options[:aws_access_key_id] || nil
37
- @aws_secret_access_key = options[:aws_secret_access_key] || nil
38
- @session_token = options[:session_token] || nil
39
- @profile = options[:profile] || 'default'
40
- @instance_cred_retries = options[:instance_profile_credentials_retries] || 0
41
- @instance_cred_timeout = options[:instance_profile_credentials_timeout] || 1
36
+ aws_access_key_id = options[:aws_access_key_id] || nil
37
+ aws_secret_access_key = options[:aws_secret_access_key] || nil
38
+ session_token = options[:session_token] || nil
39
+ profile = options[:profile] || 'default'
40
+ instance_cred_retries = options[:instance_profile_credentials_retries] || 0
41
+ instance_cred_timeout = options[:instance_profile_credentials_timeout] || 1
42
+
43
+ credential_config = CredentialConfig.new(aws_access_key_id, aws_secret_access_key, session_token, profile, instance_cred_retries, instance_cred_timeout, @region)
44
+ @credentials = Aws::CredentialProviderChain.new(credential_config).resolve
42
45
 
43
46
  if options[:proxy]
44
47
  options[:proxy] = manticore_proxy_hash(options[:proxy])
@@ -102,13 +105,7 @@ module LogStash; module Outputs; class ElasticSearch; class HttpClient;
102
105
  key = Seahorse::Client::Http::Request.new(options={:endpoint=>url, :http_method => method.to_s.upcase,
103
106
  :headers => params[:headers],:body => params[:body]})
104
107
 
105
-
106
-
107
- credential_config = CredentialConfig.new(@aws_access_key_id, @aws_secret_access_key, @session_token, @profile, @instance_cred_retries, @instance_cred_timeout, @region)
108
-
109
-
110
- credentials = Aws::CredentialProviderChain.new(credential_config).resolve
111
- aws_signer = Aws::Signers::V4.new(credentials, 'es', @region )
108
+ aws_signer = Aws::Signers::V4.new(@credentials, 'es', @region )
112
109
 
113
110
 
114
111
  signed_key = aws_signer.sign(key)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-amazon_es'
3
- s.version = '6.4.1'
3
+ s.version = '6.4.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = "Logstash Output to Amazon Elasticsearch Service"
6
6
  s.description = "Output events to Amazon Elasticsearch Service with V4 signing"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-amazon_es
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.4.1
4
+ version: 6.4.2
5
5
  platform: java
6
6
  authors:
7
7
  - Amazon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-10 00:00:00.000000000 Z
11
+ date: 2019-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement