fluentd 1.12.1 → 1.13.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of fluentd might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.deepsource.toml +13 -0
- data/.github/ISSUE_TEMPLATE/config.yml +2 -2
- data/.github/workflows/linux-test.yaml +36 -0
- data/.github/workflows/{build.yaml → macos-test.yaml} +8 -7
- data/.github/workflows/windows-test.yaml +46 -0
- data/.gitlab-ci.yml +19 -19
- data/CHANGELOG.md +163 -0
- data/CONTRIBUTING.md +2 -2
- data/MAINTAINERS.md +5 -2
- data/README.md +6 -3
- data/example/counter.conf +1 -1
- data/fluentd.gemspec +4 -2
- data/lib/fluent/command/bundler_injection.rb +1 -1
- data/lib/fluent/command/cat.rb +19 -4
- data/lib/fluent/command/fluentd.rb +1 -2
- data/lib/fluent/command/plugin_config_formatter.rb +2 -1
- data/lib/fluent/command/plugin_generator.rb +31 -1
- data/lib/fluent/compat/parser.rb +2 -2
- data/lib/fluent/config/section.rb +6 -1
- data/lib/fluent/config/types.rb +2 -2
- data/lib/fluent/event.rb +3 -13
- data/lib/fluent/load.rb +0 -1
- data/lib/fluent/log.rb +1 -0
- data/lib/fluent/plugin/file_wrapper.rb +49 -4
- data/lib/fluent/plugin/formatter_ltsv.rb +2 -2
- data/lib/fluent/plugin/in_http.rb +11 -1
- data/lib/fluent/plugin/in_monitor_agent.rb +1 -1
- data/lib/fluent/plugin/in_tail.rb +140 -41
- data/lib/fluent/plugin/in_tail/position_file.rb +15 -1
- data/lib/fluent/plugin/out_copy.rb +18 -5
- data/lib/fluent/plugin/out_exec_filter.rb +3 -3
- data/lib/fluent/plugin/out_forward.rb +75 -61
- data/lib/fluent/plugin/output.rb +11 -9
- data/lib/fluent/plugin/parser_csv.rb +2 -2
- data/lib/fluent/plugin/parser_syslog.rb +2 -2
- data/lib/fluent/plugin/service_discovery.rb +0 -15
- data/lib/fluent/plugin/storage_local.rb +4 -4
- data/lib/fluent/plugin_helper/http_server/router.rb +1 -1
- data/lib/fluent/plugin_helper/server.rb +4 -2
- data/lib/fluent/plugin_helper/service_discovery.rb +39 -1
- data/lib/fluent/plugin_helper/service_discovery/manager.rb +11 -5
- data/lib/fluent/plugin_helper/socket_option.rb +2 -2
- data/lib/fluent/supervisor.rb +16 -1
- data/lib/fluent/system_config.rb +14 -0
- data/lib/fluent/time.rb +57 -1
- data/lib/fluent/version.rb +1 -1
- data/templates/new_gem/fluent-plugin.gemspec.erb +3 -3
- data/test/command/test_cat.rb +99 -0
- data/test/command/test_fluentd.rb +8 -0
- data/test/config/test_configurable.rb +1 -1
- data/test/config/test_section.rb +9 -0
- data/test/config/test_system_config.rb +46 -0
- data/test/plugin/in_tail/test_io_handler.rb +4 -4
- data/test/plugin/in_tail/test_position_file.rb +58 -4
- data/test/plugin/test_file_wrapper.rb +115 -0
- data/test/plugin/test_in_exec.rb +1 -1
- data/test/plugin/test_in_forward.rb +59 -83
- data/test/plugin/test_in_http.rb +58 -40
- data/test/plugin/test_in_syslog.rb +66 -56
- data/test/plugin/test_in_tail.rb +298 -26
- data/test/plugin/test_in_tcp.rb +45 -32
- data/test/plugin/test_in_udp.rb +47 -33
- data/test/plugin/test_out_copy.rb +87 -0
- data/test/plugin/test_out_forward.rb +198 -91
- data/test/plugin/test_out_http.rb +1 -1
- data/test/plugin/test_out_stream.rb +18 -8
- data/test/plugin/test_output.rb +15 -3
- data/test/plugin/test_output_as_buffered_backup.rb +2 -0
- data/test/plugin/test_parser_csv.rb +14 -0
- data/test/plugin/test_parser_syslog.rb +14 -0
- data/test/plugin_helper/http_server/test_route.rb +1 -1
- data/test/plugin_helper/service_discovery/test_manager.rb +1 -1
- data/test/plugin_helper/test_child_process.rb +6 -3
- data/test/plugin_helper/test_http_server_helper.rb +34 -27
- data/test/plugin_helper/test_server.rb +144 -139
- data/test/plugin_helper/test_service_discovery.rb +74 -14
- data/test/plugin_helper/test_socket.rb +16 -9
- data/test/test_config.rb +2 -1
- data/test/test_event.rb +16 -0
- data/test/test_formatter.rb +30 -0
- data/test/test_output.rb +2 -2
- data/test/test_supervisor.rb +35 -0
- data/test/test_time_parser.rb +109 -0
- metadata +33 -9
- data/.travis.yml +0 -77
- data/appveyor.yml +0 -31
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluentd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -186,6 +186,26 @@ dependencies:
|
|
186
186
|
- - "<"
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: 1.0.0
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: webrick
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: 1.4.2
|
196
|
+
- - "<"
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: 1.8.0
|
199
|
+
type: :runtime
|
200
|
+
prerelease: false
|
201
|
+
version_requirements: !ruby/object:Gem::Requirement
|
202
|
+
requirements:
|
203
|
+
- - ">="
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: 1.4.2
|
206
|
+
- - "<"
|
207
|
+
- !ruby/object:Gem::Version
|
208
|
+
version: 1.8.0
|
189
209
|
- !ruby/object:Gem::Dependency
|
190
210
|
name: rake
|
191
211
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,14 +268,14 @@ dependencies:
|
|
248
268
|
requirements:
|
249
269
|
- - "~>"
|
250
270
|
- !ruby/object:Gem::Version
|
251
|
-
version: '
|
271
|
+
version: '3.0'
|
252
272
|
type: :development
|
253
273
|
prerelease: false
|
254
274
|
version_requirements: !ruby/object:Gem::Requirement
|
255
275
|
requirements:
|
256
276
|
- - "~>"
|
257
277
|
- !ruby/object:Gem::Version
|
258
|
-
version: '
|
278
|
+
version: '3.0'
|
259
279
|
- !ruby/object:Gem::Dependency
|
260
280
|
name: timecop
|
261
281
|
requirement: !ruby/object:Gem::Requirement
|
@@ -350,18 +370,20 @@ executables:
|
|
350
370
|
extensions: []
|
351
371
|
extra_rdoc_files: []
|
352
372
|
files:
|
373
|
+
- ".deepsource.toml"
|
353
374
|
- ".drone.yml"
|
354
375
|
- ".github/ISSUE_TEMPLATE.md"
|
355
376
|
- ".github/ISSUE_TEMPLATE/bug_report.md"
|
356
377
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
357
378
|
- ".github/ISSUE_TEMPLATE/feature_request.md"
|
358
379
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
359
|
-
- ".github/workflows/build.yaml"
|
360
380
|
- ".github/workflows/issue-auto-closer.yml"
|
381
|
+
- ".github/workflows/linux-test.yaml"
|
382
|
+
- ".github/workflows/macos-test.yaml"
|
361
383
|
- ".github/workflows/stale-actions.yml"
|
384
|
+
- ".github/workflows/windows-test.yaml"
|
362
385
|
- ".gitignore"
|
363
386
|
- ".gitlab-ci.yml"
|
364
|
-
- ".travis.yml"
|
365
387
|
- ADOPTERS.md
|
366
388
|
- AUTHORS
|
367
389
|
- CHANGELOG.md
|
@@ -373,7 +395,6 @@ files:
|
|
373
395
|
- MAINTAINERS.md
|
374
396
|
- README.md
|
375
397
|
- Rakefile
|
376
|
-
- appveyor.yml
|
377
398
|
- bin/fluent-binlog-reader
|
378
399
|
- bin/fluent-ca-generate
|
379
400
|
- bin/fluent-cap-ctl
|
@@ -681,6 +702,7 @@ files:
|
|
681
702
|
- test/command/test_binlog_reader.rb
|
682
703
|
- test/command/test_ca_generate.rb
|
683
704
|
- test/command/test_cap_ctl.rb
|
705
|
+
- test/command/test_cat.rb
|
684
706
|
- test/command/test_ctl.rb
|
685
707
|
- test/command/test_fluentd.rb
|
686
708
|
- test/command/test_plugin_config_formatter.rb
|
@@ -739,6 +761,7 @@ files:
|
|
739
761
|
- test/plugin/test_buffer_memory_chunk.rb
|
740
762
|
- test/plugin/test_compressable.rb
|
741
763
|
- test/plugin/test_file_util.rb
|
764
|
+
- test/plugin/test_file_wrapper.rb
|
742
765
|
- test/plugin/test_filter.rb
|
743
766
|
- test/plugin/test_filter_grep.rb
|
744
767
|
- test/plugin/test_filter_parser.rb
|
@@ -910,8 +933,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
910
933
|
- !ruby/object:Gem::Version
|
911
934
|
version: '0'
|
912
935
|
requirements: []
|
913
|
-
|
914
|
-
rubygems_version: 2.7.6.2
|
936
|
+
rubygems_version: 3.1.6
|
915
937
|
signing_key:
|
916
938
|
specification_version: 4
|
917
939
|
summary: Fluentd event collector
|
@@ -919,6 +941,7 @@ test_files:
|
|
919
941
|
- test/command/test_binlog_reader.rb
|
920
942
|
- test/command/test_ca_generate.rb
|
921
943
|
- test/command/test_cap_ctl.rb
|
944
|
+
- test/command/test_cat.rb
|
922
945
|
- test/command/test_ctl.rb
|
923
946
|
- test/command/test_fluentd.rb
|
924
947
|
- test/command/test_plugin_config_formatter.rb
|
@@ -977,6 +1000,7 @@ test_files:
|
|
977
1000
|
- test/plugin/test_buffer_memory_chunk.rb
|
978
1001
|
- test/plugin/test_compressable.rb
|
979
1002
|
- test/plugin/test_file_util.rb
|
1003
|
+
- test/plugin/test_file_wrapper.rb
|
980
1004
|
- test/plugin/test_filter.rb
|
981
1005
|
- test/plugin/test_filter_grep.rb
|
982
1006
|
- test/plugin/test_filter_parser.rb
|
data/.travis.yml
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
language: ruby
|
2
|
-
cache: bundler
|
3
|
-
|
4
|
-
# script: bundle exec rake test TESTOPTS=-v
|
5
|
-
|
6
|
-
# http://rubies.travis-ci.org/
|
7
|
-
# See here for osx_image -> OSX versions: https://docs.travis-ci.com/user/languages/objective-c
|
8
|
-
matrix:
|
9
|
-
include:
|
10
|
-
- rvm: 2.4.9
|
11
|
-
os: linux
|
12
|
-
env: USE_CAPNG=false
|
13
|
-
- rvm: 2.4.9
|
14
|
-
os: linux-ppc64le
|
15
|
-
env: USE_CAPNG=false
|
16
|
-
- rvm: 2.5.7
|
17
|
-
os: linux
|
18
|
-
env: USE_CAPNG=false
|
19
|
-
- rvm: 2.5.7
|
20
|
-
os: linux
|
21
|
-
arch: s390x
|
22
|
-
dist: xenial
|
23
|
-
env: USE_CAPNG=false
|
24
|
-
- rvm: 2.6.5
|
25
|
-
os: linux
|
26
|
-
env: USE_CAPNG=false
|
27
|
-
- rvm: 2.6.6
|
28
|
-
os: linux
|
29
|
-
env: USE_CAPNG=true
|
30
|
-
- rvm: 2.7.0
|
31
|
-
os: linux
|
32
|
-
env: USE_CAPNG=false
|
33
|
-
- rvm: ruby-head
|
34
|
-
os: linux
|
35
|
-
env: USE_CAPNG=false
|
36
|
-
- rvm: ruby-head
|
37
|
-
os: linux-ppc64le
|
38
|
-
env: USE_CAPNG=false
|
39
|
-
- rvm: 2.4.6
|
40
|
-
os: osx
|
41
|
-
osx_image: xcode8.3 # OSX 10.12
|
42
|
-
env: USE_CAPNG=false
|
43
|
-
- rvm: ruby-head
|
44
|
-
os: osx
|
45
|
-
osx_image: xcode8.3 # OSX 10.12
|
46
|
-
env: USE_CAPNG=false
|
47
|
-
allow_failures:
|
48
|
-
- rvm: 2.4.6
|
49
|
-
os: osx
|
50
|
-
osx_image: xcode8.3
|
51
|
-
env: USE_CAPNG=false
|
52
|
-
- rvm: 2.5.7
|
53
|
-
os: linux
|
54
|
-
arch: s390x
|
55
|
-
dist: xenial
|
56
|
-
env: USE_CAPNG=false
|
57
|
-
- rvm: ruby-head
|
58
|
-
env: USE_CAPNG=false
|
59
|
-
|
60
|
-
branches:
|
61
|
-
only:
|
62
|
-
- master
|
63
|
-
|
64
|
-
before_install: |
|
65
|
-
gem update --system=3.1.2
|
66
|
-
if [[ x"${USE_CAPNG}" == "xtrue" ]]; then
|
67
|
-
echo 'gem "capng_c"' >> Gemfile.local
|
68
|
-
fi
|
69
|
-
|
70
|
-
sudo: false
|
71
|
-
dist: trusty # for TLSv1.2 support
|
72
|
-
|
73
|
-
addons:
|
74
|
-
apt:
|
75
|
-
packages:
|
76
|
-
- libgmp3-dev
|
77
|
-
- libcap-ng-dev
|
data/appveyor.yml
DELETED
@@ -1,31 +0,0 @@
|
|
1
|
-
version: '{build}'
|
2
|
-
|
3
|
-
# init:
|
4
|
-
# - ps: iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
|
5
|
-
|
6
|
-
install:
|
7
|
-
- SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
|
8
|
-
- ruby --version
|
9
|
-
- gem --version
|
10
|
-
# stay 0.14.0 for Windows CI until https://github.com/socketry/protocol-http2/issues/6 will be fixed
|
11
|
-
- ps: Write-Output "gem 'protocol-http2', ['<= 0.14.0']" | Out-File -FilePath Gemfile.local -Encoding default
|
12
|
-
- type Gemfile.local
|
13
|
-
- ridk.cmd exec bundle install
|
14
|
-
build: off
|
15
|
-
test_script:
|
16
|
-
- bundle exec rake test
|
17
|
-
# - bundle exec rake test TESTOPTS=-v
|
18
|
-
|
19
|
-
branches:
|
20
|
-
only:
|
21
|
-
- master
|
22
|
-
|
23
|
-
# https://www.appveyor.com/docs/installed-software/#ruby
|
24
|
-
environment:
|
25
|
-
matrix:
|
26
|
-
- ruby_version: "26-x64"
|
27
|
-
- ruby_version: "26"
|
28
|
-
- ruby_version: "25-x64"
|
29
|
-
- ruby_version: "25"
|
30
|
-
- ruby_version: "24-x64"
|
31
|
-
- ruby_version: "24"
|