fluentd 1.16.6-x86-mingw32 → 1.17.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) 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 -8
  6. data/CHANGELOG.md +36 -12
  7. data/README.md +1 -1
  8. data/Rakefile +1 -1
  9. data/fluentd.gemspec +10 -5
  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/test/output_test.rb +1 -1
  32. data/lib/fluent/unique_id.rb +1 -1
  33. data/lib/fluent/version.rb +1 -1
  34. data/test/command/test_fluentd.rb +9 -56
  35. data/test/log/test_console_adapter.rb +10 -3
  36. data/test/plugin/data/log_numeric/01.log +0 -0
  37. data/test/plugin/data/log_numeric/02.log +0 -0
  38. data/test/plugin/data/log_numeric/12.log +0 -0
  39. data/test/plugin/data/log_numeric/14.log +0 -0
  40. data/test/plugin/in_tail/test_io_handler.rb +14 -13
  41. data/test/plugin/in_tail/test_position_file.rb +7 -6
  42. data/test/plugin/test_in_http.rb +23 -1
  43. data/test/plugin/test_in_tail.rb +141 -0
  44. data/test/plugin/test_out_file.rb +1 -21
  45. data/test/plugin/test_out_http.rb +128 -0
  46. data/test/plugin/test_owned_by.rb +0 -1
  47. data/test/plugin/test_parser_json.rb +106 -31
  48. data/test/plugin/test_parser_msgpack.rb +127 -0
  49. data/test/plugin/test_storage.rb +0 -1
  50. data/test/plugin_helper/test_child_process.rb +4 -4
  51. data/test/test_config.rb +0 -6
  52. metadata +99 -16
@@ -569,7 +569,7 @@ class ChildProcessTest < Test::Unit::TestCase
569
569
  unless Fluent.windows?
570
570
  test 'can specify subprocess name' do
571
571
  io = IO.popen([["cat", "caaaaaaaaaaat"], '-'])
572
- process_naming_enabled = (open("|ps opid,cmd"){|_io| _io.readlines }.count{|line| line.include?("caaaaaaaaaaat") } > 0)
572
+ process_naming_enabled = (IO.popen(["ps", "opid,cmd"]){|_io| _io.readlines }.count{|line| line.include?("caaaaaaaaaaat") } > 0)
573
573
  Process.kill(:TERM, io.pid) rescue nil
574
574
  io.close rescue nil
575
575
 
@@ -586,7 +586,7 @@ class ChildProcessTest < Test::Unit::TestCase
586
586
  m.lock
587
587
  ran = true
588
588
  pids << @d.child_process_id
589
- proc_lines += open("|ps opid,cmd"){|_io| _io.readlines }
589
+ proc_lines += IO.popen(["ps", "opid,cmd"]){|_io| _io.readlines }
590
590
  m.unlock
591
591
  readio.read
592
592
  end
@@ -645,8 +645,8 @@ class ChildProcessTest < Test::Unit::TestCase
645
645
  unless Fluent.windows?
646
646
  test 'can change working directory' do
647
647
  # check my real /tmp directory (for mac)
648
- cmd = %[|ruby -e 'Dir.chdir("/tmp"); puts Dir.pwd']
649
- mytmpdir = open(cmd){|io| io.read.chomp }
648
+ cmd = ['ruby', '-e', 'Dir.chdir("/tmp"); puts Dir.pwd']
649
+ mytmpdir = IO.popen(cmd){|io| io.read.chomp }
650
650
 
651
651
  m = Mutex.new
652
652
  str = nil
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,
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.6
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: 2024-08-20 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,19 +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
+ - !ruby/object:Gem::Version
216
+ version: '0.2'
217
+ - !ruby/object:Gem::Dependency
218
+ name: csv
219
+ requirement: !ruby/object:Gem::Requirement
220
+ requirements:
221
+ - - "~>"
222
+ - !ruby/object:Gem::Version
223
+ version: '3.2'
224
+ type: :runtime
225
+ prerelease: false
226
+ version_requirements: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - "~>"
229
+ - !ruby/object:Gem::Version
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
+ - - "~>"
215
243
  - !ruby/object:Gem::Version
216
- version: '1.24'
244
+ version: '2.2'
217
245
  - !ruby/object:Gem::Dependency
218
246
  name: win32-service
219
247
  requirement: !ruby/object:Gem::Requirement
@@ -344,16 +372,16 @@ dependencies:
344
372
  name: timecop
345
373
  requirement: !ruby/object:Gem::Requirement
346
374
  requirements:
347
- - - "<"
375
+ - - "~>"
348
376
  - !ruby/object:Gem::Version
349
- version: 0.9.9
377
+ version: '0.9'
350
378
  type: :development
351
379
  prerelease: false
352
380
  version_requirements: !ruby/object:Gem::Requirement
353
381
  requirements:
354
- - - "<"
382
+ - - "~>"
355
383
  - !ruby/object:Gem::Version
356
- version: 0.9.9
384
+ version: '0.9'
357
385
  - !ruby/object:Gem::Dependency
358
386
  name: test-unit
359
387
  requirement: !ruby/object:Gem::Requirement
@@ -430,6 +458,48 @@ dependencies:
430
458
  - - ">="
431
459
  - !ruby/object:Gem::Version
432
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'
433
503
  description: Fluentd is an open source data collector designed to scale and simplify
434
504
  log management. It can collect, process and ship many kinds of data in near real-time.
435
505
  email:
@@ -449,12 +519,15 @@ extensions: []
449
519
  extra_rdoc_files: []
450
520
  files:
451
521
  - ".deepsource.toml"
522
+ - ".github/DISCUSSION_TEMPLATE/q-a-japanese.yml"
523
+ - ".github/DISCUSSION_TEMPLATE/q-a.yml"
452
524
  - ".github/ISSUE_TEMPLATE.md"
453
525
  - ".github/ISSUE_TEMPLATE/bug_report.yml"
454
526
  - ".github/ISSUE_TEMPLATE/config.yml"
455
527
  - ".github/ISSUE_TEMPLATE/feature_request.yml"
456
528
  - ".github/PULL_REQUEST_TEMPLATE.md"
457
529
  - ".github/workflows/stale-actions.yml"
530
+ - ".github/workflows/test-ruby-head.yml"
458
531
  - ".github/workflows/test.yml"
459
532
  - ".gitignore"
460
533
  - ADOPTERS.md
@@ -826,6 +899,10 @@ files:
826
899
  - test/plugin/data/log/foo/bar.log
827
900
  - test/plugin/data/log/foo/bar2
828
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
829
906
  - test/plugin/data/sd_file/config
830
907
  - test/plugin/data/sd_file/config.json
831
908
  - test/plugin/data/sd_file/config.yaml
@@ -910,6 +987,7 @@ files:
910
987
  - test/plugin/test_parser_csv.rb
911
988
  - test/plugin/test_parser_json.rb
912
989
  - test/plugin/test_parser_labeled_tsv.rb
990
+ - test/plugin/test_parser_msgpack.rb
913
991
  - test/plugin/test_parser_multiline.rb
914
992
  - test/plugin/test_parser_nginx.rb
915
993
  - test/plugin/test_parser_none.rb
@@ -1011,7 +1089,7 @@ homepage: https://www.fluentd.org/
1011
1089
  licenses:
1012
1090
  - Apache-2.0
1013
1091
  metadata: {}
1014
- post_install_message:
1092
+ post_install_message:
1015
1093
  rdoc_options: []
1016
1094
  require_paths:
1017
1095
  - lib
@@ -1019,15 +1097,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
1019
1097
  requirements:
1020
1098
  - - ">="
1021
1099
  - !ruby/object:Gem::Version
1022
- version: '2.4'
1100
+ version: '2.7'
1023
1101
  required_rubygems_version: !ruby/object:Gem::Requirement
1024
1102
  requirements:
1025
1103
  - - ">="
1026
1104
  - !ruby/object:Gem::Version
1027
1105
  version: '0'
1028
1106
  requirements: []
1029
- rubygems_version: 3.4.19
1030
- signing_key:
1107
+ rubygems_version: 3.4.13
1108
+ signing_key:
1031
1109
  specification_version: 4
1032
1110
  summary: Fluentd event collector
1033
1111
  test_files:
@@ -1069,6 +1147,10 @@ test_files:
1069
1147
  - test/plugin/data/log/foo/bar.log
1070
1148
  - test/plugin/data/log/foo/bar2
1071
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
1072
1154
  - test/plugin/data/sd_file/config
1073
1155
  - test/plugin/data/sd_file/config.json
1074
1156
  - test/plugin/data/sd_file/config.yaml
@@ -1153,6 +1235,7 @@ test_files:
1153
1235
  - test/plugin/test_parser_csv.rb
1154
1236
  - test/plugin/test_parser_json.rb
1155
1237
  - test/plugin/test_parser_labeled_tsv.rb
1238
+ - test/plugin/test_parser_msgpack.rb
1156
1239
  - test/plugin/test_parser_multiline.rb
1157
1240
  - test/plugin/test_parser_nginx.rb
1158
1241
  - test/plugin/test_parser_none.rb