fluentd 1.16.7-x86-mingw32 → 1.17.0-x86-mingw32

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.
Files changed (70) hide show
  1. checksums.yaml +4 -4
  2. data/.github/DISCUSSION_TEMPLATE/q-a-japanese.yml +50 -0
  3. data/.github/DISCUSSION_TEMPLATE/q-a.yml +47 -0
  4. data/.github/workflows/test-ruby-head.yml +31 -0
  5. data/.github/workflows/test.yml +2 -9
  6. data/CHANGELOG.md +34 -42
  7. data/README.md +3 -1
  8. data/Rakefile +1 -1
  9. data/fluentd.gemspec +9 -9
  10. data/lib/fluent/command/binlog_reader.rb +1 -1
  11. data/lib/fluent/command/fluentd.rb +1 -1
  12. data/lib/fluent/config/configure_proxy.rb +2 -2
  13. data/lib/fluent/config/types.rb +1 -1
  14. data/lib/fluent/config/yaml_parser/parser.rb +0 -4
  15. data/lib/fluent/configurable.rb +2 -2
  16. data/lib/fluent/counter/mutex_hash.rb +1 -1
  17. data/lib/fluent/fluent_log_event_router.rb +0 -2
  18. data/lib/fluent/plugin/buf_file.rb +1 -1
  19. data/lib/fluent/plugin/buffer/file_chunk.rb +1 -1
  20. data/lib/fluent/plugin/buffer/file_single_chunk.rb +2 -3
  21. data/lib/fluent/plugin/filter_parser.rb +26 -8
  22. data/lib/fluent/plugin/in_http.rb +18 -53
  23. data/lib/fluent/plugin/in_tail.rb +34 -2
  24. data/lib/fluent/plugin/out_file.rb +0 -8
  25. data/lib/fluent/plugin/out_http.rb +125 -13
  26. data/lib/fluent/plugin/owned_by_mixin.rb +0 -1
  27. data/lib/fluent/plugin/parser_json.rb +34 -9
  28. data/lib/fluent/plugin/parser_msgpack.rb +24 -3
  29. data/lib/fluent/plugin_helper/metrics.rb +2 -2
  30. data/lib/fluent/registry.rb +6 -6
  31. data/lib/fluent/supervisor.rb +1 -1
  32. data/lib/fluent/test/output_test.rb +1 -1
  33. data/lib/fluent/unique_id.rb +1 -1
  34. data/lib/fluent/version.rb +1 -1
  35. data/lib/fluent/winsvc.rb +3 -28
  36. data/test/command/test_cat.rb +2 -2
  37. data/test/command/test_fluentd.rb +10 -57
  38. data/test/helper.rb +7 -27
  39. data/test/log/test_console_adapter.rb +10 -3
  40. data/test/plugin/data/log_numeric/01.log +0 -0
  41. data/test/plugin/data/log_numeric/02.log +0 -0
  42. data/test/plugin/data/log_numeric/12.log +0 -0
  43. data/test/plugin/data/log_numeric/14.log +0 -0
  44. data/test/plugin/in_tail/test_io_handler.rb +14 -13
  45. data/test/plugin/in_tail/test_position_file.rb +7 -6
  46. data/test/plugin/out_forward/test_ack_handler.rb +3 -3
  47. data/test/plugin/out_forward/test_socket_cache.rb +3 -3
  48. data/test/plugin/test_in_forward.rb +1 -2
  49. data/test/plugin/test_in_http.rb +24 -2
  50. data/test/plugin/test_in_monitor_agent.rb +6 -6
  51. data/test/plugin/test_in_syslog.rb +18 -25
  52. data/test/plugin/test_in_tail.rb +153 -4
  53. data/test/plugin/test_in_tcp.rb +1 -1
  54. data/test/plugin/test_in_udp.rb +10 -16
  55. data/test/plugin/test_out_exec_filter.rb +7 -12
  56. data/test/plugin/test_out_file.rb +2 -22
  57. data/test/plugin/test_out_forward.rb +3 -2
  58. data/test/plugin/test_out_http.rb +128 -0
  59. data/test/plugin/test_out_stream.rb +1 -1
  60. data/test/plugin/test_owned_by.rb +0 -1
  61. data/test/plugin/test_parser_json.rb +106 -31
  62. data/test/plugin/test_parser_msgpack.rb +127 -0
  63. data/test/plugin/test_storage.rb +0 -1
  64. data/test/plugin_helper/test_child_process.rb +4 -4
  65. data/test/plugin_helper/test_http_server_helper.rb +1 -1
  66. data/test/plugin_helper/test_server.rb +41 -64
  67. data/test/plugin_helper/test_socket.rb +1 -1
  68. data/test/test_config.rb +0 -6
  69. data/test/test_event_router.rb +2 -2
  70. metadata +90 -21
