fluent-plugin-elasticsearch 3.5.4 → 3.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +2 -2
- data/.editorconfig +9 -9
- data/.gitignore +18 -18
- data/.travis.yml +18 -18
- data/CONTRIBUTING.md +24 -0
- data/Gemfile +9 -9
- data/History.md +402 -390
- data/ISSUE_TEMPLATE.md +30 -27
- data/LICENSE.txt +201 -201
- data/PULL_REQUEST_TEMPLATE.md +10 -10
- data/README.md +1539 -1515
- data/Rakefile +11 -11
- data/appveyor.yml +30 -30
- data/fluent-plugin-elasticsearch.gemspec +31 -31
- data/lib/fluent/log-ext.rb +38 -38
- data/lib/fluent/plugin/elasticsearch_constants.rb +13 -13
- data/lib/fluent/plugin/elasticsearch_error.rb +5 -5
- data/lib/fluent/plugin/elasticsearch_error_handler.rb +127 -122
- data/lib/fluent/plugin/elasticsearch_index_template.rb +112 -112
- data/lib/fluent/plugin/elasticsearch_simple_sniffer.rb +10 -10
- data/lib/fluent/plugin/filter_elasticsearch_genid.rb +25 -25
- data/lib/fluent/plugin/oj_serializer.rb +22 -22
- data/lib/fluent/plugin/out_elasticsearch.rb +778 -777
- data/lib/fluent/plugin/out_elasticsearch_dynamic.rb +262 -262
- data/test/helper.rb +24 -24
- data/test/plugin/test_alias_template.json +8 -8
- data/test/plugin/test_elasticsearch_error_handler.rb +525 -503
- data/test/plugin/test_filter_elasticsearch_genid.rb +44 -44
- data/test/plugin/test_out_elasticsearch.rb +2744 -2720
- data/test/plugin/test_out_elasticsearch_dynamic.rb +1001 -1001
- data/test/plugin/test_template.json +23 -23
- data/test/test_log-ext.rb +35 -35
- metadata +4 -4
@@ -1,23 +1,23 @@
|
|
1
|
-
{
|
2
|
-
"template": "te*",
|
3
|
-
"settings": {
|
4
|
-
"number_of_shards": 1
|
5
|
-
},
|
6
|
-
"mappings": {
|
7
|
-
"type1": {
|
8
|
-
"_source": {
|
9
|
-
"enabled": false
|
10
|
-
},
|
11
|
-
"properties": {
|
12
|
-
"host_name": {
|
13
|
-
"type": "string",
|
14
|
-
"index": "not_analyzed"
|
15
|
-
},
|
16
|
-
"created_at": {
|
17
|
-
"type": "date",
|
18
|
-
"format": "EEE MMM dd HH:mm:ss Z YYYY"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
23
|
-
}
|
1
|
+
{
|
2
|
+
"template": "te*",
|
3
|
+
"settings": {
|
4
|
+
"number_of_shards": 1
|
5
|
+
},
|
6
|
+
"mappings": {
|
7
|
+
"type1": {
|
8
|
+
"_source": {
|
9
|
+
"enabled": false
|
10
|
+
},
|
11
|
+
"properties": {
|
12
|
+
"host_name": {
|
13
|
+
"type": "string",
|
14
|
+
"index": "not_analyzed"
|
15
|
+
},
|
16
|
+
"created_at": {
|
17
|
+
"type": "date",
|
18
|
+
"format": "EEE MMM dd HH:mm:ss Z YYYY"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
data/test/test_log-ext.rb
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
require 'helper'
|
2
|
-
require 'fluent/log-ext'
|
3
|
-
|
4
|
-
class TestFluentLogExtHandler < Test::Unit::TestCase
|
5
|
-
def setup
|
6
|
-
@log_device = Fluent::Test::DummyLogDevice.new
|
7
|
-
dl_opts = {:log_level => ServerEngine::DaemonLogger::INFO}
|
8
|
-
logger = ServerEngine::DaemonLogger.new(@log_device, dl_opts)
|
9
|
-
@log = Fluent::Log.new(logger)
|
10
|
-
end
|
11
|
-
|
12
|
-
def test_trace?
|
13
|
-
assert_false @log.respond_to?(:trace?)
|
14
|
-
end
|
15
|
-
|
16
|
-
def test_debug?
|
17
|
-
assert_true @log.respond_to?(:debug?)
|
18
|
-
end
|
19
|
-
|
20
|
-
def test_info?
|
21
|
-
assert_true @log.respond_to?(:info?)
|
22
|
-
end
|
23
|
-
|
24
|
-
def test_warn?
|
25
|
-
assert_true @log.respond_to?(:warn?)
|
26
|
-
end
|
27
|
-
|
28
|
-
def test_error?
|
29
|
-
assert_true @log.respond_to?(:error?)
|
30
|
-
end
|
31
|
-
|
32
|
-
def test_fatal?
|
33
|
-
assert_true @log.respond_to?(:fatal?)
|
34
|
-
end
|
35
|
-
end
|
1
|
+
require 'helper'
|
2
|
+
require 'fluent/log-ext'
|
3
|
+
|
4
|
+
class TestFluentLogExtHandler < Test::Unit::TestCase
|
5
|
+
def setup
|
6
|
+
@log_device = Fluent::Test::DummyLogDevice.new
|
7
|
+
dl_opts = {:log_level => ServerEngine::DaemonLogger::INFO}
|
8
|
+
logger = ServerEngine::DaemonLogger.new(@log_device, dl_opts)
|
9
|
+
@log = Fluent::Log.new(logger)
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_trace?
|
13
|
+
assert_false @log.respond_to?(:trace?)
|
14
|
+
end
|
15
|
+
|
16
|
+
def test_debug?
|
17
|
+
assert_true @log.respond_to?(:debug?)
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_info?
|
21
|
+
assert_true @log.respond_to?(:info?)
|
22
|
+
end
|
23
|
+
|
24
|
+
def test_warn?
|
25
|
+
assert_true @log.respond_to?(:warn?)
|
26
|
+
end
|
27
|
+
|
28
|
+
def test_error?
|
29
|
+
assert_true @log.respond_to?(:error?)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_fatal?
|
33
|
+
assert_true @log.respond_to?(:fatal?)
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-elasticsearch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diogo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-
|
12
|
+
date: 2019-08-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -135,6 +135,7 @@ files:
|
|
135
135
|
- ".editorconfig"
|
136
136
|
- ".gitignore"
|
137
137
|
- ".travis.yml"
|
138
|
+
- CONTRIBUTING.md
|
138
139
|
- Gemfile
|
139
140
|
- History.md
|
140
141
|
- ISSUE_TEMPLATE.md
|
@@ -181,8 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
182
|
- !ruby/object:Gem::Version
|
182
183
|
version: '0'
|
183
184
|
requirements: []
|
184
|
-
|
185
|
-
rubygems_version: 2.7.3
|
185
|
+
rubygems_version: 3.0.3
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Elasticsearch output plugin for Fluent event collector
|