logstash-output-elasticsearch 0.2.3-java → 0.2.4-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/logstash/outputs/elasticsearch.rb +0 -10
- data/logstash-output-elasticsearch.gemspec +1 -1
- data/spec/outputs/elasticsearch_spec.rb +0 -28
- metadata +45 -45
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bb85a10c092120788256aa5d94f710bcc7163db
|
4
|
+
data.tar.gz: 612cd465eb7606aad9dd952d051c601ef2e0e226
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc8be1e0ee550a2d5103041393c14f465ceb16920a37af0e3386efc7911e1d43d78efb86bf36d0a1642aded4900244fde6578b2f246d9b4ab57aa22d3e5adf2b
|
7
|
+
data.tar.gz: b8422207b16d23ce6f88176f10b21d9f4d0ec853ecd2390626fd18f3c5555f5d7cb26244d50e105b32cb18ce5637569a17212821f3103e1dd5bfc0846b066dd3
|
@@ -393,7 +393,6 @@ class LogStash::Outputs::ElasticSearch < LogStash::Outputs::Base
|
|
393
393
|
end
|
394
394
|
template_json = IO.read(@template).gsub(/\n/,'')
|
395
395
|
template = LogStash::Json.load(template_json)
|
396
|
-
template['template'] = wildcard_substitute(@index)
|
397
396
|
@logger.info("Using mapping template", :template => template)
|
398
397
|
return template
|
399
398
|
end # def get_template
|
@@ -613,15 +612,6 @@ class LogStash::Outputs::ElasticSearch < LogStash::Outputs::Base
|
|
613
612
|
}
|
614
613
|
end
|
615
614
|
|
616
|
-
# helper function to replace placeholders
|
617
|
-
# in index names to wildcards
|
618
|
-
# example:
|
619
|
-
# "logs-%{YYYY}" -> "logs-*"
|
620
|
-
private
|
621
|
-
def wildcard_substitute(name)
|
622
|
-
name.gsub(/%\{[^}]+\}/, "*")
|
623
|
-
end
|
624
|
-
|
625
615
|
@@plugins = Gem::Specification.find_all{|spec| spec.name =~ /logstash-output-elasticsearch-/ }
|
626
616
|
|
627
617
|
@@plugins.each do |plugin|
|
@@ -583,34 +583,6 @@ describe "ship lots of events w/ default index_type and dynamic routing key usin
|
|
583
583
|
end
|
584
584
|
end
|
585
585
|
|
586
|
-
describe "wildcard substitution in index templates", :elasticsearch => true do
|
587
|
-
require "logstash/outputs/elasticsearch"
|
588
|
-
|
589
|
-
let(:template) { '{"template" : "not important, will be updated by :index"}' }
|
590
|
-
|
591
|
-
def settings_with_index(index)
|
592
|
-
return {
|
593
|
-
"manage_template" => true,
|
594
|
-
"template_overwrite" => true,
|
595
|
-
"protocol" => "http",
|
596
|
-
"host" => "localhost",
|
597
|
-
"index" => "#{index}"
|
598
|
-
}
|
599
|
-
end
|
600
|
-
|
601
|
-
it "should substitude placeholders" do
|
602
|
-
IO.stub(:read).with(anything) { template }
|
603
|
-
es_output = LogStash::Outputs::ElasticSearch.new(settings_with_index("index-%{YYYY}"))
|
604
|
-
insist { es_output.get_template['template'] } == "index-*"
|
605
|
-
end
|
606
|
-
|
607
|
-
it "should do nothing to an index with no placeholder" do
|
608
|
-
IO.stub(:read).with(anything) { template }
|
609
|
-
es_output = LogStash::Outputs::ElasticSearch.new(settings_with_index("index"))
|
610
|
-
insist { es_output.get_template['template'] } == "index"
|
611
|
-
end
|
612
|
-
end
|
613
|
-
|
614
586
|
describe "index template expected behavior", :elasticsearch => true do
|
615
587
|
["node", "transport", "http"].each do |protocol|
|
616
588
|
context "with protocol => #{protocol}" do
|
metadata
CHANGED
@@ -1,30 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: concurrent-ruby
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
14
20
|
requirement: !ruby/object:Gem::Requirement
|
15
21
|
requirements:
|
16
22
|
- - '>='
|
17
23
|
- !ruby/object:Gem::Version
|
18
24
|
version: '0'
|
19
|
-
name: concurrent-ruby
|
20
25
|
prerelease: false
|
21
26
|
type: :runtime
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: elasticsearch
|
22
29
|
version_requirements: !ruby/object:Gem::Requirement
|
23
30
|
requirements:
|
24
31
|
- - '>='
|
25
32
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
-
|
33
|
+
version: 1.0.6
|
34
|
+
- - ~>
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '1.0'
|
28
37
|
requirement: !ruby/object:Gem::Requirement
|
29
38
|
requirements:
|
30
39
|
- - '>='
|
@@ -33,18 +42,18 @@ dependencies:
|
|
33
42
|
- - ~>
|
34
43
|
- !ruby/object:Gem::Version
|
35
44
|
version: '1.0'
|
36
|
-
name: elasticsearch
|
37
45
|
prerelease: false
|
38
46
|
type: :runtime
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: stud
|
39
49
|
version_requirements: !ruby/object:Gem::Requirement
|
40
50
|
requirements:
|
41
51
|
- - '>='
|
42
52
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
53
|
+
version: 0.0.17
|
44
54
|
- - ~>
|
45
55
|
- !ruby/object:Gem::Version
|
46
|
-
version: '
|
47
|
-
- !ruby/object:Gem::Dependency
|
56
|
+
version: '0.0'
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
58
|
requirements:
|
50
59
|
- - '>='
|
@@ -53,33 +62,25 @@ dependencies:
|
|
53
62
|
- - ~>
|
54
63
|
- !ruby/object:Gem::Version
|
55
64
|
version: '0.0'
|
56
|
-
name: stud
|
57
65
|
prerelease: false
|
58
66
|
type: :runtime
|
67
|
+
- !ruby/object:Gem::Dependency
|
68
|
+
name: cabin
|
59
69
|
version_requirements: !ruby/object:Gem::Requirement
|
60
70
|
requirements:
|
61
|
-
- - '>='
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 0.0.17
|
64
71
|
- - ~>
|
65
72
|
- !ruby/object:Gem::Version
|
66
|
-
version: '0.
|
67
|
-
- !ruby/object:Gem::Dependency
|
73
|
+
version: '0.6'
|
68
74
|
requirement: !ruby/object:Gem::Requirement
|
69
75
|
requirements:
|
70
76
|
- - ~>
|
71
77
|
- !ruby/object:Gem::Version
|
72
78
|
version: '0.6'
|
73
|
-
name: cabin
|
74
79
|
prerelease: false
|
75
80
|
type: :runtime
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - ~>
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '0.6'
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
|
82
|
+
name: logstash-core
|
83
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
84
|
requirements:
|
84
85
|
- - '>='
|
85
86
|
- !ruby/object:Gem::Version
|
@@ -87,10 +88,7 @@ dependencies:
|
|
87
88
|
- - <
|
88
89
|
- !ruby/object:Gem::Version
|
89
90
|
version: 2.0.0
|
90
|
-
|
91
|
-
prerelease: false
|
92
|
-
type: :runtime
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
94
92
|
requirements:
|
95
93
|
- - '>='
|
96
94
|
- !ruby/object:Gem::Version
|
@@ -98,62 +96,64 @@ dependencies:
|
|
98
96
|
- - <
|
99
97
|
- !ruby/object:Gem::Version
|
100
98
|
version: 2.0.0
|
99
|
+
prerelease: false
|
100
|
+
type: :runtime
|
101
101
|
- !ruby/object:Gem::Dependency
|
102
|
+
name: ftw
|
103
|
+
version_requirements: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ~>
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 0.0.42
|
102
108
|
requirement: !ruby/object:Gem::Requirement
|
103
109
|
requirements:
|
104
110
|
- - ~>
|
105
111
|
- !ruby/object:Gem::Version
|
106
112
|
version: 0.0.42
|
107
|
-
name: ftw
|
108
113
|
prerelease: false
|
109
114
|
type: :development
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: logstash-input-generator
|
110
117
|
version_requirements: !ruby/object:Gem::Requirement
|
111
118
|
requirements:
|
112
|
-
- -
|
119
|
+
- - '>='
|
113
120
|
- !ruby/object:Gem::Version
|
114
|
-
version: 0
|
115
|
-
- !ruby/object:Gem::Dependency
|
121
|
+
version: '0'
|
116
122
|
requirement: !ruby/object:Gem::Requirement
|
117
123
|
requirements:
|
118
124
|
- - '>='
|
119
125
|
- !ruby/object:Gem::Version
|
120
126
|
version: '0'
|
121
|
-
name: logstash-input-generator
|
122
127
|
prerelease: false
|
123
128
|
type: :development
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: manticore
|
124
131
|
version_requirements: !ruby/object:Gem::Requirement
|
125
132
|
requirements:
|
126
|
-
- -
|
133
|
+
- - ~>
|
127
134
|
- !ruby/object:Gem::Version
|
128
|
-
version: '0'
|
129
|
-
- !ruby/object:Gem::Dependency
|
135
|
+
version: '0.3'
|
130
136
|
requirement: !ruby/object:Gem::Requirement
|
131
137
|
requirements:
|
132
138
|
- - ~>
|
133
139
|
- !ruby/object:Gem::Version
|
134
140
|
version: '0.3'
|
135
|
-
name: manticore
|
136
141
|
prerelease: false
|
137
142
|
type: :runtime
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: logstash-devutils
|
138
145
|
version_requirements: !ruby/object:Gem::Requirement
|
139
146
|
requirements:
|
140
|
-
- -
|
147
|
+
- - '>='
|
141
148
|
- !ruby/object:Gem::Version
|
142
|
-
version: '0
|
143
|
-
- !ruby/object:Gem::Dependency
|
149
|
+
version: '0'
|
144
150
|
requirement: !ruby/object:Gem::Requirement
|
145
151
|
requirements:
|
146
152
|
- - '>='
|
147
153
|
- !ruby/object:Gem::Version
|
148
154
|
version: '0'
|
149
|
-
name: logstash-devutils
|
150
155
|
prerelease: false
|
151
156
|
type: :development
|
152
|
-
version_requirements: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - '>='
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: '0'
|
157
157
|
description: Output events to elasticsearch
|
158
158
|
email: info@elastic.co
|
159
159
|
executables: []
|
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
212
|
version: '0'
|
213
213
|
requirements: []
|
214
214
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.
|
215
|
+
rubygems_version: 2.4.5
|
216
216
|
signing_key:
|
217
217
|
specification_version: 4
|
218
218
|
summary: Logstash Output to Elasticsearch
|