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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 461df2e702f10d6e2baa9f9b653f145e95991a77
4
- data.tar.gz: f04b32bfae99d5b29b7a19a1683ac56f6cd1ac7e
3
+ metadata.gz: 4bb85a10c092120788256aa5d94f710bcc7163db
4
+ data.tar.gz: 612cd465eb7606aad9dd952d051c601ef2e0e226
5
5
  SHA512:
6
- metadata.gz: 12c2fc39768084afbf93a8f16da506ea708d246e01be3dbfffb2a8a73151d1340f9638bbe3949e398131be0748a774c73d58e3de8580ae45f894a520a8cdaa04
7
- data.tar.gz: 8657647faf4552ce2c3490dde7c88dd6a0b0908a7301aeaf9a1d6ac9341d341cc229fe97f60420b415a0912594a74a6012a84cc01398079e51a4658d7f248179
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|
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-elasticsearch'
4
- s.version = '0.2.3'
4
+ s.version = '0.2.4'
5
5
  s.licenses = ['apache-2.0']
6
6
  s.summary = "Logstash Output to Elasticsearch"
7
7
  s.description = "Output events to elasticsearch"
@@ -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.3
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-20 00:00:00.000000000 Z
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: '0'
27
- - !ruby/object:Gem::Dependency
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: 1.0.6
53
+ version: 0.0.17
44
54
  - - ~>
45
55
  - !ruby/object:Gem::Version
46
- version: '1.0'
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.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
- requirement: !ruby/object:Gem::Requirement
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
- name: logstash-core
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.0.42
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.3'
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.1.9
215
+ rubygems_version: 2.4.5
216
216
  signing_key:
217
217
  specification_version: 4
218
218
  summary: Logstash Output to Elasticsearch