fluentd 1.16.0 → 1.16.7
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/.github/ISSUE_TEMPLATE/{bug_report.yaml → bug_report.yml} +1 -0
- data/.github/ISSUE_TEMPLATE/{feature_request.yaml → feature_request.yml} +1 -0
- data/.github/workflows/stale-actions.yml +24 -0
- data/.github/workflows/test.yml +39 -0
- data/CHANGELOG.md +161 -0
- data/CONTRIBUTING.md +1 -1
- data/MAINTAINERS.md +3 -3
- data/README.md +0 -2
- data/SECURITY.md +5 -9
- data/fluentd.gemspec +10 -2
- data/lib/fluent/command/ctl.rb +2 -2
- data/lib/fluent/command/fluentd.rb +1 -1
- data/lib/fluent/command/plugin_config_formatter.rb +1 -1
- data/lib/fluent/config/dsl.rb +1 -1
- data/lib/fluent/config/v1_parser.rb +2 -2
- data/lib/fluent/config/yaml_parser/parser.rb +4 -0
- data/lib/fluent/counter/server.rb +1 -1
- data/lib/fluent/counter/validator.rb +3 -3
- data/lib/fluent/engine.rb +1 -1
- data/lib/fluent/event.rb +8 -4
- data/lib/fluent/log.rb +9 -0
- data/lib/fluent/match.rb +1 -1
- data/lib/fluent/msgpack_factory.rb +6 -1
- data/lib/fluent/plugin/base.rb +1 -1
- data/lib/fluent/plugin/buffer.rb +96 -87
- data/lib/fluent/plugin/filter_record_transformer.rb +1 -1
- data/lib/fluent/plugin/in_forward.rb +1 -1
- data/lib/fluent/plugin/in_http.rb +8 -8
- data/lib/fluent/plugin/in_sample.rb +1 -1
- data/lib/fluent/plugin/in_tail/position_file.rb +32 -18
- data/lib/fluent/plugin/in_tail.rb +99 -31
- data/lib/fluent/plugin/in_tcp.rb +43 -0
- data/lib/fluent/plugin/out_exec_filter.rb +2 -2
- data/lib/fluent/plugin/out_file.rb +8 -0
- data/lib/fluent/plugin/output.rb +2 -2
- data/lib/fluent/plugin/parser_json.rb +4 -12
- data/lib/fluent/plugin_helper/event_loop.rb +2 -2
- data/lib/fluent/plugin_helper/record_accessor.rb +1 -1
- data/lib/fluent/plugin_helper/server.rb +8 -0
- data/lib/fluent/plugin_helper/thread.rb +3 -3
- data/lib/fluent/plugin_id.rb +1 -1
- data/lib/fluent/supervisor.rb +2 -2
- data/lib/fluent/system_config.rb +1 -1
- data/lib/fluent/version.rb +1 -1
- data/lib/fluent/winsvc.rb +28 -3
- data/templates/new_gem/test/helper.rb.erb +0 -1
- data/test/command/test_cat.rb +2 -2
- data/test/command/test_fluentd.rb +65 -12
- data/test/config/test_system_config.rb +2 -2
- data/test/helper.rb +27 -7
- data/test/plugin/in_tail/test_io_handler.rb +13 -14
- data/test/plugin/in_tail/test_position_file.rb +37 -8
- data/test/plugin/out_forward/test_ack_handler.rb +3 -3
- data/test/plugin/out_forward/test_socket_cache.rb +3 -3
- data/test/plugin/test_base.rb +1 -1
- data/test/plugin/test_buffer.rb +110 -0
- data/test/plugin/test_buffer_chunk.rb +11 -0
- data/test/plugin/test_in_forward.rb +11 -10
- data/test/plugin/test_in_http.rb +1 -1
- data/test/plugin/test_in_monitor_agent.rb +6 -6
- data/test/plugin/test_in_syslog.rb +25 -18
- data/test/plugin/test_in_tail.rb +639 -0
- data/test/plugin/test_in_tcp.rb +75 -5
- data/test/plugin/test_in_udp.rb +35 -1
- data/test/plugin/test_in_unix.rb +2 -2
- data/test/plugin/test_multi_output.rb +1 -1
- data/test/plugin/test_out_exec_filter.rb +14 -9
- data/test/plugin/test_out_file.rb +24 -4
- data/test/plugin/test_out_forward.rb +36 -42
- data/test/plugin/test_out_stream.rb +1 -1
- data/test/plugin/test_output.rb +12 -12
- data/test/plugin/test_output_as_buffered.rb +44 -44
- data/test/plugin/test_output_as_buffered_compress.rb +32 -18
- data/test/plugin/test_output_as_buffered_retries.rb +1 -1
- data/test/plugin/test_output_as_buffered_secondary.rb +2 -2
- data/test/plugin/test_parser_json.rb +31 -0
- data/test/plugin_helper/test_child_process.rb +15 -5
- data/test/plugin_helper/test_http_server_helper.rb +1 -1
- data/test/plugin_helper/test_server.rb +110 -38
- data/test/plugin_helper/test_socket.rb +1 -1
- data/test/test_config.rb +6 -0
- data/test/test_event_router.rb +2 -2
- data/test/test_log.rb +38 -1
- data/test/test_msgpack_factory.rb +32 -0
- data/test/test_supervisor.rb +13 -0
- metadata +44 -17
- data/.github/workflows/linux-test.yaml +0 -36
- data/.github/workflows/macos-test.yaml +0 -34
- data/.github/workflows/windows-test.yaml +0 -49
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.16.
|
|
4
|
+
version: 1.16.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sadayuki Furuhashi
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2025-01-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -124,14 +124,14 @@ dependencies:
|
|
|
124
124
|
requirements:
|
|
125
125
|
- - "~>"
|
|
126
126
|
- !ruby/object:Gem::Version
|
|
127
|
-
version: 0.2.
|
|
127
|
+
version: 0.2.5
|
|
128
128
|
type: :runtime
|
|
129
129
|
prerelease: false
|
|
130
130
|
version_requirements: !ruby/object:Gem::Requirement
|
|
131
131
|
requirements:
|
|
132
132
|
- - "~>"
|
|
133
133
|
- !ruby/object:Gem::Version
|
|
134
|
-
version: 0.2.
|
|
134
|
+
version: 0.2.5
|
|
135
135
|
- !ruby/object:Gem::Dependency
|
|
136
136
|
name: tzinfo
|
|
137
137
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -200,6 +200,34 @@ dependencies:
|
|
|
200
200
|
- - "~>"
|
|
201
201
|
- !ruby/object:Gem::Version
|
|
202
202
|
version: '1.4'
|
|
203
|
+
- !ruby/object:Gem::Dependency
|
|
204
|
+
name: console
|
|
205
|
+
requirement: !ruby/object:Gem::Requirement
|
|
206
|
+
requirements:
|
|
207
|
+
- - "<"
|
|
208
|
+
- !ruby/object:Gem::Version
|
|
209
|
+
version: '1.24'
|
|
210
|
+
type: :runtime
|
|
211
|
+
prerelease: false
|
|
212
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
213
|
+
requirements:
|
|
214
|
+
- - "<"
|
|
215
|
+
- !ruby/object:Gem::Version
|
|
216
|
+
version: '1.24'
|
|
217
|
+
- !ruby/object:Gem::Dependency
|
|
218
|
+
name: logger
|
|
219
|
+
requirement: !ruby/object:Gem::Requirement
|
|
220
|
+
requirements:
|
|
221
|
+
- - '='
|
|
222
|
+
- !ruby/object:Gem::Version
|
|
223
|
+
version: 1.6.2
|
|
224
|
+
type: :runtime
|
|
225
|
+
prerelease: false
|
|
226
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
227
|
+
requirements:
|
|
228
|
+
- - '='
|
|
229
|
+
- !ruby/object:Gem::Version
|
|
230
|
+
version: 1.6.2
|
|
203
231
|
- !ruby/object:Gem::Dependency
|
|
204
232
|
name: rake
|
|
205
233
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -274,16 +302,16 @@ dependencies:
|
|
|
274
302
|
name: timecop
|
|
275
303
|
requirement: !ruby/object:Gem::Requirement
|
|
276
304
|
requirements:
|
|
277
|
-
- - "
|
|
305
|
+
- - "<"
|
|
278
306
|
- !ruby/object:Gem::Version
|
|
279
|
-
version:
|
|
307
|
+
version: 0.9.9
|
|
280
308
|
type: :development
|
|
281
309
|
prerelease: false
|
|
282
310
|
version_requirements: !ruby/object:Gem::Requirement
|
|
283
311
|
requirements:
|
|
284
|
-
- - "
|
|
312
|
+
- - "<"
|
|
285
313
|
- !ruby/object:Gem::Version
|
|
286
|
-
version:
|
|
314
|
+
version: 0.9.9
|
|
287
315
|
- !ruby/object:Gem::Dependency
|
|
288
316
|
name: test-unit
|
|
289
317
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -380,13 +408,12 @@ extra_rdoc_files: []
|
|
|
380
408
|
files:
|
|
381
409
|
- ".deepsource.toml"
|
|
382
410
|
- ".github/ISSUE_TEMPLATE.md"
|
|
383
|
-
- ".github/ISSUE_TEMPLATE/bug_report.
|
|
411
|
+
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
|
384
412
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
|
385
|
-
- ".github/ISSUE_TEMPLATE/feature_request.
|
|
413
|
+
- ".github/ISSUE_TEMPLATE/feature_request.yml"
|
|
386
414
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
|
387
|
-
- ".github/workflows/
|
|
388
|
-
- ".github/workflows/
|
|
389
|
-
- ".github/workflows/windows-test.yaml"
|
|
415
|
+
- ".github/workflows/stale-actions.yml"
|
|
416
|
+
- ".github/workflows/test.yml"
|
|
390
417
|
- ".gitignore"
|
|
391
418
|
- ADOPTERS.md
|
|
392
419
|
- AUTHORS
|
|
@@ -942,7 +969,7 @@ homepage: https://www.fluentd.org/
|
|
|
942
969
|
licenses:
|
|
943
970
|
- Apache-2.0
|
|
944
971
|
metadata: {}
|
|
945
|
-
post_install_message:
|
|
972
|
+
post_install_message:
|
|
946
973
|
rdoc_options: []
|
|
947
974
|
require_paths:
|
|
948
975
|
- lib
|
|
@@ -957,8 +984,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
957
984
|
- !ruby/object:Gem::Version
|
|
958
985
|
version: '0'
|
|
959
986
|
requirements: []
|
|
960
|
-
rubygems_version: 3.
|
|
961
|
-
signing_key:
|
|
987
|
+
rubygems_version: 3.4.19
|
|
988
|
+
signing_key:
|
|
962
989
|
specification_version: 4
|
|
963
990
|
summary: Fluentd event collector
|
|
964
991
|
test_files:
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
name: Testing on Ubuntu
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ${{ matrix.os }}
|
|
12
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
ruby-version: ['3.2', '3.1', '3.0', '2.7']
|
|
17
|
-
os: [ubuntu-latest]
|
|
18
|
-
experimental: [false]
|
|
19
|
-
include:
|
|
20
|
-
- ruby-version: head
|
|
21
|
-
os: ubuntu-latest
|
|
22
|
-
experimental: true
|
|
23
|
-
|
|
24
|
-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
|
25
|
-
steps:
|
|
26
|
-
- uses: actions/checkout@v3
|
|
27
|
-
- name: Set up Ruby
|
|
28
|
-
uses: ruby/setup-ruby@v1
|
|
29
|
-
with:
|
|
30
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
31
|
-
- name: Install addons
|
|
32
|
-
run: sudo apt-get install libgmp3-dev libcap-ng-dev
|
|
33
|
-
- name: Install dependencies
|
|
34
|
-
run: bundle install
|
|
35
|
-
- name: Run tests
|
|
36
|
-
run: bundle exec rake test
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
name: Testing on macOS
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ${{ matrix.os }}
|
|
12
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
ruby-version: ['3.2', '3.1', '3.0', '2.7']
|
|
17
|
-
os: [macos-latest]
|
|
18
|
-
experimental: [true]
|
|
19
|
-
include:
|
|
20
|
-
- ruby-version: head
|
|
21
|
-
os: macos-latest
|
|
22
|
-
experimental: true
|
|
23
|
-
|
|
24
|
-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
|
25
|
-
steps:
|
|
26
|
-
- uses: actions/checkout@v3
|
|
27
|
-
- name: Set up Ruby
|
|
28
|
-
uses: ruby/setup-ruby@v1
|
|
29
|
-
with:
|
|
30
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
31
|
-
- name: Install dependencies
|
|
32
|
-
run: bundle install
|
|
33
|
-
- name: Run tests
|
|
34
|
-
run: bundle exec rake test
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
name: Testing on Windows
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
runs-on: ${{ matrix.os }}
|
|
12
|
-
continue-on-error: ${{ matrix.experimental }}
|
|
13
|
-
strategy:
|
|
14
|
-
fail-fast: false
|
|
15
|
-
matrix:
|
|
16
|
-
ruby-version: ['3.2', '3.1', '2.7']
|
|
17
|
-
os:
|
|
18
|
-
- windows-latest
|
|
19
|
-
experimental: [false]
|
|
20
|
-
include:
|
|
21
|
-
- ruby-version: head
|
|
22
|
-
os: windows-latest
|
|
23
|
-
experimental: true
|
|
24
|
-
- ruby-version: '3.0.3'
|
|
25
|
-
os: windows-latest
|
|
26
|
-
experimental: false
|
|
27
|
-
# On Ruby 3.0, we need to use fiddle 1.0.8 or later to retrieve correct
|
|
28
|
-
# error code. In addition, we have to specify the path of fiddle by RUBYLIB
|
|
29
|
-
# because RubyInstaller loads Ruby's bundled fiddle before initializing gem.
|
|
30
|
-
# See also:
|
|
31
|
-
# * https://github.com/ruby/fiddle/issues/72
|
|
32
|
-
# * https://bugs.ruby-lang.org/issues/17813
|
|
33
|
-
# * https://github.com/oneclick/rubyinstaller2/blob/8225034c22152d8195bc0aabc42a956c79d6c712/lib/ruby_installer/build/dll_directory.rb
|
|
34
|
-
ruby-lib-opt: RUBYLIB=%RUNNER_TOOL_CACHE%/Ruby/3.0.3/x64/lib/ruby/gems/3.0.0/gems/fiddle-1.1.0/lib
|
|
35
|
-
|
|
36
|
-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
|
37
|
-
steps:
|
|
38
|
-
- uses: actions/checkout@v3
|
|
39
|
-
- name: Set up Ruby
|
|
40
|
-
uses: ruby/setup-ruby@v1
|
|
41
|
-
with:
|
|
42
|
-
ruby-version: ${{ matrix.ruby-version }}
|
|
43
|
-
- name: Add Fiddle 1.1.0
|
|
44
|
-
if: ${{ matrix.ruby-version == '3.0.3' }}
|
|
45
|
-
run: gem install fiddle --version 1.1.0
|
|
46
|
-
- name: Install dependencies
|
|
47
|
-
run: ridk exec bundle install
|
|
48
|
-
- name: Run tests
|
|
49
|
-
run: bundle exec rake test TESTOPTS=-v ${{ matrix.ruby-lib-opt }}
|