logstash-output-elasticsearch_java 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/logstash/outputs/elasticsearch_java/elasticsearch-template.json +83 -31
- data/logstash-output-elasticsearch_java.gemspec +1 -1
- data/spec/integration/outputs/retry_spec.rb +2 -2
- data/vendor/jar-dependencies/runtime-jars/{elasticsearch-2.0.0-beta2.jar → elasticsearch-2.0.0.jar} +0 -0
- data/vendor/jar-dependencies/runtime-jars/{netty-3.10.3.Final.jar → netty-3.10.5.Final.jar} +0 -0
- metadata +54 -54
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0129d6fbfed61e0217e1960edf07a2bb871ad248
|
4
|
+
data.tar.gz: d7346627607fc8c022350717d08d4fb7c0e82f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22c727bfda6244ebe80b753f9d1732c1d0b92106bee5622fce63c9ef21cac9006181b4346f557e1ae6c00ad125e52f0021369fe2eb16f71b765eee453e81b28c
|
7
|
+
data.tar.gz: c7f9fb12fd0da3486067aa926970242799e59389d3292be3a31070c7ae30fcfc48932a65721b7fdddf517f98dba7898dfd7b4e4f4de05a723a4901e715797097
|
data/README.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Logstash Plugin
|
2
2
|
|
3
|
+
[![Build
|
4
|
+
Status](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-elasticsearch_java-unit/badge/icon)](http://build-eu-00.elastic.co/view/LS%20Plugins/view/LS%20Outputs/job/logstash-plugin-output-elasticsearch_java-unit/)
|
5
|
+
|
3
6
|
This is a plugin for [Logstash](https://github.com/elastic/logstash).
|
4
7
|
|
5
8
|
It is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.
|
@@ -5,37 +5,89 @@
|
|
5
5
|
},
|
6
6
|
"mappings" : {
|
7
7
|
"_default_" : {
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
8
|
+
"_all" : {"enabled" : true, "omit_norms" : true},
|
9
|
+
"dynamic_templates" : [ {
|
10
|
+
"message_field" : {
|
11
|
+
"match" : "message",
|
12
|
+
"match_mapping_type" : "string",
|
13
|
+
"mapping" : {
|
14
|
+
"type" : "string", "index" : "analyzed", "omit_norms" : true
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}, {
|
18
|
+
"string_fields" : {
|
19
|
+
"match" : "*",
|
20
|
+
"match_mapping_type" : "string",
|
21
|
+
"mapping" : {
|
22
|
+
"type" : "string", "index" : "analyzed", "omit_norms" : true,
|
23
|
+
"fields" : {
|
24
|
+
"raw" : {"type": "string", "index" : "not_analyzed", "doc_values" : true, "ignore_above" : 256}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}, {
|
29
|
+
"float_fields" : {
|
30
|
+
"match" : "*",
|
31
|
+
"match_mapping_type" : "float",
|
32
|
+
"mapping" : { "type" : "float", "doc_values" : true }
|
33
|
+
}
|
34
|
+
}, {
|
35
|
+
"double_fields" : {
|
36
|
+
"match" : "*",
|
37
|
+
"match_mapping_type" : "double",
|
38
|
+
"mapping" : { "type" : "double", "doc_values" : true }
|
39
|
+
}
|
40
|
+
}, {
|
41
|
+
"byte_fields" : {
|
42
|
+
"match" : "*",
|
43
|
+
"match_mapping_type" : "byte",
|
44
|
+
"mapping" : { "type" : "byte", "doc_values" : true }
|
45
|
+
}
|
46
|
+
}, {
|
47
|
+
"short_fields" : {
|
48
|
+
"match" : "*",
|
49
|
+
"match_mapping_type" : "short",
|
50
|
+
"mapping" : { "type" : "short", "doc_values" : true }
|
51
|
+
}
|
52
|
+
}, {
|
53
|
+
"integer_fields" : {
|
54
|
+
"match" : "*",
|
55
|
+
"match_mapping_type" : "integer",
|
56
|
+
"mapping" : { "type" : "integer", "doc_values" : true }
|
57
|
+
}
|
58
|
+
}, {
|
59
|
+
"long_fields" : {
|
60
|
+
"match" : "*",
|
61
|
+
"match_mapping_type" : "long",
|
62
|
+
"mapping" : { "type" : "long", "doc_values" : true }
|
63
|
+
}
|
64
|
+
}, {
|
65
|
+
"date_fields" : {
|
66
|
+
"match" : "*",
|
67
|
+
"match_mapping_type" : "date",
|
68
|
+
"mapping" : { "type" : "date", "doc_values" : true }
|
69
|
+
}
|
70
|
+
}, {
|
71
|
+
"geo_point_fields" : {
|
72
|
+
"match" : "*",
|
73
|
+
"match_mapping_type" : "geo_point",
|
74
|
+
"mapping" : { "type" : "geo_point", "doc_values" : true }
|
75
|
+
}
|
76
|
+
} ],
|
77
|
+
"properties" : {
|
78
|
+
"@timestamp": { "type": "date", "doc_values" : true },
|
79
|
+
"@version": { "type": "string", "index": "not_analyzed", "doc_values" : true },
|
80
|
+
"geoip" : {
|
81
|
+
"type" : "object",
|
82
|
+
"dynamic": true,
|
83
|
+
"properties" : {
|
84
|
+
"ip": { "type": "ip", "doc_values" : true },
|
85
|
+
"location" : { "type" : "geo_point", "doc_values" : true },
|
86
|
+
"latitude" : { "type" : "float", "doc_values" : true },
|
87
|
+
"longitude" : { "type" : "float", "doc_values" : true }
|
88
|
+
}
|
89
|
+
}
|
90
|
+
}
|
39
91
|
}
|
40
92
|
}
|
41
93
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'logstash-output-elasticsearch_java'
|
3
|
-
s.version = '2.0.
|
3
|
+
s.version = '2.0.1'
|
4
4
|
s.licenses = ['apache-2.0']
|
5
5
|
s.summary = "Logstash Output to Elasticsearch using Java node/transport client"
|
6
6
|
s.description = "Output events to elasticsearch using the java client"
|
@@ -98,11 +98,11 @@ describe "failures in bulk class expected behavior", :integration => true do
|
|
98
98
|
{"errors" => true, "statuses" => [429]},
|
99
99
|
{"errors" => true, "statuses" => [429]},
|
100
100
|
{"errors" => true, "statuses" => [429]})
|
101
|
-
expect(subject).to receive(:submit).with([action1]).exactly(max_retries).times.and_call_original
|
101
|
+
expect(subject).to receive(:submit).with([action1]).exactly(max_retries+1).times.and_call_original
|
102
102
|
subject.register
|
103
103
|
subject.receive(event1)
|
104
104
|
subject.buffer_flush(:final => true)
|
105
|
-
sleep(
|
105
|
+
sleep(5)
|
106
106
|
end
|
107
107
|
|
108
108
|
it "non-retryable errors like mapping errors (400) should be dropped and not be retried (unfortunetly)" do
|
data/vendor/jar-dependencies/runtime-jars/{elasticsearch-2.0.0-beta2.jar → elasticsearch-2.0.0.jar}
RENAMED
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,30 +1,39 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-elasticsearch_java
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.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: 2015-
|
11
|
+
date: 2015-11-17 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.13
|
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: 3.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,81 +96,75 @@ dependencies:
|
|
98
96
|
- - <
|
99
97
|
- !ruby/object:Gem::Version
|
100
98
|
version: 3.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: logstash-devutils
|
124
131
|
version_requirements: !ruby/object:Gem::Requirement
|
125
132
|
requirements:
|
126
133
|
- - '>='
|
127
134
|
- !ruby/object:Gem::Version
|
128
135
|
version: '0'
|
129
|
-
- !ruby/object:Gem::Dependency
|
130
136
|
requirement: !ruby/object:Gem::Requirement
|
131
137
|
requirements:
|
132
138
|
- - '>='
|
133
139
|
- !ruby/object:Gem::Version
|
134
140
|
version: '0'
|
135
|
-
name: logstash-devutils
|
136
141
|
prerelease: false
|
137
142
|
type: :development
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: longshoreman
|
138
145
|
version_requirements: !ruby/object:Gem::Requirement
|
139
146
|
requirements:
|
140
147
|
- - '>='
|
141
148
|
- !ruby/object:Gem::Version
|
142
149
|
version: '0'
|
143
|
-
- !ruby/object:Gem::Dependency
|
144
150
|
requirement: !ruby/object:Gem::Requirement
|
145
151
|
requirements:
|
146
152
|
- - '>='
|
147
153
|
- !ruby/object:Gem::Version
|
148
154
|
version: '0'
|
149
|
-
name: longshoreman
|
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 using the java client
|
158
158
|
email: info@elastic.co
|
159
159
|
executables: []
|
160
160
|
extensions: []
|
161
161
|
extra_rdoc_files: []
|
162
162
|
files:
|
163
|
-
- CHANGELOG.md
|
164
|
-
- CONTRIBUTORS
|
165
|
-
- Gemfile
|
166
|
-
- LICENSE
|
167
|
-
- NOTICE.TXT
|
168
|
-
- README.md
|
169
163
|
- lib/logstash-output-elasticsearch_java_jars.rb
|
170
164
|
- lib/logstash/outputs/elasticsearch_java.rb
|
171
165
|
- lib/logstash/outputs/elasticsearch_java/elasticsearch-template.json
|
172
166
|
- lib/logstash/outputs/elasticsearch_java/protocol.rb
|
173
|
-
- logstash-output-elasticsearch_java.gemspec
|
174
167
|
- spec/es_spec_helper.rb
|
175
|
-
- spec/integration/outputs/elasticsearch/node_spec.rb
|
176
168
|
- spec/integration/outputs/index_spec.rb
|
177
169
|
- spec/integration/outputs/retry_spec.rb
|
178
170
|
- spec/integration/outputs/routing_spec.rb
|
@@ -180,8 +172,9 @@ files:
|
|
180
172
|
- spec/integration/outputs/templates_spec.rb
|
181
173
|
- spec/integration/outputs/transport_create_spec.rb
|
182
174
|
- spec/integration/outputs/update_spec.rb
|
183
|
-
- spec/
|
175
|
+
- spec/integration/outputs/elasticsearch/node_spec.rb
|
184
176
|
- spec/unit/outputs/elasticsearch_spec.rb
|
177
|
+
- spec/unit/outputs/elasticsearch/protocol_spec.rb
|
185
178
|
- vendor/jar-dependencies/runtime-jars/HdrHistogram-2.1.6.jar
|
186
179
|
- vendor/jar-dependencies/runtime-jars/antlr-runtime-3.5.jar
|
187
180
|
- vendor/jar-dependencies/runtime-jars/apache-log4j-extras-1.2.17.jar
|
@@ -190,7 +183,7 @@ files:
|
|
190
183
|
- vendor/jar-dependencies/runtime-jars/commons-cli-1.3.1.jar
|
191
184
|
- vendor/jar-dependencies/runtime-jars/compiler-0.8.13.jar
|
192
185
|
- vendor/jar-dependencies/runtime-jars/compress-lzf-1.0.2.jar
|
193
|
-
- vendor/jar-dependencies/runtime-jars/elasticsearch-2.0.0
|
186
|
+
- vendor/jar-dependencies/runtime-jars/elasticsearch-2.0.0.jar
|
194
187
|
- vendor/jar-dependencies/runtime-jars/groovy-all-2.4.4-indy.jar
|
195
188
|
- vendor/jar-dependencies/runtime-jars/guava-18.0.jar
|
196
189
|
- vendor/jar-dependencies/runtime-jars/hppc-0.7.1.jar
|
@@ -218,10 +211,17 @@ files:
|
|
218
211
|
- vendor/jar-dependencies/runtime-jars/lucene-sandbox-5.2.1.jar
|
219
212
|
- vendor/jar-dependencies/runtime-jars/lucene-spatial-5.2.1.jar
|
220
213
|
- vendor/jar-dependencies/runtime-jars/lucene-suggest-5.2.1.jar
|
221
|
-
- vendor/jar-dependencies/runtime-jars/netty-3.10.
|
214
|
+
- vendor/jar-dependencies/runtime-jars/netty-3.10.5.Final.jar
|
222
215
|
- vendor/jar-dependencies/runtime-jars/snakeyaml-1.12.jar
|
223
216
|
- vendor/jar-dependencies/runtime-jars/spatial4j-0.4.1.jar
|
224
217
|
- vendor/jar-dependencies/runtime-jars/t-digest-3.0.jar
|
218
|
+
- logstash-output-elasticsearch_java.gemspec
|
219
|
+
- CHANGELOG.md
|
220
|
+
- README.md
|
221
|
+
- CONTRIBUTORS
|
222
|
+
- Gemfile
|
223
|
+
- LICENSE
|
224
|
+
- NOTICE.TXT
|
225
225
|
homepage: http://logstash.net/
|
226
226
|
licenses:
|
227
227
|
- apache-2.0
|
@@ -244,13 +244,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
244
244
|
version: '0'
|
245
245
|
requirements: []
|
246
246
|
rubyforge_project:
|
247
|
-
rubygems_version: 2.
|
247
|
+
rubygems_version: 2.1.9
|
248
248
|
signing_key:
|
249
249
|
specification_version: 4
|
250
250
|
summary: Logstash Output to Elasticsearch using Java node/transport client
|
251
251
|
test_files:
|
252
252
|
- spec/es_spec_helper.rb
|
253
|
-
- spec/integration/outputs/elasticsearch/node_spec.rb
|
254
253
|
- spec/integration/outputs/index_spec.rb
|
255
254
|
- spec/integration/outputs/retry_spec.rb
|
256
255
|
- spec/integration/outputs/routing_spec.rb
|
@@ -258,5 +257,6 @@ test_files:
|
|
258
257
|
- spec/integration/outputs/templates_spec.rb
|
259
258
|
- spec/integration/outputs/transport_create_spec.rb
|
260
259
|
- spec/integration/outputs/update_spec.rb
|
261
|
-
- spec/
|
260
|
+
- spec/integration/outputs/elasticsearch/node_spec.rb
|
262
261
|
- spec/unit/outputs/elasticsearch_spec.rb
|
262
|
+
- spec/unit/outputs/elasticsearch/protocol_spec.rb
|