fluentd 1.7.4-x64-mingw32 → 1.8.0-x64-mingw32

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.

Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/.github/ISSUE_TEMPLATE/bug_report.md +0 -1
  3. data/.travis.yml +4 -0
  4. data/CHANGELOG.md +70 -0
  5. data/MAINTAINERS.md +1 -0
  6. data/example/out_forward_sd.conf +17 -0
  7. data/example/sd.yaml +8 -0
  8. data/fluentd.gemspec +1 -1
  9. data/lib/fluent/agent.rb +3 -1
  10. data/lib/fluent/command/cat.rb +1 -2
  11. data/lib/fluent/command/fluentd.rb +16 -8
  12. data/lib/fluent/compat/call_super_mixin.rb +9 -0
  13. data/lib/fluent/compat/exec_util.rb +1 -1
  14. data/lib/fluent/config/configure_proxy.rb +4 -4
  15. data/lib/fluent/config/element.rb +28 -15
  16. data/lib/fluent/config/error.rb +6 -0
  17. data/lib/fluent/config/literal_parser.rb +24 -2
  18. data/lib/fluent/config/section.rb +43 -6
  19. data/lib/fluent/config/types.rb +98 -26
  20. data/lib/fluent/configurable.rb +2 -2
  21. data/lib/fluent/counter/base_socket.rb +2 -4
  22. data/lib/fluent/engine.rb +41 -122
  23. data/lib/fluent/event.rb +5 -7
  24. data/lib/fluent/fluent_log_event_router.rb +141 -0
  25. data/lib/fluent/msgpack_factory.rb +19 -2
  26. data/lib/fluent/plugin.rb +10 -1
  27. data/lib/fluent/plugin/base.rb +2 -2
  28. data/lib/fluent/plugin/buf_file.rb +11 -7
  29. data/lib/fluent/plugin/buf_file_single.rb +8 -5
  30. data/lib/fluent/plugin/buffer/chunk.rb +1 -1
  31. data/lib/fluent/plugin/buffer/file_chunk.rb +4 -6
  32. data/lib/fluent/plugin/buffer/file_single_chunk.rb +3 -5
  33. data/lib/fluent/plugin/formatter_csv.rb +23 -1
  34. data/lib/fluent/plugin/formatter_stdout.rb +1 -1
  35. data/lib/fluent/plugin/in_forward.rb +1 -1
  36. data/lib/fluent/plugin/in_monitor_agent.rb +4 -2
  37. data/lib/fluent/plugin/in_tail.rb +6 -0
  38. data/lib/fluent/plugin/in_unix.rb +1 -1
  39. data/lib/fluent/plugin/out_forward.rb +77 -28
  40. data/lib/fluent/plugin/out_forward/ack_handler.rb +1 -1
  41. data/lib/fluent/plugin/out_forward/load_balancer.rb +5 -2
  42. data/lib/fluent/plugin/out_stream.rb +1 -1
  43. data/lib/fluent/plugin/output.rb +11 -3
  44. data/lib/fluent/plugin/parser.rb +1 -0
  45. data/lib/fluent/plugin/sd_file.rb +155 -0
  46. data/lib/fluent/plugin/sd_static.rb +58 -0
  47. data/lib/fluent/plugin/service_discovery.rb +80 -0
  48. data/lib/fluent/plugin_helper.rb +1 -0
  49. data/lib/fluent/plugin_helper/child_process.rb +3 -3
  50. data/lib/fluent/plugin_helper/compat_parameters.rb +11 -1
  51. data/lib/fluent/plugin_helper/extract.rb +1 -1
  52. data/lib/fluent/plugin_helper/inject.rb +1 -1
  53. data/lib/fluent/plugin_helper/record_accessor.rb +10 -19
  54. data/lib/fluent/plugin_helper/server.rb +8 -4
  55. data/lib/fluent/plugin_helper/service_discovery.rb +80 -0
  56. data/lib/fluent/plugin_helper/service_discovery/manager.rb +132 -0
  57. data/lib/fluent/plugin_helper/service_discovery/round_robin_balancer.rb +43 -0
  58. data/lib/fluent/plugin_id.rb +7 -0
  59. data/lib/fluent/root_agent.rb +7 -9
  60. data/lib/fluent/supervisor.rb +192 -211
  61. data/lib/fluent/system_config.rb +26 -52
  62. data/lib/fluent/test/driver/base_owned.rb +15 -2
  63. data/lib/fluent/time.rb +8 -6
  64. data/lib/fluent/version.rb +1 -1
  65. data/test/command/test_fluentd.rb +12 -7
  66. data/test/config/test_configurable.rb +154 -0
  67. data/test/config/test_element.rb +18 -0
  68. data/test/config/test_literal_parser.rb +4 -0
  69. data/test/config/test_system_config.rb +48 -91
  70. data/test/config/test_types.rb +293 -120
  71. data/test/counter/test_client.rb +8 -4
  72. data/test/plugin/data/sd_file/config +11 -0
  73. data/test/plugin/data/sd_file/config.json +17 -0
  74. data/test/plugin/data/sd_file/config.yaml +11 -0
  75. data/test/plugin/data/sd_file/config.yml +11 -0
  76. data/test/plugin/data/sd_file/invalid_config.yml +7 -0
  77. data/test/plugin/out_forward/test_handshake_protocol.rb +2 -2
  78. data/test/plugin/out_forward/test_load_balancer.rb +1 -1
  79. data/test/plugin/out_forward/test_socket_cache.rb +2 -2
  80. data/test/plugin/test_buf_file.rb +40 -0
  81. data/test/plugin/test_buf_file_single.rb +32 -0
  82. data/test/plugin/test_buffer_file_chunk.rb +0 -11
  83. data/test/plugin/test_buffer_file_single_chunk.rb +0 -10
  84. data/test/plugin/test_formatter_csv.rb +9 -0
  85. data/test/plugin/test_in_forward.rb +9 -9
  86. data/test/plugin/test_in_monitor_agent.rb +37 -10
  87. data/test/plugin/test_in_unix.rb +5 -5
  88. data/test/plugin/test_out_forward.rb +45 -1
  89. data/test/plugin/test_out_stdout.rb +36 -1
  90. data/test/plugin/test_out_stream.rb +3 -3
  91. data/test/plugin/test_output.rb +25 -1
  92. data/test/plugin/test_sd_file.rb +211 -0
  93. data/test/plugin_helper/service_discovery/test_manager.rb +93 -0
  94. data/test/plugin_helper/service_discovery/test_round_robin_balancer.rb +21 -0
  95. data/test/plugin_helper/test_server.rb +13 -0
  96. data/test/plugin_helper/test_service_discovery.rb +72 -0
  97. data/test/test_event.rb +15 -15
  98. data/test/test_fluent_log_event_router.rb +99 -0
  99. data/test/test_logger_initializer.rb +26 -0
  100. data/test/test_supervisor.rb +30 -59
  101. metadata +43 -6
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.7.4
4
+ version: 1.8.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-25 00:00:00.000000000 Z
11
+ date: 2019-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -122,16 +122,22 @@ dependencies:
122
122
  name: tzinfo
123
123
  requirement: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - "~>"
125
+ - - ">="
126
126
  - !ruby/object:Gem::Version
127
- version: '2.0'
127
+ version: '1.0'
128
+ - - "<"
129
+ - !ruby/object:Gem::Version
130
+ version: '3.0'
128
131
  type: :runtime
129
132
  prerelease: false
130
133
  version_requirements: !ruby/object:Gem::Requirement
131
134
  requirements:
132
- - - "~>"
135
+ - - ">="
133
136
  - !ruby/object:Gem::Version
134
- version: '2.0'
137
+ version: '1.0'
138
+ - - "<"
139
+ - !ruby/object:Gem::Version
140
+ version: '3.0'
135
141
  - !ruby/object:Gem::Dependency
136
142
  name: tzinfo-data
137
143
  requirement: !ruby/object:Gem::Requirement
@@ -455,10 +461,12 @@ files:
455
461
  - example/out_forward_buf_file.conf
456
462
  - example/out_forward_client.conf
457
463
  - example/out_forward_heartbeat_none.conf
464
+ - example/out_forward_sd.conf
458
465
  - example/out_forward_shared_key.conf
459
466
  - example/out_forward_tls.conf
460
467
  - example/out_forward_users.conf
461
468
  - example/out_null.conf
469
+ - example/sd.yaml
462
470
  - example/secondary_file.conf
463
471
  - example/suppress_config_dump.conf
464
472
  - example/v0_12_filter.conf
@@ -525,6 +533,7 @@ files:
525
533
  - lib/fluent/event.rb
526
534
  - lib/fluent/event_router.rb
527
535
  - lib/fluent/filter.rb
536
+ - lib/fluent/fluent_log_event_router.rb
528
537
  - lib/fluent/formatter.rb
529
538
  - lib/fluent/input.rb
530
539
  - lib/fluent/label.rb
@@ -616,6 +625,9 @@ files:
616
625
  - lib/fluent/plugin/parser_regexp.rb
617
626
  - lib/fluent/plugin/parser_syslog.rb
618
627
  - lib/fluent/plugin/parser_tsv.rb
628
+ - lib/fluent/plugin/sd_file.rb
629
+ - lib/fluent/plugin/sd_static.rb
630
+ - lib/fluent/plugin/service_discovery.rb
619
631
  - lib/fluent/plugin/socket_util.rb
620
632
  - lib/fluent/plugin/storage.rb
621
633
  - lib/fluent/plugin/storage_local.rb
@@ -642,6 +654,9 @@ files:
642
654
  - lib/fluent/plugin_helper/record_accessor.rb
643
655
  - lib/fluent/plugin_helper/retry_state.rb
644
656
  - lib/fluent/plugin_helper/server.rb
657
+ - lib/fluent/plugin_helper/service_discovery.rb
658
+ - lib/fluent/plugin_helper/service_discovery/manager.rb
659
+ - lib/fluent/plugin_helper/service_discovery/round_robin_balancer.rb
645
660
  - lib/fluent/plugin_helper/socket.rb
646
661
  - lib/fluent/plugin_helper/socket_option.rb
647
662
  - lib/fluent/plugin_helper/storage.rb
@@ -732,6 +747,11 @@ files:
732
747
  - test/plugin/data/log/foo/bar.log
733
748
  - test/plugin/data/log/foo/bar2
734
749
  - test/plugin/data/log/test.log
750
+ - test/plugin/data/sd_file/config
751
+ - test/plugin/data/sd_file/config.json
752
+ - test/plugin/data/sd_file/config.yaml
753
+ - test/plugin/data/sd_file/config.yml
754
+ - test/plugin/data/sd_file/invalid_config.yml
735
755
  - test/plugin/out_forward/test_ack_handler.rb
736
756
  - test/plugin/out_forward/test_connection_manager.rb
737
757
  - test/plugin/out_forward/test_handshake_protocol.rb
@@ -812,6 +832,7 @@ files:
812
832
  - test/plugin/test_parser_regexp.rb
813
833
  - test/plugin/test_parser_syslog.rb
814
834
  - test/plugin/test_parser_tsv.rb
835
+ - test/plugin/test_sd_file.rb
815
836
  - test/plugin/test_storage.rb
816
837
  - test/plugin/test_storage_local.rb
817
838
  - test/plugin/test_string_util.rb
@@ -820,6 +841,8 @@ files:
820
841
  - test/plugin_helper/data/cert/cert.pem
821
842
  - test/plugin_helper/http_server/test_app.rb
822
843
  - test/plugin_helper/http_server/test_route.rb
844
+ - test/plugin_helper/service_discovery/test_manager.rb
845
+ - test/plugin_helper/service_discovery/test_round_robin_balancer.rb
823
846
  - test/plugin_helper/test_cert_option.rb
824
847
  - test/plugin_helper/test_child_process.rb
825
848
  - test/plugin_helper/test_compat_parameters.rb
@@ -833,6 +856,7 @@ files:
833
856
  - test/plugin_helper/test_record_accessor.rb
834
857
  - test/plugin_helper/test_retry_state.rb
835
858
  - test/plugin_helper/test_server.rb
859
+ - test/plugin_helper/test_service_discovery.rb
836
860
  - test/plugin_helper/test_storage.rb
837
861
  - test/plugin_helper/test_thread.rb
838
862
  - test/plugin_helper/test_timer.rb
@@ -850,9 +874,11 @@ files:
850
874
  - test/test_event_router.rb
851
875
  - test/test_event_time.rb
852
876
  - test/test_filter.rb
877
+ - test/test_fluent_log_event_router.rb
853
878
  - test/test_formatter.rb
854
879
  - test/test_input.rb
855
880
  - test/test_log.rb
881
+ - test/test_logger_initializer.rb
856
882
  - test/test_match.rb
857
883
  - test/test_mixin.rb
858
884
  - test/test_output.rb
@@ -925,6 +951,11 @@ test_files:
925
951
  - test/plugin/data/log/foo/bar.log
926
952
  - test/plugin/data/log/foo/bar2
927
953
  - test/plugin/data/log/test.log
954
+ - test/plugin/data/sd_file/config
955
+ - test/plugin/data/sd_file/config.json
956
+ - test/plugin/data/sd_file/config.yaml
957
+ - test/plugin/data/sd_file/config.yml
958
+ - test/plugin/data/sd_file/invalid_config.yml
928
959
  - test/plugin/out_forward/test_ack_handler.rb
929
960
  - test/plugin/out_forward/test_connection_manager.rb
930
961
  - test/plugin/out_forward/test_handshake_protocol.rb
@@ -1005,6 +1036,7 @@ test_files:
1005
1036
  - test/plugin/test_parser_regexp.rb
1006
1037
  - test/plugin/test_parser_syslog.rb
1007
1038
  - test/plugin/test_parser_tsv.rb
1039
+ - test/plugin/test_sd_file.rb
1008
1040
  - test/plugin/test_storage.rb
1009
1041
  - test/plugin/test_storage_local.rb
1010
1042
  - test/plugin/test_string_util.rb
@@ -1013,6 +1045,8 @@ test_files:
1013
1045
  - test/plugin_helper/data/cert/cert.pem
1014
1046
  - test/plugin_helper/http_server/test_app.rb
1015
1047
  - test/plugin_helper/http_server/test_route.rb
1048
+ - test/plugin_helper/service_discovery/test_manager.rb
1049
+ - test/plugin_helper/service_discovery/test_round_robin_balancer.rb
1016
1050
  - test/plugin_helper/test_cert_option.rb
1017
1051
  - test/plugin_helper/test_child_process.rb
1018
1052
  - test/plugin_helper/test_compat_parameters.rb
@@ -1026,6 +1060,7 @@ test_files:
1026
1060
  - test/plugin_helper/test_record_accessor.rb
1027
1061
  - test/plugin_helper/test_retry_state.rb
1028
1062
  - test/plugin_helper/test_server.rb
1063
+ - test/plugin_helper/test_service_discovery.rb
1029
1064
  - test/plugin_helper/test_storage.rb
1030
1065
  - test/plugin_helper/test_thread.rb
1031
1066
  - test/plugin_helper/test_timer.rb
@@ -1043,9 +1078,11 @@ test_files:
1043
1078
  - test/test_event_router.rb
1044
1079
  - test/test_event_time.rb
1045
1080
  - test/test_filter.rb
1081
+ - test/test_fluent_log_event_router.rb
1046
1082
  - test/test_formatter.rb
1047
1083
  - test/test_input.rb
1048
1084
  - test/test_log.rb
1085
+ - test/test_logger_initializer.rb
1049
1086
  - test/test_match.rb
1050
1087
  - test/test_mixin.rb
1051
1088
  - test/test_output.rb