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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/logstash/inputs/elasticsearch.rb +16 -8
- data/logstash-input-elasticsearch.gemspec +4 -2
- metadata +28 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a0e5a727cc097ec00743d23dcef666cf7e07581
|
4
|
+
data.tar.gz: d415d62a7901234a0dfb3e702bf619a000bd51ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e48d5b0e0179e48f96b93080e7b688e84d5c218e302d0d6a5e622432358e1659c8e10365d9d9a7ee7e68d4047884935be2ef7efc6bbf4cf64f0769a7b135eed
|
7
|
+
data.tar.gz: d430ea78cb36bfdd40fca16c92165627306dccf1b5d2d7ed998ba416a2a180b4767b557354c14c6f3d0ada60e381c71b06f3053d9ab97f68669690953f593c61
|
data/CHANGELOG.md
CHANGED
@@ -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
|
-
|
121
|
-
|
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
|
-
|
142
|
+
client_options[:ssl] = { :enabled => true, :ca_file => @ca_file }
|
135
143
|
end
|
136
|
-
|
137
|
-
@client = Elasticsearch::Client.new(
|
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.
|
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', ['>=
|
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.
|
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:
|
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:
|
39
|
-
- - "
|
38
|
+
version: 5.0.0
|
39
|
+
- - "<"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
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:
|
50
|
-
- - "
|
49
|
+
version: 5.0.0
|
50
|
+
- - "<"
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
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:
|