data/test/test_config.rb CHANGED
@@ -167,7 +167,6 @@ class ConfigTest < Test::Unit::TestCase
167
167
  tag: tag.dummy
168
168
  - source:
169
169
  $type: tcp
170
- $log_level: info
171
170
  tag: tag.tcp
172
171
  parse:
173
172
  $arg:
@@ -177,7 +176,6 @@ class ConfigTest < Test::Unit::TestCase
177
176
  - match:
178
177
  $tag: tag.*
179
178
  $type: stdout
180
- $log_level: debug
181
179
  buffer:
182
180
  $type: memory
183
181
  flush_interval: 1s
@@ -210,12 +208,10 @@ class ConfigTest < Test::Unit::TestCase
210
208
  'tag.dummy',
211
209
  'tcp',
212
210
  'tag.tcp',
213
- 'info',
214
211
  'none',
215
212
  'why.parse.section.doesnot.have.arg,huh',
216
213
  'stdout',
217
214
  'tag.*',
218
- 'debug',
219
215
  'null',
220
216
  '**',
221
217
  '@FLUENT_LOG',
@@ -228,12 +224,10 @@ class ConfigTest < Test::Unit::TestCase
228
224
  dummy_source_conf['tag'],
229
225
  tcp_source_conf['@type'],
230
226
  tcp_source_conf['tag'],
231
- tcp_source_conf['@log_level'],
232
227
  parse_tcp_conf['@type'],
233
228
  parse_tcp_conf.arg,
234
229
  match_conf['@type'],
235
230
  match_conf.arg,
236
- match_conf['@log_level'],
237
231
  fluent_log_conf['@type'],
238
232
  fluent_log_conf.arg,
239
233
  label_conf.arg,
@@ -175,7 +175,7 @@ class EventRouterTest < ::Test::Unit::TestCase
175
175
  test "don't call default collector when tag matched" do
176
176
  event_router.add_rule('test', output)
177
177
  assert_rr do
178
- mock(default_collector).emit_events('test', is_a(OneEventStream)).never
178
+ dont_allow(default_collector).emit_events('test', is_a(OneEventStream))
179
179
  event_router.emit('test', Engine.now, 'k' => 'v')
180
180
  end
181
181
  # check emit handler doesn't catch rr error
@@ -201,7 +201,7 @@ class EventRouterTest < ::Test::Unit::TestCase
201
201
  event_router.add_rule('test', filter)
202
202
 
203
203
  assert_rr do
204
- mock(filter).filter_stream('test', is_a(OneEventStream)).never
204
+ dont_allow(filter).filter_stream('test', is_a(OneEventStream)) { events }
205
205
  event_router.emit('foo', Engine.now, 'k' => 'v')
206
206
  end
207
207
  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.16.7
4
+ version: 1.17.0
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-01-29 00:00:00.000000000 Z
11
+ date: 2024-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -201,33 +201,47 @@ dependencies:
201
201
  - !ruby/object:Gem::Version
202
202
  version: '1.4'
203
203
  - !ruby/object:Gem::Dependency
204
- name: console
204
+ name: base64
205
205
  requirement: !ruby/object:Gem::Requirement
206
206
  requirements:
207
- - - "<"
207
+ - - "~>"
208
208
  - !ruby/object:Gem::Version
209
- version: '1.24'
209
+ version: '0.2'
210
210
  type: :runtime
211
211
  prerelease: false
212
212
  version_requirements: !ruby/object:Gem::Requirement
213
213
  requirements:
214
- - - "<"
214
+ - - "~>"
215
215
  - !ruby/object:Gem::Version
216
- version: '1.24'
216
+ version: '0.2'
217
217
  - !ruby/object:Gem::Dependency
218
- name: logger
218
+ name: csv
219
219
  requirement: !ruby/object:Gem::Requirement
220
220
  requirements:
221
- - - '='
221
+ - - "~>"
222
222
  - !ruby/object:Gem::Version
223
- version: 1.6.2
223
+ version: '3.2'
224
224
  type: :runtime
225
225
  prerelease: false
226
226
  version_requirements: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - '='
228
+ - - "~>"
229
229
  - !ruby/object:Gem::Version
230
- version: 1.6.2
230
+ version: '3.2'
231
+ - !ruby/object:Gem::Dependency
232
+ name: drb
233
+ requirement: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - "~>"
236
+ - !ruby/object:Gem::Version
237
+ version: '2.2'
238
+ type: :runtime
239
+ prerelease: false
240
+ version_requirements: !ruby/object:Gem::Requirement
241
+ requirements:
242
+ - - "~>"
243
+ - !ruby/object:Gem::Version
244
+ version: '2.2'
231
245
  - !ruby/object:Gem::Dependency
232
246
  name: win32-service
233
247
  requirement: !ruby/object:Gem::Requirement
@@ -358,16 +372,16 @@ dependencies:
358
372
  name: timecop
359
373
  requirement: !ruby/object:Gem::Requirement
360
374
  requirements:
361
- - - "<"
375
+ - - "~>"
362
376
  - !ruby/object:Gem::Version
363
- version: 0.9.9
377
+ version: '0.9'
364
378
  type: :development
365
379
  prerelease: false
366
380
  version_requirements: !ruby/object:Gem::Requirement
367
381
  requirements:
368
- - - "<"
382
+ - - "~>"
369
383
  - !ruby/object:Gem::Version
370
- version: 0.9.9
384
+ version: '0.9'
371
385
  - !ruby/object:Gem::Dependency
372
386
  name: test-unit
373
387
  requirement: !ruby/object:Gem::Requirement
@@ -444,6 +458,48 @@ dependencies:
444
458
  - - ">="
445
459
  - !ruby/object:Gem::Version
446
460
  version: 0.50.0
461
+ - !ruby/object:Gem::Dependency
462
+ name: aws-sigv4
463
+ requirement: !ruby/object:Gem::Requirement
464
+ requirements:
465
+ - - "~>"
466
+ - !ruby/object:Gem::Version
467
+ version: '1.8'
468
+ type: :development
469
+ prerelease: false
470
+ version_requirements: !ruby/object:Gem::Requirement
471
+ requirements:
472
+ - - "~>"
473
+ - !ruby/object:Gem::Version
474
+ version: '1.8'
475
+ - !ruby/object:Gem::Dependency
476
+ name: aws-sdk-core
477
+ requirement: !ruby/object:Gem::Requirement
478
+ requirements:
479
+ - - "~>"
480
+ - !ruby/object:Gem::Version
481
+ version: '3.191'
482
+ type: :development
483
+ prerelease: false
484
+ version_requirements: !ruby/object:Gem::Requirement
485
+ requirements:
486
+ - - "~>"
487
+ - !ruby/object:Gem::Version
488
+ version: '3.191'
489
+ - !ruby/object:Gem::Dependency
490
+ name: rexml
491
+ requirement: !ruby/object:Gem::Requirement
492
+ requirements:
493
+ - - "~>"
494
+ - !ruby/object:Gem::Version
495
+ version: '3.2'
496
+ type: :development
497
+ prerelease: false
498
+ version_requirements: !ruby/object:Gem::Requirement
499
+ requirements:
500
+ - - "~>"
501
+ - !ruby/object:Gem::Version
502
+ version: '3.2'
447
503
  description: Fluentd is an open source data collector designed to scale and simplify
448
504
  log management. It can collect, process and ship many kinds of data in near real-time.
449
505
  email:
@@ -463,12 +519,15 @@ extensions: []
463
519
  extra_rdoc_files: []
464
520
  files:
465
521
  - ".deepsource.toml"
522
+ - ".github/DISCUSSION_TEMPLATE/q-a-japanese.yml"
523
+ - ".github/DISCUSSION_TEMPLATE/q-a.yml"
466
524
  - ".github/ISSUE_TEMPLATE.md"
467
525
  - ".github/ISSUE_TEMPLATE/bug_report.yml"
468
526
  - ".github/ISSUE_TEMPLATE/config.yml"
469
527
  - ".github/ISSUE_TEMPLATE/feature_request.yml"
470
528
  - ".github/PULL_REQUEST_TEMPLATE.md"
471
529
  - ".github/workflows/stale-actions.yml"
530
+ - ".github/workflows/test-ruby-head.yml"
472
531
  - ".github/workflows/test.yml"
473
532
  - ".gitignore"
474
533
  - ADOPTERS.md
@@ -840,6 +899,10 @@ files:
840
899
  - test/plugin/data/log/foo/bar.log
841
900
  - test/plugin/data/log/foo/bar2
842
901
  - test/plugin/data/log/test.log
902
+ - test/plugin/data/log_numeric/01.log
903
+ - test/plugin/data/log_numeric/02.log
904
+ - test/plugin/data/log_numeric/12.log
905
+ - test/plugin/data/log_numeric/14.log
843
906
  - test/plugin/data/sd_file/config
844
907
  - test/plugin/data/sd_file/config.json
845
908
  - test/plugin/data/sd_file/config.yaml
@@ -924,6 +987,7 @@ files:
924
987
  - test/plugin/test_parser_csv.rb
925
988
  - test/plugin/test_parser_json.rb
926
989
  - test/plugin/test_parser_labeled_tsv.rb
990
+ - test/plugin/test_parser_msgpack.rb
927
991
  - test/plugin/test_parser_multiline.rb
928
992
  - test/plugin/test_parser_nginx.rb
929
993
  - test/plugin/test_parser_none.rb
@@ -1025,7 +1089,7 @@ homepage: https://www.fluentd.org/
1025
1089
  licenses:
1026
1090
  - Apache-2.0
1027
1091
  metadata: {}
1028
- post_install_message:
1092
+ post_install_message:
1029
1093
  rdoc_options: []
1030
1094
  require_paths:
1031
1095
  - lib
@@ -1033,15 +1097,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
1033
1097
  requirements:
1034
1098
  - - ">="
1035
1099
  - !ruby/object:Gem::Version
1036
- version: '2.4'
1100
+ version: '2.7'
1037
1101
  required_rubygems_version: !ruby/object:Gem::Requirement
1038
1102
  requirements:
1039
1103
  - - ">="
1040
1104
  - !ruby/object:Gem::Version
1041
1105
  version: '0'
1042
1106
  requirements: []
1043
- rubygems_version: 3.4.19
1044
- signing_key:
1107
+ rubygems_version: 3.4.13
1108
+ signing_key:
1045
1109
  specification_version: 4
1046
1110
  summary: Fluentd event collector
1047
1111
  test_files:
@@ -1083,6 +1147,10 @@ test_files:
1083
1147
  - test/plugin/data/log/foo/bar.log
1084
1148
  - test/plugin/data/log/foo/bar2
1085
1149
  - test/plugin/data/log/test.log
1150
+ - test/plugin/data/log_numeric/01.log
1151
+ - test/plugin/data/log_numeric/02.log
1152
+ - test/plugin/data/log_numeric/12.log
1153
+ - test/plugin/data/log_numeric/14.log
1086
1154
  - test/plugin/data/sd_file/config
1087
1155
  - test/plugin/data/sd_file/config.json
1088
1156
  - test/plugin/data/sd_file/config.yaml
@@ -1167,6 +1235,7 @@ test_files:
1167
1235
  - test/plugin/test_parser_csv.rb
1168
1236
  - test/plugin/test_parser_json.rb
1169
1237
  - test/plugin/test_parser_labeled_tsv.rb
1238
+ - test/plugin/test_parser_msgpack.rb
1170
1239
  - test/plugin/test_parser_multiline.rb
1171
1240
  - test/plugin/test_parser_nginx.rb
1172
1241
  - test/plugin/test_parser_none.rb