fluentd 1.3.1-x64-mingw32 → 1.3.2-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.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52283f4eb46f3a04ccf60072f812a53dcfbd69b3
4
- data.tar.gz: 53355b32e87ae96503fbaea085b341374b8c6b21
3
+ metadata.gz: fa0cc62b0814e2cfce42534db98ddb01976c87e9
4
+ data.tar.gz: 0f41bf6760ad36e554e37d02ea6e25314e967f4f
5
5
  SHA512:
6
- metadata.gz: 91b77c3e832c988f16ffec2533c8b367e34c1dceed0b9115dfeeeb67ae43515c419db15621e8a7db2c23e1eb2431ed6af20ce9016de00f8eeea8794e5e3d6cdc
7
- data.tar.gz: c26c61f4709d3a1b11f615ced7cdec0065cbab21c76bcf14b83edbfd3b5a7385ea89e2662262a70ca7d9e787e1bcb209bce1525f9b5cd7c27d725d8803bd1cd4
6
+ metadata.gz: d3a6f2156bb5bcbd558a7d812570b4b48c0f8144d0d5d9347a6fa403d3e1b64135edcdfa940c2b0aa0d9c835a69decb436b1218574880c61e842353d1fd160ae
7
+ data.tar.gz: 16fcf0135367f14e029361c60ce2c3684e3e9bd6d652fbad926eabf859c3e286954d390e75bf881f71f29388714820bb5cd17657a92e9215d693692aa7ce75cc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # v1.3
2
2
 
3
+ ## Release v1.3.2 - 2018/12/10
4
+
5
+ ### Enhancements
6
+
7
+ * out_forward: Support mutual TLS
8
+ https://github.com/fluent/fluentd/pull/2187
9
+ * out_file: Create `pos_file` directory if it doesn't exist
10
+ https://github.com/fluent/fluentd/pull/2223
11
+
12
+ ### Bug fixes
13
+
14
+ * output: Fix logs during retry
15
+ https://github.com/fluent/fluentd/pull/2203
16
+
3
17
  ## Release v1.3.1 - 2018/11/27
4
18
 
5
19
  ### Enhancements
@@ -185,6 +185,8 @@ module Fluent::Plugin
185
185
  super
186
186
 
187
187
  if @pos_file
188
+ pos_file_dir = File.dirname(@pos_file)
189
+ FileUtils.mkdir_p(pos_file_dir) unless Dir.exist?(pos_file_dir)
188
190
  @pf_file = File.open(@pos_file, File::RDWR|File::CREAT|File::BINARY, @file_perm)
189
191
  @pf_file.sync = true
190
192
  @pf = PositionFile.parse(@pf_file)
@@ -946,7 +948,7 @@ module Fluent::Plugin
946
948
  @file = file
947
949
  @file_mutex = file_mutex
948
950
  @seek = seek
949
- @pos = pos
951
+ @pos = pos
950
952
  @inode = inode
951
953
  end
952
954
 
@@ -97,6 +97,12 @@ module Fluent::Plugin
97
97
  config_param :tls_ca_cert_path, :array, value_type: :string, default: nil
98
98
  desc 'The additional certificate path for TLS.'
99
99
  config_param :tls_cert_path, :array, value_type: :string, default: nil
100
+ desc 'The client certificate path for TLS.'
101
+ config_param :tls_client_cert_path, :string, default: nil
102
+ desc 'The client private key path for TLS.'
103
+ config_param :tls_client_private_key_path, :string, default: nil
104
+ desc 'The client private key passphrase for TLS.'
105
+ config_param :tls_client_private_key_passphrase, :string, default: nil
100
106
 
101
107
  config_section :security, required: false, multi: false do
102
108
  desc 'The hostname'
@@ -345,6 +351,9 @@ module Fluent::Plugin
345
351
  fqdn: hostname,
346
352
  allow_self_signed_cert: @tls_allow_self_signed_cert,
347
353
  cert_paths: @tls_ca_cert_path,
354
+ cert_path: @tls_client_cert_path,
355
+ private_key_path: @tls_client_private_key_path,
356
+ private_key_passphrase: @tls_client_private_key_passphrase,
348
357
  linger_timeout: @send_timeout,
349
358
  send_timeout: @send_timeout,
350
359
  recv_timeout: @ack_response_timeout,
@@ -1222,29 +1222,29 @@ module Fluent
1222
1222
 
1223
1223
  # @retry exists
1224
1224
 
1225
- if error
1226
- if @retry.limit?
1225
+ if @retry.limit?
1226
+ if error
1227
1227
  records = @buffer.queued_records
1228
1228
  msg = "failed to flush the buffer, and hit limit for retries. dropping all chunks in the buffer queue."
