fluent-plugin-elasticsearch 3.5.3 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.coveralls.yml +2 -2
- data/.editorconfig +9 -9
- data/.gitignore +18 -18
- data/.travis.yml +18 -18
- data/Gemfile +9 -9
- data/History.md +390 -384
- data/ISSUE_TEMPLATE.md +27 -27
- data/LICENSE.txt +201 -201
- data/PULL_REQUEST_TEMPLATE.md +10 -10
- data/README.md +1515 -1398
- 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 +122 -122
- data/lib/fluent/plugin/elasticsearch_index_template.rb +112 -110
- 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 +777 -776
- 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 +503 -503
- data/test/plugin/test_filter_elasticsearch_genid.rb +44 -44
- data/test/plugin/test_out_elasticsearch.rb +2720 -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 -3
@@ -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.4
|
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-07-
|
12
|
+
date: 2019-07-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
@@ -181,7 +181,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
181
181
|
- !ruby/object:Gem::Version
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
|
-
|
184
|
+
rubyforge_project:
|
185
|
+
rubygems_version: 2.7.3
|
185
186
|
signing_key:
|
186
187
|
specification_version: 4
|
187
188
|
summary: Elasticsearch output plugin for Fluent event collector
|