fluentd 1.11.1 → 1.12.0.rc1

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 (84) hide show
  1. checksums.yaml +4 -4
  2. data/.github/stale.yml +22 -0
  3. data/.travis.yml +22 -2
  4. data/CHANGELOG.md +74 -0
  5. data/appveyor.yml +3 -0
  6. data/bin/fluent-cap-ctl +7 -0
  7. data/example/copy_roundrobin.conf +3 -3
  8. data/example/counter.conf +1 -1
  9. data/example/filter_stdout.conf +2 -2
  10. data/example/{in_dummy_blocks.conf → in_sample_blocks.conf} +4 -4
  11. data/example/{in_dummy_with_compression.conf → in_sample_with_compression.conf} +3 -3
  12. data/example/logevents.conf +5 -5
  13. data/example/multi_filters.conf +1 -1
  14. data/example/out_exec_filter.conf +2 -2
  15. data/example/out_forward.conf +1 -1
  16. data/example/out_forward_buf_file.conf +1 -1
  17. data/example/out_forward_client.conf +5 -5
  18. data/example/out_forward_heartbeat_none.conf +1 -1
  19. data/example/out_forward_sd.conf +1 -1
  20. data/example/out_forward_shared_key.conf +2 -2
  21. data/example/out_forward_tls.conf +1 -1
  22. data/example/out_forward_users.conf +3 -3
  23. data/example/out_null.conf +4 -4
  24. data/example/secondary_file.conf +1 -1
  25. data/fluentd.gemspec +7 -6
  26. data/lib/fluent/capability.rb +87 -0
  27. data/lib/fluent/command/cap_ctl.rb +174 -0
  28. data/lib/fluent/env.rb +4 -0
  29. data/lib/fluent/log.rb +33 -3
  30. data/lib/fluent/match.rb +9 -0
  31. data/lib/fluent/plugin/buffer.rb +32 -42
  32. data/lib/fluent/plugin/buffer/chunk.rb +2 -1
  33. data/lib/fluent/plugin/formatter.rb +24 -0
  34. data/lib/fluent/plugin/formatter_csv.rb +1 -1
  35. data/lib/fluent/plugin/formatter_hash.rb +3 -1
  36. data/lib/fluent/plugin/formatter_json.rb +3 -1
  37. data/lib/fluent/plugin/formatter_ltsv.rb +5 -3
  38. data/lib/fluent/plugin/formatter_out_file.rb +6 -4
  39. data/lib/fluent/plugin/formatter_single_value.rb +4 -2
  40. data/lib/fluent/plugin/formatter_tsv.rb +4 -2
  41. data/lib/fluent/plugin/in_dummy.rb +2 -123
  42. data/lib/fluent/plugin/in_exec.rb +4 -2
  43. data/lib/fluent/plugin/in_http.rb +2 -2
  44. data/lib/fluent/plugin/in_sample.rb +141 -0
  45. data/lib/fluent/plugin/in_tail.rb +8 -1
  46. data/lib/fluent/plugin/out_http.rb +20 -2
  47. data/lib/fluent/plugin/output.rb +8 -5
  48. data/lib/fluent/plugin/parser_json.rb +5 -2
  49. data/lib/fluent/plugin_helper/cert_option.rb +5 -8
  50. data/lib/fluent/plugin_helper/inject.rb +2 -1
  51. data/lib/fluent/plugin_helper/socket.rb +1 -1
  52. data/lib/fluent/supervisor.rb +11 -6
  53. data/lib/fluent/system_config.rb +2 -1
  54. data/lib/fluent/version.rb +1 -1
  55. data/test/command/test_binlog_reader.rb +22 -6
  56. data/test/command/test_cap_ctl.rb +100 -0
  57. data/test/plugin/test_buffer.rb +4 -0
  58. data/test/plugin/test_filter_stdout.rb +6 -1
  59. data/test/plugin/test_formatter_hash.rb +6 -3
  60. data/test/plugin/test_formatter_json.rb +14 -4
  61. data/test/plugin/test_formatter_ltsv.rb +13 -5
  62. data/test/plugin/test_formatter_out_file.rb +35 -14
  63. data/test/plugin/test_formatter_single_value.rb +12 -6
  64. data/test/plugin/test_formatter_tsv.rb +12 -4
  65. data/test/plugin/test_in_exec.rb +18 -0
  66. data/test/plugin/{test_in_dummy.rb → test_in_sample.rb} +25 -25
  67. data/test/plugin/test_in_tail.rb +50 -1
  68. data/test/plugin/test_out_file.rb +23 -18
  69. data/test/plugin/test_output.rb +12 -0
  70. data/test/plugin_helper/data/cert/empty.pem +0 -0
  71. data/test/plugin_helper/test_cert_option.rb +7 -0
  72. data/test/plugin_helper/test_compat_parameters.rb +7 -2
  73. data/test/plugin_helper/test_http_server_helper.rb +5 -0
  74. data/test/plugin_helper/test_inject.rb +13 -0
  75. data/test/plugin_helper/test_server.rb +34 -0
  76. data/test/plugin_helper/test_socket.rb +8 -0
  77. data/test/test_capability.rb +74 -0
  78. data/test/test_formatter.rb +34 -10
  79. data/test/test_log.rb +44 -0
  80. data/test/test_match.rb +11 -0
  81. data/test/test_output.rb +6 -1
  82. data/test/test_static_config_analysis.rb +2 -2
  83. data/test/test_supervisor.rb +26 -0
  84. metadata +36 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2688d527009c35ea2a5c989a2b3face3685a8ebec599dc710ebf781af6239ae
4
- data.tar.gz: 804badf95082207f2851680fbb34fd414769abd8265fd1e4a2d7e7e90549c063
3
+ metadata.gz: ea33aa9fbbca10538b329676df8dc024f38836b8c0a3bd78ff8afe9b21e59a27
4
+ data.tar.gz: d3500418626d7f49305b4dee07ab6dfa10c84687ee754fd967aee1200a815dc2
5
5
  SHA512:
6
- metadata.gz: b83ee8e06598b3393376de10e1660e58bbdc04fe5bc6f4f957d1701b319e043e50504ea5adfe2d3e32321492a89f8e4d3fcdc51bd00c5f545518cc8fbec08bb6
7
- data.tar.gz: 57ec086faf5ff26513175213e7221930c1e7a5c5517c97fadda97b02013b5ea126fc1f650477b34d464d6f0287077d62eaf7e7f6afec897fb6f060d72e5bc077
6
+ metadata.gz: 7a43d215a3a026042028643ca627f81411379efe8eb5090c4c98f8886c22efe33595362b82273889b97ecc8a95af8c93d0d2dbf5d8494c3c8e680942dd8c0c67
7
+ data.tar.gz: a17be6c1b92193649412e223ce7bba96d94f1122b309e459dc72a6e7f0a5339874e2a9d9d352a88612c3d7e603c2276b8109af97b8b26cc3967d81cae7925071
@@ -0,0 +1,22 @@
1
+ # Number of days of inactivity before an issue becomes stale
2
+ daysUntilStale: 90
3
+ # Number of days of inactivity before a stale issue is closed
4
+ daysUntilClose: 30
5
+ # Issues with these labels will never be considered stale
6
+ exemptLabels:
7
+ - bug
8
+ - enhancement
9
+ - feature request
10
+ - pending
11
+ - work_in_progress
12
+ - v1
13
+ - v2
14
+ # Label to use when marking an issue as stale
15
+ staleLabel: stale
16
+ # Comment to post when marking an issue as stale. Set to `false` to disable
17
+ markComment: >
18
+ This issue has been automatically marked as stale because it has not had
19
+ recent activity. It will be closed if no further activity occurs. Thank you
20
+ for your contributions.
21
+ # Comment to post when closing a stale issue. Set to `false` to disable
22
+ closeComment: true
@@ -9,44 +9,63 @@ matrix:
9
9
  include:
10
10
  - rvm: 2.4.9
11
11
  os: linux
12
+ env: USE_CAPNG=false
12
13
  - rvm: 2.4.9
13
14
  os: linux-ppc64le
15
+ env: USE_CAPNG=false
14
16
  - rvm: 2.5.7
15
17
  os: linux
18
+ env: USE_CAPNG=false
16
19
  - rvm: 2.5.7
17
20
  os: linux
18
21
  arch: s390x
19
22
  dist: xenial
23
+ env: USE_CAPNG=false
20
24
  - rvm: 2.6.5
21
25
  os: linux
26
+ env: USE_CAPNG=false
27
+ - rvm: 2.6.6
28
+ os: linux
29
+ env: USE_CAPNG=true
22
30
  - rvm: 2.7.0
23
31
  os: linux
32
+ env: USE_CAPNG=false
24
33
  - rvm: ruby-head
25
34
  os: linux
35
+ env: USE_CAPNG=false
26
36
  - rvm: ruby-head
27
37
  os: linux-ppc64le
38
+ env: USE_CAPNG=false
28
39
  - rvm: 2.4.6
29
40
  os: osx
30
41
  osx_image: xcode8.3 # OSX 10.12
42
+ env: USE_CAPNG=false
31
43
  - rvm: ruby-head
32
44
  os: osx
33
45
  osx_image: xcode8.3 # OSX 10.12
46
+ env: USE_CAPNG=false
34
47
  allow_failures:
35
48
  - rvm: 2.4.6
36
49
  os: osx
37
50
  osx_image: xcode8.3
51
+ env: USE_CAPNG=false
38
52
  - rvm: 2.5.7
39
53
  os: linux
40
54
  arch: s390x
41
55
  dist: xenial
56
+ env: USE_CAPNG=false
42
57
  - rvm: ruby-head
58
+ env: USE_CAPNG=false
43
59
 
44
60
  branches:
45
61
  only:
46
62
  - master
47
63
 
48
- before_install:
49
- - gem update --system=3.1.2
64
+ before_install: |
65
+ gem update --system=3.1.2
66
+ if [[ x"${USE_CAPNG}" == "xtrue" ]]; then
67
+ echo 'gem "capng_c"' >> Gemfile.local
68
+ fi
50
69
 
51
70
  sudo: false
52
71
  dist: trusty # for TLSv1.2 support
@@ -55,3 +74,4 @@ addons:
55
74
  apt:
56
75
  packages:
57
76
  - libgmp3-dev
77
+ - libcap-ng-dev
@@ -1,5 +1,79 @@
1
1
  # v1.11
2
2
 
3
+ ## Release v1.11.5 - 2020/11/06
4
+
5
+ ### Enhancement
6
+
7
+ * formatter: Provide `newline` parameter to support `CRLF`
8
+ https://github.com/fluent/fluentd/pull/3152
9
+ * out_http: adding support for intermediate certificates
10
+ https://github.com/fluent/fluentd/pull/3146
11
+ * Update serverengine dependency to 2.2.2 or later
12
+
13
+ ### Bug fix
14
+
15
+ * Fix a bug that windows service isn't stopped gracefuly
16
+ https://github.com/fluent/fluentd/pull/3156
17
+
18
+ ## Release v1.11.4 - 2020/10/13
19
+
20
+ ### Enhancement
21
+
22
+ * inject: Support `unixtime_millis` in `time_type` parameter
23
+ https://github.com/fluent/fluentd/pull/3145
24
+
25
+ ### Bug fix
26
+
27
+ * out_http: Fix broken data with `json_array true`
28
+ https://github.com/fluent/fluentd/pull/3144
29
+ * output: Fix wrong logging issue for `${chunk_id}`
30
+ https://github.com/fluent/fluentd/pull/3134
31
+
32
+ ## Release v1.11.3 - 2020/09/30
33
+
34
+ ### Enhancement
35
+
36
+ * in_exec: Add `connect_mode` parameter to read stderr
37
+ https://github.com/fluent/fluentd/pull/3108
38
+ * parser_json: Improve the performance
39
+ https://github.com/fluent/fluentd/pull/3109
40
+ * log: Add `ignore_same_log_interval` parameter
41
+ https://github.com/fluent/fluentd/pull/3119
42
+ * Upgrade win32 gems
43
+ https://github.com/fluent/fluentd/pull/3100
44
+ * Refactoring code
45
+ https://github.com/fluent/fluentd/pull/3094
46
+ https://github.com/fluent/fluentd/pull/3118
47
+
48
+ ### Bug fix
49
+
50
+ * buffer: Fix calculation of timekey stats
51
+ https://github.com/fluent/fluentd/pull/3018
52
+ * buffer: fix binmode usage for prevent gc
53
+ https://github.com/fluent/fluentd/pull/3138
54
+
55
+ ## Release v1.11.2 - 2020/08/04
56
+
57
+ ### Enhancement
58
+
59
+ * `in_dummy` renamed to `in_sample`
60
+ https://github.com/fluent/fluentd/pull/3065
61
+ * Allow regular expression in filter/match directive
62
+ https://github.com/fluent/fluentd/pull/3071
63
+ * Refactoring code
64
+ https://github.com/fluent/fluentd/pull/3051
65
+
66
+ ### Bug fix
67
+
68
+ * buffer: Fix log message for `chunk_limit_records` case
69
+ https://github.com/fluent/fluentd/pull/3079
70
+ * buffer: Fix timekey optimization for non-windows platform
71
+ https://github.com/fluent/fluentd/pull/3092
72
+ * cert: Raise an error for broken certificate file
73
+ https://github.com/fluent/fluentd/pull/3086
74
+ * cert: Set TLS ciphers list correcty on older OpenSSL
75
+ https://github.com/fluent/fluentd/pull/3093
76
+
3
77
  ## Release v1.11.1 - 2020/06/22
4
78
 
5
79
  ### Enhancement
@@ -7,6 +7,9 @@ install:
7
7
  - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
8
8
  - ruby --version
9
9
  - gem --version
10
+ # stay 0.14.0 for Windows CI until https://github.com/socketry/protocol-http2/issues/6 will be fixed
11
+ - ps: Write-Output "gem 'protocol-http2', ['<= 0.14.0']" | Out-File -FilePath Gemfile.local -Encoding default
12
+ - type Gemfile.local
10
13
  - ridk.cmd exec bundle install
11
14
  build: off
12
15
  test_script:
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+ # -*- coding: utf-8 -*-
3
+ here = File.dirname(__FILE__)
4
+ $LOAD_PATH << File.expand_path(File.join(here, '..', 'lib'))
5
+ require 'fluent/command/cap_ctl'
6
+
7
+ Fluent::CapCtl.new.call
@@ -1,12 +1,12 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  @label @test
4
4
  tag test.copy
5
5
  auto_increment_key id
6
6
  </source>
7
7
 
8
8
  <source>
9
- @type dummy
9
+ @type sample
10
10
  @label @test
11
11
  tag test.rr
12
12
  auto_increment_key id
@@ -36,4 +36,4 @@
36
36
  output_type ltsv
37
37
  </store>
38
38
  </match>
39
- </label>
39
+ </label>
@@ -8,7 +8,7 @@
8
8
  </system>
9
9
 
10
10
  <source>
11
- @type dummy
11
+ @type sample
12
12
  tag "test.data"
13
13
  auto_increment_key number
14
14
  </source>
@@ -1,6 +1,6 @@
1
1
  <source>
2
- @type dummy
3
- tag dummy
2
+ @type sample
3
+ tag sample
4
4
  </source>
5
5
 
6
6
  <filter **>
@@ -1,11 +1,11 @@
1
1
  <source>
2
- @type dummy
3
- tag dummy
2
+ @type sample
3
+ tag sample
4
4
  rate 100
5
- dummy {"message":"yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay"}
5
+ sample {"message":"yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay"}
6
6
  </source>
7
7
 
8
- <match dummy>
8
+ <match sample>
9
9
  @type null
10
10
  never_flush true
11
11
  <buffer>
@@ -1,16 +1,16 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  @label @main
4
4
  tag "test.data"
5
5
  size 2
6
6
  rate 10
7
- dummy {"message":"yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay"}
7
+ sample {"message":"yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay"}
8
8
  auto_increment_key number
9
9
  </source>
10
10
 
11
11
  <label @main>
12
12
  <match test.data>
13
- @type buffered_stdout
13
+ @type stdout
14
14
  <buffer>
15
15
  @type file
16
16
  path "#{Dir.pwd}/compressed_buffers"
@@ -1,10 +1,10 @@
1
1
  <source>
2
- @type dummy
3
- @label @dummylog
2
+ @type sample
3
+ @label @samplelog
4
4
  tag "data"
5
- dummy {"message":"yay"}
5
+ sample {"message":"yay"}
6
6
  </source>
7
- <label @dummylog>
7
+ <label @samplelog>
8
8
  <match **>
9
9
  @type stdout
10
10
  </match>
@@ -22,4 +22,4 @@
22
22
  # hostname_key "host"
23
23
  # </inject>
24
24
  # </match>
25
- </label>
25
+ </label>
@@ -1,7 +1,7 @@
1
1
  # This example is to measure optimized filter pipeline performance.
2
2
 
3
3
  <source>
4
- @type dummy
4
+ @type sample
5
5
  tag test
6
6
  size 1000
7
7
  </source>
@@ -1,10 +1,10 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  @label @exec
4
4
  tag exec_input
5
5
  rate 10
6
6
  auto_increment_key num
7
- dummy {"data":"mydata"}
7
+ sample {"data":"mydata"}
8
8
  </source>
9
9
 
10
10
  <label @exec>
@@ -1,5 +1,5 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
 
@@ -1,5 +1,5 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
 
@@ -1,21 +1,21 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
  <source>
6
- @type dummy
6
+ @type sample
7
7
  tag test2
8
8
  </source>
9
9
  <source>
10
- @type dummy
10
+ @type sample
11
11
  tag test3
12
12
  </source>
13
13
  <source>
14
- @type dummy
14
+ @type sample
15
15
  tag test4
16
16
  </source>
17
17
  <source>
18
- @type dummy
18
+ @type sample
19
19
  tag test5
20
20
  </source>
21
21
 
@@ -1,5 +1,5 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
 
@@ -1,5 +1,5 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
 
@@ -1,9 +1,9 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
  <source>
6
- @type dummy
6
+ @type sample
7
7
  tag test2
8
8
  </source>
9
9
 
@@ -1,5 +1,5 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
 
@@ -1,13 +1,13 @@
1
1
  <source>
2
- @type dummy
2
+ @type sample
3
3
  tag test
4
4
  </source>
5
5
  <source>
6
- @type dummy
6
+ @type sample
7
7
  tag test2
8
8
  </source>
9
9
  <source>
10
- @type dummy
10
+ @type sample
11
11
  tag test3
12
12
  </source>
13
13
 
@@ -2,17 +2,17 @@
2
2
  # bundle exec bin/fluentd -c example/out_buffered_null.conf
3
3
  # (+ --emit-error-log-interval 10)
4
4
  <source>
5
- @type dummy
6
- tag dummy
5
+ @type sample
6
+ tag sample
7
7
  rate 500000000
8
- dummy [
8
+ sample [
9
9
  {"message": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"},
10
10
  {"message": "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"},
11
11
  {"message": "ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc"}
12
12
  ]
13
13
  </source>
14
14
 
15
- <match dummy.**>
15
+ <match sample.**>
16
16
  @type null
17
17
  <buffer>
18
18
  flush_interval 60s