1229
1229
  log.error msg, retry_times: @retry.steps, records: records, error: error
1230
1230
  log.error_backtrace error.backtrace
1231
- elsif using_secondary
1232
- msg = "failed to flush the buffer with secondary output."
1233
- log.warn msg, retry_time: @retry.steps, next_retry_seconds: @retry.next_time, chunk: chunk_id_hex, error: error
1234
- log.warn_backtrace error.backtrace
1235
- else
1236
- msg = "failed to flush the buffer."
1237
- log.warn msg, retry_time: @retry.steps, next_retry_seconds: @retry.next_time, chunk: chunk_id_hex, error: error
1238
- log.warn_backtrace error.backtrace
1239
1231
  end
1240
- end
1241
-
1242
- if @retry.limit?
1243
1232
  @buffer.clear_queue!
1244
1233
  log.debug "buffer queue cleared"
1245
1234
  @retry = nil
1246
1235
  else
1247
1236
  @retry.step
1237
+ if error
1238
+ if using_secondary
1239
+ msg = "failed to flush the buffer with secondary output."
1240
+ log.warn msg, retry_time: @retry.steps, next_retry_seconds: @retry.next_time, chunk: chunk_id_hex, error: error
1241
+ log.warn_backtrace error.backtrace
1242
+ else
1243
+ msg = "failed to flush the buffer."
1244
+ log.warn msg, retry_time: @retry.steps, next_retry_seconds: @retry.next_time, chunk: chunk_id_hex, error: error
1245
+ log.warn_backtrace error.backtrace
1246
+ end
1247
+ end
1248
1248
  end
1249
1249
  end
1250
1250
  end
@@ -89,7 +89,8 @@ module Fluent
89
89
  def socket_create_tls(
90
90
  host, port,
91
91
  version: TLS_DEFAULT_VERSION, ciphers: CIPHERS_DEFAULT, insecure: false, verify_fqdn: true, fqdn: nil,
92
- enable_system_cert_store: true, allow_self_signed_cert: false, cert_paths: nil, **kwargs, &block)
92
+ enable_system_cert_store: true, allow_self_signed_cert: false, cert_paths: nil,
93
+ cert_path: nil, private_key_path: nil, private_key_passphrase: nil, **kwargs, &block)
93
94
 
94
95
  host_is_ipaddress = IPAddr.new(host) rescue false
95
96
  fqdn ||= host unless host_is_ipaddress
@@ -131,6 +132,8 @@ module Fluent
131
132
  context.verify_mode = OpenSSL::SSL::VERIFY_PEER
132
133
  context.cert_store = cert_store
133
134
  context.verify_hostname = true if verify_fqdn && fqdn && context.respond_to?(:verify_hostname=)
135
+ context.cert = OpenSSL::X509::Certificate.new(File.read(cert_path)) if cert_path
136
+ context.key = OpenSSL::PKey::RSA.new(File.read(private_key_path), private_key_passphrase) if private_key_path
134
137
  end
135
138
 
136
139
  tcpsock = socket_create_tcp(host, port, **kwargs)
@@ -16,6 +16,6 @@
16
16
 
17
17
  module Fluent
18
18
 
19
- VERSION = '1.3.1'
19
+ VERSION = '1.3.2'
20
20
 
21
21
  end
@@ -1011,6 +1011,25 @@ class TailInputTest < Test::Unit::TestCase
1011
1011
  end
1012
1012
  end
1013
1013
 
1014
+ def test_pos_file_dir_creation
1015
+ config = config_element("", "", {
1016
+ "tag" => "tail",
1017
+ "path" => "#{TMP_DIR}/*.txt",
1018
+ "format" => "none",
1019
+ "pos_file" => "#{TMP_DIR}/pos/tail.pos",
1020
+ "read_from_head" => true,
1021
+ "refresh_interval" => 1
1022
+ })
1023
+ d = create_driver(config, false)
1024
+ d.run(expect_emits: 1, shutdown: false) do
1025
+ File.open("#{TMP_DIR}/tail.txt", "ab") { |f| f.puts "test3\n" }
1026
+ end
1027
+ assert_path_exist("#{TMP_DIR}/pos/tail.pos")
1028
+ cleanup_directory(TMP_DIR)
1029
+
1030
+ d.instance_shutdown
1031
+ end
1032
+
1014
1033
  def test_z_refresh_watchers
1015
1034
  plugin = create_driver(EX_CONFIG, false).instance
1016
1035
  sio = StringIO.new
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.3.1
4
+ version: 1.3.2
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: 2018-11-27 00:00:00.000000000 Z
11
+ date: 2018-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack