logstash-input-elasticsearch 4.0.0 → 4.0.1

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
  SHA1:
3
- metadata.gz: 99cc10fa5daee63fcb318c325f8edaa86c443f22
4
- data.tar.gz: 0dd1acac2ff9314ab1decf1b57782c1ad37c390e
3
+ metadata.gz: 2a0e5a727cc097ec00743d23dcef666cf7e07581
4
+ data.tar.gz: d415d62a7901234a0dfb3e702bf619a000bd51ca
5
5
  SHA512:
6
- metadata.gz: c2b22763cfc5521cbbff86c11d7c01030f4e9d88df57d7d6c02813eaf97524e34e641e2ee109c6d2aa14f270e04a98c2c4d1818d8880fd9d779be6fd982a6146
7
- data.tar.gz: c89c0da4e80ef31a41d1ac15c13fe34ba5d4eb3ed0ec6cff356b23fd29aeec7b61d65f6d7562bcc663eb05f67a3ca2ccbb4888772715c1fa31467d0eb83bf820
6
+ metadata.gz: 0e48d5b0e0179e48f96b93080e7b688e84d5c218e302d0d6a5e622432358e1659c8e10365d9d9a7ee7e68d4047884935be2ef7efc6bbf4cf64f0769a7b135eed
7
+ data.tar.gz: d430ea78cb36bfdd40fca16c92165627306dccf1b5d2d7ed998ba416a2a180b4767b557354c14c6f3d0ada60e381c71b06f3053d9ab97f68669690953f593c61
@@ -1,3 +1,7 @@
1
+ ## 4.0.1
2
+ - Switch internal HTTP client to support TLSv1.2
3
+ - Upgrade ES client internally to better support ES 5.x
4
+
1
5
  ## 4.0.0
2
6
  - Remove `scan` from list of options as this is no longer allowed in
3
7
  Elasticsearch 5.0.
@@ -1,6 +1,8 @@
1
1
  # encoding: utf-8
2
2
  require "logstash/inputs/base"
3
3
  require "logstash/namespace"
4
+ require 'elasticsearch'
5
+ require 'elasticsearch/transport/transport/http/manticore'
4
6
  require "base64"
5
7
 
6
8
  # Read from an Elasticsearch cluster, based on search query results.
@@ -101,12 +103,10 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
101
103
  # SSL
102
104
  config :ssl, :validate => :boolean, :default => false
103
105
 
104
- # SSL Certificate Authority file
106
+ # SSL Certificate Authority file in PEM encoded format, must also include any chain certificates as necessary
105
107
  config :ca_file, :validate => :path
106
108
 
107
109
  def register
108
- require "elasticsearch"
109
-
110
110
  @options = {
111
111
  :index => @index,
112
112
  :body => @query,
@@ -117,8 +117,10 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
117
117
  transport_options = {}
118
118
 
119
119
  if @user && @password
120
- token = Base64.strict_encode64("#{@user}:#{@password.value}")
121
- transport_options[:headers] = { :Authorization => "Basic #{token}" }
120
+ transport_options[:auth] = {
121
+ :user => @user,
122
+ :password => @password.value
123
+ }
122
124
  end
123
125
 
124
126
  hosts = if @ssl then
@@ -130,11 +132,17 @@ class LogStash::Inputs::Elasticsearch < LogStash::Inputs::Base
130
132
  @hosts
131
133
  end
132
134
 
135
+ client_options = {
136
+ :hosts => hosts,
137
+ :transport_options => transport_options,
138
+ :transport_class => Elasticsearch::Transport::Transport::HTTP::Manticore
139
+ }
140
+
133
141
  if @ssl && @ca_file
134
- transport_options[:ssl] = { :ca_file => @ca_file }
142
+ client_options[:ssl] = { :enabled => true, :ca_file => @ca_file }
135
143
  end
136
-
137
- @client = Elasticsearch::Client.new(:hosts => hosts, :transport_options => transport_options)
144
+
145
+ @client = Elasticsearch::Client.new(client_options)
138
146
  end
139
147
 
140
148
  def run(output_queue)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-input-elasticsearch'
4
- s.version = '4.0.0'
4
+ s.version = '4.0.1'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "Read from an Elasticsearch cluster, based on search query results"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
@@ -22,7 +22,9 @@ Gem::Specification.new do |s|
22
22
  # Gem dependencies
23
23
  s.add_runtime_dependency "logstash-core-plugin-api", ">= 1.60", "<= 2.99"
24
24
 
25
- s.add_runtime_dependency 'elasticsearch', ['>= 1.0.6', '~> 1.0']
25
+ s.add_runtime_dependency 'elasticsearch', ['>= 5.0.0', '< 6.0.0']
26
+ s.add_runtime_dependency "manticore", '>= 0.5.4', '< 1.0.0'
27
+
26
28
 
27
29
  s.add_runtime_dependency 'logstash-codec-json'
28
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-13 00:00:00.000000000 Z
11
+ date: 2017-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -35,10 +35,10 @@ dependencies:
35
35
  requirements:
36
36
  - - ">="
37
37
  - !ruby/object:Gem::Version
38
- version: 1.0.6
39
- - - "~>"
38
+ version: 5.0.0
39
+ - - "<"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: 6.0.0
42
42
  name: elasticsearch
43
43
  prerelease: false
44
44
  type: :runtime
@@ -46,10 +46,30 @@ dependencies:
46
46
  requirements:
47
47
  - - ">="
48
48
  - !ruby/object:Gem::Version
49
- version: 1.0.6
50
- - - "~>"
49
+ version: 5.0.0
50
+ - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '1.0'
52
+ version: 6.0.0
53
+ - !ruby/object:Gem::Dependency
54
+ requirement: !ruby/object:Gem::Requirement
55
+ requirements:
56
+ - - ">="
57
+ - !ruby/object:Gem::Version
58
+ version: 0.5.4
59
+ - - "<"
60
+ - !ruby/object:Gem::Version
61
+ version: 1.0.0
62
+ name: manticore
63
+ prerelease: false
64
+ type: :runtime
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: 0.5.4
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: 1.0.0
53
73
  - !ruby/object:Gem::Dependency
54
74
  requirement: !ruby/object:Gem::Requirement
55
75
  requirements: