fluentd 1.13.3 → 1.16.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE/{bug_report.yaml → bug_report.yml} +2 -0
- data/.github/ISSUE_TEMPLATE/config.yml +2 -2
- data/.github/ISSUE_TEMPLATE/{feature_request.yaml → feature_request.yml} +1 -0
- data/.github/workflows/stale-actions.yml +11 -9
- data/.github/workflows/test.yml +32 -0
- data/CHANGELOG.md +490 -10
- data/CONTRIBUTING.md +2 -2
- data/MAINTAINERS.md +7 -5
- data/README.md +3 -23
- data/Rakefile +1 -1
- data/SECURITY.md +14 -0
- data/fluentd.gemspec +7 -8
- data/lib/fluent/command/cat.rb +13 -3
- data/lib/fluent/command/ctl.rb +6 -3
- data/lib/fluent/command/fluentd.rb +73 -65
- data/lib/fluent/command/plugin_config_formatter.rb +1 -1
- data/lib/fluent/compat/output.rb +9 -6
- data/lib/fluent/config/dsl.rb +1 -1
- data/lib/fluent/config/error.rb +12 -0
- data/lib/fluent/config/literal_parser.rb +2 -2
- data/lib/fluent/config/parser.rb +1 -1
- data/lib/fluent/config/v1_parser.rb +3 -3
- data/lib/fluent/config/yaml_parser/fluent_value.rb +47 -0
- data/lib/fluent/config/yaml_parser/loader.rb +108 -0
- data/lib/fluent/config/yaml_parser/parser.rb +166 -0
- data/lib/fluent/config/yaml_parser/section_builder.rb +107 -0
- data/lib/fluent/config/yaml_parser.rb +56 -0
- data/lib/fluent/config.rb +14 -1
- data/lib/fluent/counter/server.rb +1 -1
- data/lib/fluent/counter/validator.rb +3 -3
- data/lib/fluent/daemon.rb +2 -4
- data/lib/fluent/engine.rb +1 -1
- data/lib/fluent/env.rb +4 -0
- data/lib/fluent/error.rb +3 -0
- data/lib/fluent/event.rb +8 -4
- data/lib/fluent/event_router.rb +47 -2
- data/lib/fluent/file_wrapper.rb +137 -0
- data/lib/fluent/log/console_adapter.rb +66 -0
- data/lib/fluent/log.rb +44 -5
- data/lib/fluent/match.rb +1 -1
- data/lib/fluent/msgpack_factory.rb +6 -1
- data/lib/fluent/oj_options.rb +1 -2
- data/lib/fluent/plugin/bare_output.rb +49 -8
- data/lib/fluent/plugin/base.rb +26 -9
- data/lib/fluent/plugin/buf_file.rb +34 -5
- data/lib/fluent/plugin/buf_file_single.rb +32 -3
- data/lib/fluent/plugin/buffer/file_chunk.rb +1 -1
- data/lib/fluent/plugin/buffer.rb +216 -70
- data/lib/fluent/plugin/filter.rb +35 -1
- data/lib/fluent/plugin/filter_record_transformer.rb +1 -1
- data/lib/fluent/plugin/in_forward.rb +2 -2
- data/lib/fluent/plugin/in_http.rb +39 -10
- data/lib/fluent/plugin/in_monitor_agent.rb +4 -2
- data/lib/fluent/plugin/in_sample.rb +1 -1
- data/lib/fluent/plugin/in_syslog.rb +13 -1
- data/lib/fluent/plugin/in_tail/group_watch.rb +204 -0
- data/lib/fluent/plugin/in_tail/position_file.rb +33 -33
- data/lib/fluent/plugin/in_tail.rb +216 -84
- data/lib/fluent/plugin/in_tcp.rb +47 -2
- data/lib/fluent/plugin/input.rb +39 -1
- data/lib/fluent/plugin/metrics.rb +119 -0
- data/lib/fluent/plugin/metrics_local.rb +96 -0
- data/lib/fluent/plugin/multi_output.rb +43 -6
- data/lib/fluent/plugin/out_copy.rb +1 -1
- data/lib/fluent/plugin/out_exec_filter.rb +2 -2
- data/lib/fluent/plugin/out_file.rb +20 -2
- data/lib/fluent/plugin/out_forward/ack_handler.rb +19 -4
- data/lib/fluent/plugin/out_forward/socket_cache.rb +2 -0
- data/lib/fluent/plugin/out_forward.rb +17 -9
- data/lib/fluent/plugin/out_secondary_file.rb +39 -22
- data/lib/fluent/plugin/output.rb +167 -78
- data/lib/fluent/plugin/parser.rb +3 -4
- data/lib/fluent/plugin/parser_apache2.rb +1 -1
- data/lib/fluent/plugin/parser_json.rb +1 -1
- data/lib/fluent/plugin/parser_syslog.rb +1 -1
- data/lib/fluent/plugin/storage_local.rb +3 -5
- data/lib/fluent/plugin.rb +10 -1
- data/lib/fluent/plugin_helper/child_process.rb +3 -0
- data/lib/fluent/plugin_helper/event_emitter.rb +8 -1
- data/lib/fluent/plugin_helper/event_loop.rb +2 -2
- data/lib/fluent/plugin_helper/http_server/server.rb +2 -1
- data/lib/fluent/plugin_helper/metrics.rb +129 -0
- data/lib/fluent/plugin_helper/record_accessor.rb +1 -1
- data/lib/fluent/plugin_helper/retry_state.rb +14 -4
- data/lib/fluent/plugin_helper/server.rb +35 -6
- data/lib/fluent/plugin_helper/service_discovery.rb +2 -2
- data/lib/fluent/plugin_helper/socket.rb +13 -2
- data/lib/fluent/plugin_helper/thread.rb +3 -3
- data/lib/fluent/plugin_helper.rb +1 -0
- data/lib/fluent/plugin_id.rb +3 -2
- data/lib/fluent/registry.rb +2 -1
- data/lib/fluent/root_agent.rb +6 -0
- data/lib/fluent/rpc.rb +4 -3
- data/lib/fluent/supervisor.rb +283 -259
- data/lib/fluent/system_config.rb +13 -3
- data/lib/fluent/test/driver/base.rb +11 -5
- data/lib/fluent/test/driver/filter.rb +4 -0
- data/lib/fluent/test/startup_shutdown.rb +6 -8
- data/lib/fluent/time.rb +21 -20
- data/lib/fluent/version.rb +1 -1
- data/lib/fluent/win32api.rb +38 -0
- data/lib/fluent/winsvc.rb +5 -8
- data/templates/new_gem/test/helper.rb.erb +0 -1
- data/test/command/test_cat.rb +31 -2
- data/test/command/test_ctl.rb +1 -2
- data/test/command/test_fluentd.rb +209 -24
- data/test/command/test_plugin_config_formatter.rb +0 -1
- data/test/compat/test_parser.rb +6 -6
- data/test/config/test_system_config.rb +13 -11
- data/test/config/test_types.rb +1 -1
- data/test/log/test_console_adapter.rb +110 -0
- data/test/plugin/in_tail/test_io_handler.rb +26 -8
- data/test/plugin/in_tail/test_position_file.rb +48 -59
- data/test/plugin/out_forward/test_ack_handler.rb +39 -0
- data/test/plugin/out_forward/test_socket_cache.rb +26 -1
- data/test/plugin/test_bare_output.rb +14 -1
- data/test/plugin/test_base.rb +133 -1
- data/test/plugin/test_buf_file.rb +62 -23
- data/test/plugin/test_buf_file_single.rb +65 -0
- data/test/plugin/test_buffer.rb +267 -3
- data/test/plugin/test_buffer_chunk.rb +11 -0
- data/test/plugin/test_filter.rb +12 -1
- data/test/plugin/test_filter_parser.rb +1 -1
- data/test/plugin/test_filter_stdout.rb +2 -2
- data/test/plugin/test_in_forward.rb +9 -11
- data/test/plugin/test_in_http.rb +65 -3
- data/test/plugin/test_in_monitor_agent.rb +216 -11
- data/test/plugin/test_in_object_space.rb +9 -3
- data/test/plugin/test_in_syslog.rb +35 -0
- data/test/plugin/test_in_tail.rb +1393 -385
- data/test/plugin/test_in_tcp.rb +87 -2
- data/test/plugin/test_in_udp.rb +28 -0
- data/test/plugin/test_in_unix.rb +2 -2
- data/test/plugin/test_input.rb +12 -1
- data/test/plugin/test_metrics.rb +294 -0
- data/test/plugin/test_metrics_local.rb +96 -0
- data/test/plugin/test_multi_output.rb +25 -1
- data/test/plugin/test_out_exec.rb +6 -4
- data/test/plugin/test_out_exec_filter.rb +6 -2
- data/test/plugin/test_out_file.rb +34 -17
- data/test/plugin/test_out_forward.rb +78 -77
- data/test/plugin/test_out_http.rb +1 -0
- data/test/plugin/test_out_stdout.rb +2 -2
- data/test/plugin/test_output.rb +297 -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 +54 -7
- data/test/plugin/test_output_as_buffered_secondary.rb +4 -4
- data/test/plugin/test_parser_regexp.rb +1 -6
- data/test/plugin/test_parser_syslog.rb +1 -1
- data/test/plugin_helper/test_cert_option.rb +1 -1
- data/test/plugin_helper/test_child_process.rb +38 -16
- data/test/plugin_helper/test_event_emitter.rb +29 -0
- data/test/plugin_helper/test_http_server_helper.rb +1 -1
- data/test/plugin_helper/test_metrics.rb +137 -0
- data/test/plugin_helper/test_retry_state.rb +602 -38
- data/test/plugin_helper/test_server.rb +78 -6
- data/test/plugin_helper/test_timer.rb +2 -2
- data/test/test_config.rb +191 -24
- data/test/test_event_router.rb +17 -0
- data/test/test_file_wrapper.rb +53 -0
- data/test/test_formatter.rb +24 -21
- data/test/test_log.rb +122 -40
- data/test/test_msgpack_factory.rb +32 -0
- data/test/test_plugin_classes.rb +102 -0
- data/test/test_root_agent.rb +30 -1
- data/test/test_supervisor.rb +477 -257
- data/test/test_time_parser.rb +22 -0
- metadata +55 -34
- data/.drone.yml +0 -35
- data/.github/workflows/issue-auto-closer.yml +0 -12
- data/.github/workflows/linux-test.yaml +0 -36
- data/.github/workflows/macos-test.yaml +0 -30
- data/.github/workflows/windows-test.yaml +0 -46
- data/.gitlab-ci.yml +0 -103
- data/lib/fluent/plugin/file_wrapper.rb +0 -187
- data/test/plugin/test_file_wrapper.rb +0 -126
- data/test/test_logger_initializer.rb +0 -46
data/test/test_time_parser.rb
CHANGED
@@ -337,4 +337,26 @@ class TimeParserTest < ::Test::Unit::TestCase
|
|
337
337
|
assert_equal_event_time(time, parser.parse('2021-01-01T12:00:00+0900'))
|
338
338
|
end
|
339
339
|
end
|
340
|
+
|
341
|
+
# https://github.com/fluent/fluentd/issues/3195
|
342
|
+
test 'change timezone without zone specifier in a format' do
|
343
|
+
expected = 1607457600 # 2020-12-08T20:00:00Z
|
344
|
+
time1 = time2 = nil
|
345
|
+
|
346
|
+
with_timezone("UTC-05") do # EST
|
347
|
+
i = DummyForTimeParser.new
|
348
|
+
i.configure(config_element('parse', '', {'time_type' => 'string',
|
349
|
+
'time_format' => '%Y-%m-%dT%H:%M:%SZ',
|
350
|
+
'utc' => true}))
|
351
|
+
parser = i.time_parser_create
|
352
|
+
|
353
|
+
time1 = parser.parse('2020-12-08T20:00:00Z').to_i
|
354
|
+
time2 = with_timezone("UTC-04") do # EDT
|
355
|
+
# to avoid using cache, increment 1 sec
|
356
|
+
parser.parse('2020-12-08T20:00:01Z').to_i
|
357
|
+
end
|
358
|
+
end
|
359
|
+
|
360
|
+
assert_equal([expected, expected + 1], [time1, time2])
|
361
|
+
end
|
340
362
|
end
|
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.16.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sadayuki Furuhashi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -84,7 +84,7 @@ dependencies:
|
|
84
84
|
requirements:
|
85
85
|
- - ">="
|
86
86
|
- !ruby/object:Gem::Version
|
87
|
-
version: 2.
|
87
|
+
version: 2.3.2
|
88
88
|
- - "<"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 3.0.0
|
@@ -94,7 +94,7 @@ dependencies:
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
version: 2.
|
97
|
+
version: 2.3.2
|
98
98
|
- - "<"
|
99
99
|
- !ruby/object:Gem::Version
|
100
100
|
version: 3.0.0
|
@@ -107,7 +107,7 @@ dependencies:
|
|
107
107
|
version: 0.5.1
|
108
108
|
- - "<"
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version: 0.
|
110
|
+
version: 0.9.0
|
111
111
|
type: :runtime
|
112
112
|
prerelease: false
|
113
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -117,21 +117,21 @@ dependencies:
|
|
117
117
|
version: 0.5.1
|
118
118
|
- - "<"
|
119
119
|
- !ruby/object:Gem::Version
|
120
|
-
version: 0.
|
120
|
+
version: 0.9.0
|
121
121
|
- !ruby/object:Gem::Dependency
|
122
122
|
name: sigdump
|
123
123
|
requirement: !ruby/object:Gem::Requirement
|
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
|
@@ -172,7 +172,7 @@ dependencies:
|
|
172
172
|
requirements:
|
173
173
|
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
|
-
version: 0.2.
|
175
|
+
version: 0.2.4
|
176
176
|
- - "<"
|
177
177
|
- !ruby/object:Gem::Version
|
178
178
|
version: 1.0.0
|
@@ -182,7 +182,7 @@ dependencies:
|
|
182
182
|
requirements:
|
183
183
|
- - ">="
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: 0.2.
|
185
|
+
version: 0.2.4
|
186
186
|
- - "<"
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: 1.0.0
|
@@ -190,22 +190,16 @@ dependencies:
|
|
190
190
|
name: webrick
|
191
191
|
requirement: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
|
-
- - "
|
194
|
-
- !ruby/object:Gem::Version
|
195
|
-
version: 1.4.2
|
196
|
-
- - "<"
|
193
|
+
- - "~>"
|
197
194
|
- !ruby/object:Gem::Version
|
198
|
-
version: 1.
|
195
|
+
version: '1.4'
|
199
196
|
type: :runtime
|
200
197
|
prerelease: false
|
201
198
|
version_requirements: !ruby/object:Gem::Requirement
|
202
199
|
requirements:
|
203
|
-
- - "
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: 1.4.2
|
206
|
-
- - "<"
|
200
|
+
- - "~>"
|
207
201
|
- !ruby/object:Gem::Version
|
208
|
-
version: 1.
|
202
|
+
version: '1.4'
|
209
203
|
- !ruby/object:Gem::Dependency
|
210
204
|
name: rake
|
211
205
|
requirement: !ruby/object:Gem::Requirement
|
@@ -338,6 +332,20 @@ dependencies:
|
|
338
332
|
- - "<"
|
339
333
|
- !ruby/object:Gem::Version
|
340
334
|
version: '4'
|
335
|
+
- !ruby/object:Gem::Dependency
|
336
|
+
name: async
|
337
|
+
requirement: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '1.23'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '1.23'
|
341
349
|
- !ruby/object:Gem::Dependency
|
342
350
|
name: async-http
|
343
351
|
requirement: !ruby/object:Gem::Requirement
|
@@ -371,19 +379,14 @@ extensions: []
|
|
371
379
|
extra_rdoc_files: []
|
372
380
|
files:
|
373
381
|
- ".deepsource.toml"
|
374
|
-
- ".drone.yml"
|
375
382
|
- ".github/ISSUE_TEMPLATE.md"
|
376
|
-
- ".github/ISSUE_TEMPLATE/bug_report.
|
383
|
+
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
377
384
|
- ".github/ISSUE_TEMPLATE/config.yml"
|
378
|
-
- ".github/ISSUE_TEMPLATE/feature_request.
|
385
|
+
- ".github/ISSUE_TEMPLATE/feature_request.yml"
|
379
386
|
- ".github/PULL_REQUEST_TEMPLATE.md"
|
380
|
-
- ".github/workflows/issue-auto-closer.yml"
|
381
|
-
- ".github/workflows/linux-test.yaml"
|
382
|
-
- ".github/workflows/macos-test.yaml"
|
383
387
|
- ".github/workflows/stale-actions.yml"
|
384
|
-
- ".github/workflows/
|
388
|
+
- ".github/workflows/test.yml"
|
385
389
|
- ".gitignore"
|
386
|
-
- ".gitlab-ci.yml"
|
387
390
|
- ADOPTERS.md
|
388
391
|
- AUTHORS
|
389
392
|
- CHANGELOG.md
|
@@ -395,6 +398,7 @@ files:
|
|
395
398
|
- MAINTAINERS.md
|
396
399
|
- README.md
|
397
400
|
- Rakefile
|
401
|
+
- SECURITY.md
|
398
402
|
- bin/fluent-binlog-reader
|
399
403
|
- bin/fluent-ca-generate
|
400
404
|
- bin/fluent-cap-ctl
|
@@ -492,6 +496,11 @@ files:
|
|
492
496
|
- lib/fluent/config/section.rb
|
493
497
|
- lib/fluent/config/types.rb
|
494
498
|
- lib/fluent/config/v1_parser.rb
|
499
|
+
- lib/fluent/config/yaml_parser.rb
|
500
|
+
- lib/fluent/config/yaml_parser/fluent_value.rb
|
501
|
+
- lib/fluent/config/yaml_parser/loader.rb
|
502
|
+
- lib/fluent/config/yaml_parser/parser.rb
|
503
|
+
- lib/fluent/config/yaml_parser/section_builder.rb
|
495
504
|
- lib/fluent/configurable.rb
|
496
505
|
- lib/fluent/counter.rb
|
497
506
|
- lib/fluent/counter/base_socket.rb
|
@@ -509,6 +518,7 @@ files:
|
|
509
518
|
- lib/fluent/event.rb
|
510
519
|
- lib/fluent/event_router.rb
|
511
520
|
- lib/fluent/ext_monitor_require.rb
|
521
|
+
- lib/fluent/file_wrapper.rb
|
512
522
|
- lib/fluent/filter.rb
|
513
523
|
- lib/fluent/fluent_log_event_router.rb
|
514
524
|
- lib/fluent/formatter.rb
|
@@ -516,6 +526,7 @@ files:
|
|
516
526
|
- lib/fluent/label.rb
|
517
527
|
- lib/fluent/load.rb
|
518
528
|
- lib/fluent/log.rb
|
529
|
+
- lib/fluent/log/console_adapter.rb
|
519
530
|
- lib/fluent/match.rb
|
520
531
|
- lib/fluent/mixin.rb
|
521
532
|
- lib/fluent/msgpack_factory.rb
|
@@ -537,7 +548,6 @@ files:
|
|
537
548
|
- lib/fluent/plugin/compressable.rb
|
538
549
|
- lib/fluent/plugin/exec_util.rb
|
539
550
|
- lib/fluent/plugin/file_util.rb
|
540
|
-
- lib/fluent/plugin/file_wrapper.rb
|
541
551
|
- lib/fluent/plugin/filter.rb
|
542
552
|
- lib/fluent/plugin/filter_grep.rb
|
543
553
|
- lib/fluent/plugin/filter_parser.rb
|
@@ -564,11 +574,14 @@ files:
|
|
564
574
|
- lib/fluent/plugin/in_sample.rb
|
565
575
|
- lib/fluent/plugin/in_syslog.rb
|
566
576
|
- lib/fluent/plugin/in_tail.rb
|
577
|
+
- lib/fluent/plugin/in_tail/group_watch.rb
|
567
578
|
- lib/fluent/plugin/in_tail/position_file.rb
|
568
579
|
- lib/fluent/plugin/in_tcp.rb
|
569
580
|
- lib/fluent/plugin/in_udp.rb
|
570
581
|
- lib/fluent/plugin/in_unix.rb
|
571
582
|
- lib/fluent/plugin/input.rb
|
583
|
+
- lib/fluent/plugin/metrics.rb
|
584
|
+
- lib/fluent/plugin/metrics_local.rb
|
572
585
|
- lib/fluent/plugin/multi_output.rb
|
573
586
|
- lib/fluent/plugin/out_copy.rb
|
574
587
|
- lib/fluent/plugin/out_exec.rb
|
@@ -633,6 +646,7 @@ files:
|
|
633
646
|
- lib/fluent/plugin_helper/http_server/server.rb
|
634
647
|
- lib/fluent/plugin_helper/http_server/ssl_context_builder.rb
|
635
648
|
- lib/fluent/plugin_helper/inject.rb
|
649
|
+
- lib/fluent/plugin_helper/metrics.rb
|
636
650
|
- lib/fluent/plugin_helper/parser.rb
|
637
651
|
- lib/fluent/plugin_helper/record_accessor.rb
|
638
652
|
- lib/fluent/plugin_helper/retry_state.rb
|
@@ -681,6 +695,7 @@ files:
|
|
681
695
|
- lib/fluent/unique_id.rb
|
682
696
|
- lib/fluent/variable_store.rb
|
683
697
|
- lib/fluent/version.rb
|
698
|
+
- lib/fluent/win32api.rb
|
684
699
|
- lib/fluent/winsvc.rb
|
685
700
|
- templates/new_gem/Gemfile
|
686
701
|
- templates/new_gem/README.md.erb
|
@@ -733,6 +748,7 @@ files:
|
|
733
748
|
- test/helper.rb
|
734
749
|
- test/helpers/fuzzy_assert.rb
|
735
750
|
- test/helpers/process_extenstion.rb
|
751
|
+
- test/log/test_console_adapter.rb
|
736
752
|
- test/plugin/data/2010/01/20100102-030405.log
|
737
753
|
- test/plugin/data/2010/01/20100102-030406.log
|
738
754
|
- test/plugin/data/2010/01/20100102.log
|
@@ -765,7 +781,6 @@ files:
|
|
765
781
|
- test/plugin/test_buffer_memory_chunk.rb
|
766
782
|
- test/plugin/test_compressable.rb
|
767
783
|
- test/plugin/test_file_util.rb
|
768
|
-
- test/plugin/test_file_wrapper.rb
|
769
784
|
- test/plugin/test_filter.rb
|
770
785
|
- test/plugin/test_filter_grep.rb
|
771
786
|
- test/plugin/test_filter_parser.rb
|
@@ -794,6 +809,8 @@ files:
|
|
794
809
|
- test/plugin/test_in_unix.rb
|
795
810
|
- test/plugin/test_input.rb
|
796
811
|
- test/plugin/test_metadata.rb
|
812
|
+
- test/plugin/test_metrics.rb
|
813
|
+
- test/plugin/test_metrics_local.rb
|
797
814
|
- test/plugin/test_multi_output.rb
|
798
815
|
- test/plugin/test_out_copy.rb
|
799
816
|
- test/plugin/test_out_exec.rb
|
@@ -869,6 +886,7 @@ files:
|
|
869
886
|
- test/plugin_helper/test_formatter.rb
|
870
887
|
- test/plugin_helper/test_http_server_helper.rb
|
871
888
|
- test/plugin_helper/test_inject.rb
|
889
|
+
- test/plugin_helper/test_metrics.rb
|
872
890
|
- test/plugin_helper/test_parser.rb
|
873
891
|
- test/plugin_helper/test_record_accessor.rb
|
874
892
|
- test/plugin_helper/test_retry_state.rb
|
@@ -894,12 +912,12 @@ files:
|
|
894
912
|
- test/test_event.rb
|
895
913
|
- test/test_event_router.rb
|
896
914
|
- test/test_event_time.rb
|
915
|
+
- test/test_file_wrapper.rb
|
897
916
|
- test/test_filter.rb
|
898
917
|
- test/test_fluent_log_event_router.rb
|
899
918
|
- test/test_formatter.rb
|
900
919
|
- test/test_input.rb
|
901
920
|
- test/test_log.rb
|
902
|
-
- test/test_logger_initializer.rb
|
903
921
|
- test/test_match.rb
|
904
922
|
- test/test_mixin.rb
|
905
923
|
- test/test_msgpack_factory.rb
|
@@ -938,7 +956,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
938
956
|
- !ruby/object:Gem::Version
|
939
957
|
version: '0'
|
940
958
|
requirements: []
|
941
|
-
rubygems_version: 3.
|
959
|
+
rubygems_version: 3.4.19
|
942
960
|
signing_key:
|
943
961
|
specification_version: 4
|
944
962
|
summary: Fluentd event collector
|
@@ -973,6 +991,7 @@ test_files:
|
|
973
991
|
- test/helper.rb
|
974
992
|
- test/helpers/fuzzy_assert.rb
|
975
993
|
- test/helpers/process_extenstion.rb
|
994
|
+
- test/log/test_console_adapter.rb
|
976
995
|
- test/plugin/data/2010/01/20100102-030405.log
|
977
996
|
- test/plugin/data/2010/01/20100102-030406.log
|
978
997
|
- test/plugin/data/2010/01/20100102.log
|
@@ -1005,7 +1024,6 @@ test_files:
|
|
1005
1024
|
- test/plugin/test_buffer_memory_chunk.rb
|
1006
1025
|
- test/plugin/test_compressable.rb
|
1007
1026
|
- test/plugin/test_file_util.rb
|
1008
|
-
- test/plugin/test_file_wrapper.rb
|
1009
1027
|
- test/plugin/test_filter.rb
|
1010
1028
|
- test/plugin/test_filter_grep.rb
|
1011
1029
|
- test/plugin/test_filter_parser.rb
|
@@ -1034,6 +1052,8 @@ test_files:
|
|
1034
1052
|
- test/plugin/test_in_unix.rb
|
1035
1053
|
- test/plugin/test_input.rb
|
1036
1054
|
- test/plugin/test_metadata.rb
|
1055
|
+
- test/plugin/test_metrics.rb
|
1056
|
+
- test/plugin/test_metrics_local.rb
|
1037
1057
|
- test/plugin/test_multi_output.rb
|
1038
1058
|
- test/plugin/test_out_copy.rb
|
1039
1059
|
- test/plugin/test_out_exec.rb
|
@@ -1109,6 +1129,7 @@ test_files:
|
|
1109
1129
|
- test/plugin_helper/test_formatter.rb
|
1110
1130
|
- test/plugin_helper/test_http_server_helper.rb
|
1111
1131
|
- test/plugin_helper/test_inject.rb
|
1132
|
+
- test/plugin_helper/test_metrics.rb
|
1112
1133
|
- test/plugin_helper/test_parser.rb
|
1113
1134
|
- test/plugin_helper/test_record_accessor.rb
|
1114
1135
|
- test/plugin_helper/test_retry_state.rb
|
@@ -1134,12 +1155,12 @@ test_files:
|
|
1134
1155
|
- test/test_event.rb
|
1135
1156
|
- test/test_event_router.rb
|
1136
1157
|
- test/test_event_time.rb
|
1158
|
+
- test/test_file_wrapper.rb
|
1137
1159
|
- test/test_filter.rb
|
1138
1160
|
- test/test_fluent_log_event_router.rb
|
1139
1161
|
- test/test_formatter.rb
|
1140
1162
|
- test/test_input.rb
|
1141
1163
|
- test/test_log.rb
|
1142
|
-
- test/test_logger_initializer.rb
|
1143
1164
|
- test/test_match.rb
|
1144
1165
|
- test/test_mixin.rb
|
1145
1166
|
- test/test_msgpack_factory.rb
|
data/.drone.yml
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
kind: pipeline
|
2
|
-
name: fluentd-test-arm64-2-6-3
|
3
|
-
|
4
|
-
platform:
|
5
|
-
os: linux
|
6
|
-
arch: arm64
|
7
|
-
|
8
|
-
steps:
|
9
|
-
- name: fluentd-test-arm64-2-6-3
|
10
|
-
image: arm64v8/ruby:2.6.3
|
11
|
-
commands:
|
12
|
-
- apt update
|
13
|
-
- apt -y install libgmp3-dev
|
14
|
-
- export BUNDLE_GEMFILE=$PWD/Gemfile
|
15
|
-
- gem update --system
|
16
|
-
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
17
|
-
- bundle exec rake test
|
18
|
-
---
|
19
|
-
kind: pipeline
|
20
|
-
name: fluentd-test-arm64-latest
|
21
|
-
|
22
|
-
platform:
|
23
|
-
os: linux
|
24
|
-
arch: arm64
|
25
|
-
|
26
|
-
steps:
|
27
|
-
- name: fluentd-test-arm64-latest
|
28
|
-
image: arm64v8/ruby:latest
|
29
|
-
commands:
|
30
|
-
- apt update
|
31
|
-
- apt -y install libgmp3-dev
|
32
|
-
- export BUNDLE_GEMFILE=$PWD/Gemfile
|
33
|
-
- gem update --system
|
34
|
-
- bundle install --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
|
35
|
-
- bundle exec rake test
|
@@ -1,12 +0,0 @@
|
|
1
|
-
name: Autocloser
|
2
|
-
on: [issues]
|
3
|
-
jobs:
|
4
|
-
autoclose:
|
5
|
-
runs-on: ubuntu-latest
|
6
|
-
steps:
|
7
|
-
- name: Autoclose issues that did not follow issue template
|
8
|
-
uses: roots/issue-closer-action@v1.1
|
9
|
-
with:
|
10
|
-
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
11
|
-
issue-close-message: "@${issue.user.login} this issue was automatically closed because it did not follow the issue template"
|
12
|
-
issue-pattern: "(.*Describe the bug.*)|(.*Is your feature request related to a problem.*)"
|
@@ -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.0', '2.7', '2.6']
|
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@v2
|
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,30 +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: ['head', '2.7']
|
17
|
-
os: [macos-latest]
|
18
|
-
experimental: [true]
|
19
|
-
|
20
|
-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
21
|
-
steps:
|
22
|
-
- uses: actions/checkout@v2
|
23
|
-
- name: Set up Ruby
|
24
|
-
uses: ruby/setup-ruby@v1
|
25
|
-
with:
|
26
|
-
ruby-version: ${{ matrix.ruby-version }}
|
27
|
-
- name: Install dependencies
|
28
|
-
run: bundle install
|
29
|
-
- name: Run tests
|
30
|
-
run: bundle exec rake test
|
@@ -1,46 +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: ['2.7', '2.6']
|
17
|
-
os:
|
18
|
-
- windows-latest
|
19
|
-
experimental: [false]
|
20
|
-
include:
|
21
|
-
- ruby-version: '3.0.1'
|
22
|
-
os: windows-latest
|
23
|
-
experimental: true
|
24
|
-
# On Ruby 3.0, we need to use fiddle 1.0.8 or later to retrieve correct
|
25
|
-
# error code. In addition, we have to specify the path of fiddle by RUBYLIB
|
26
|
-
# because RubyInstaller loads Ruby's bundled fiddle before initializing gem.
|
27
|
-
# See also:
|
28
|
-
# * https://github.com/ruby/fiddle/issues/72
|
29
|
-
# * https://bugs.ruby-lang.org/issues/17813
|
30
|
-
# * https://github.com/oneclick/rubyinstaller2/blob/8225034c22152d8195bc0aabc42a956c79d6c712/lib/ruby_installer/build/dll_directory.rb
|
31
|
-
ruby-lib-opt: RUBYLIB=%RUNNER_TOOL_CACHE%/Ruby/3.0.1/x64/lib/ruby/gems/3.0.0/gems/fiddle-1.0.8/lib
|
32
|
-
|
33
|
-
name: Unit testing with Ruby ${{ matrix.ruby-version }} on ${{ matrix.os }}
|
34
|
-
steps:
|
35
|
-
- uses: actions/checkout@v2
|
36
|
-
- name: Set up Ruby
|
37
|
-
uses: ruby/setup-ruby@v1
|
38
|
-
with:
|
39
|
-
ruby-version: ${{ matrix.ruby-version }}
|
40
|
-
- name: Add Fiddle 1.0.8
|
41
|
-
if: ${{ matrix.ruby-version == '3.0.1' }}
|
42
|
-
run: gem install fiddle --version 1.0.8
|
43
|
-
- name: Install dependencies
|
44
|
-
run: ridk exec bundle install
|
45
|
-
- name: Run tests
|
46
|
-
run: bundle exec rake test TESTOPTS=-v ${{ matrix.ruby-lib-opt }}
|
data/.gitlab-ci.yml
DELETED
@@ -1,103 +0,0 @@
|
|
1
|
-
.install-template:
|
2
|
-
before_script:
|
3
|
-
- gem update --system
|
4
|
-
- ruby -v
|
5
|
-
|
6
|
-
.test-template:
|
7
|
-
before_script:
|
8
|
-
- gem install rake
|
9
|
-
- bundle install
|
10
|
-
- chmod 777 -R ./test
|
11
|
-
|
12
|
-
stages:
|
13
|
-
- build
|
14
|
-
- tests
|
15
|
-
|
16
|
-
2-6-6:
|
17
|
-
image: "ruby:2.6.6"
|
18
|
-
stage: build
|
19
|
-
extends: .install-template
|
20
|
-
script:
|
21
|
-
- bundle install --jobs=3 --retry=3
|
22
|
-
cache:
|
23
|
-
key: "$CI_COMMIT_REF_SLUG 2-6-6"
|
24
|
-
paths:
|
25
|
-
|
26
|
-
2-7-2:
|
27
|
-
image: "ruby:2.7.2"
|
28
|
-
stage: build
|
29
|
-
extends: .install-template
|
30
|
-
script:
|
31
|
-
- bundle install --jobs=3 --retry=3
|
32
|
-
cache:
|
33
|
-
key: "$CI_COMMIT_REF_SLUG 2-7-2"
|
34
|
-
paths:
|
35
|
-
|
36
|
-
3-0-0:
|
37
|
-
image: "ruby:3.0.0"
|
38
|
-
stage: build
|
39
|
-
extends: .install-template
|
40
|
-
script:
|
41
|
-
- bundle install --jobs=3 --retry=3
|
42
|
-
cache:
|
43
|
-
key: "$CI_COMMIT_REF_SLUG 3-0-0"
|
44
|
-
paths:
|
45
|
-
|
46
|
-
rubyhead:
|
47
|
-
image: "ruby:latest"
|
48
|
-
stage: build
|
49
|
-
extends: .install-template
|
50
|
-
script:
|
51
|
-
- bundle install --jobs=3 --retry=3
|
52
|
-
cache:
|
53
|
-
key: "$CI_COMMIT_REF_SLUG latest"
|
54
|
-
paths:
|
55
|
-
- ./*
|
56
|
-
|
57
|
-
2-6-6-test:
|
58
|
-
image: "ruby:2.6.6"
|
59
|
-
stage: tests
|
60
|
-
allow_failure: true
|
61
|
-
extends: .test-template
|
62
|
-
script:
|
63
|
-
- bundle exec rake test
|
64
|
-
cache:
|
65
|
-
key: "$CI_COMMIT_REF_SLUG 2-6-6"
|
66
|
-
paths:
|
67
|
-
- ./*
|
68
|
-
|
69
|
-
2-7-2-test:
|
70
|
-
image: "ruby:2.7.2"
|
71
|
-
stage: tests
|
72
|
-
allow_failure: true
|
73
|
-
extends: .test-template
|
74
|
-
script:
|
75
|
-
- bundle exec rake test
|
76
|
-
cache:
|
77
|
-
key: "$CI_COMMIT_REF_SLUG 2-7-2"
|
78
|
-
paths:
|
79
|
-
- ./*
|
80
|
-
|
81
|
-
3-0-0-test:
|
82
|
-
image: "ruby:3.0.0"
|
83
|
-
stage: tests
|
84
|
-
allow_failure: true
|
85
|
-
extends: .test-template
|
86
|
-
script:
|
87
|
-
- bundle exec rake test
|
88
|
-
cache:
|
89
|
-
key: "$CI_COMMIT_REF_SLUG 3-0-0"
|
90
|
-
paths:
|
91
|
-
- ./*
|
92
|
-
|
93
|
-
rubyhead-test:
|
94
|
-
image: "ruby:latest"
|
95
|
-
stage: tests
|
96
|
-
allow_failure: true
|
97
|
-
extends: .test-template
|
98
|
-
script:
|
99
|
-
- bundle exec rake test
|
100
|
-
cache:
|
101
|
-
key: "$CI_COMMIT_REF_SLUG latest"
|
102
|
-
paths:
|
103
|
-
- ./*
|