fluent-plugin-sumologic_output 1.7.0 → 1.7.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7d4b2b4d4ebc9a15dc335f7fba1ca912981caea13834a7007ab46788fe15c5c0
4
- data.tar.gz: dec9d40e136d1e1662c2b46c890135d109b202edb6f9836bfad8f83463b3372f
3
+ metadata.gz: 38f85777973860ce39f213613b943139ae0304be0b69e13b2b1cde495a08e2d5
4
+ data.tar.gz: b4838ac669ee2ae899b06236d57a6cf01144370b9f19ae0fe56f900051058936
5
5
  SHA512:
6
- metadata.gz: 25fd5bbe86e7a150e68cc1376029a622276cc8e9f808add7da6fdd18a2fc00419a1899798a50518a717d2ac8615be8a51cde5321036883fb2995a15fa27967ed
7
- data.tar.gz: 84c7344ddab12e2ee78497a4e07bea05f1134a8dad44bc4042a0a9032f12d6605d82f4c5be366143f3b175fe113af17ee1f034946406dd1eeb8fedb5aefe4ec2
6
+ metadata.gz: 604cc97685ba67fe6bbee0dd519b4228f66a4ca13ef721371cc8adb56d253f0a4f710ff1f00270675ce8e95526d951d22a4cc2ab0e03c17168fc7021d8c39c71
7
+ data.tar.gz: 61ab2d7c22d5f41d17cf3a4427db0f4c352ee5863b47b40b960279262ef047a5203e8ef98af5626ec0951625b520382a1003db7f9a320b1b408ffd5f573d67c4
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. Tracking did not begin until version 1.10.
4
4
 
5
+ <a name="1.7.1"></a>
6
+ # [1.7.1] (2020-04-28)
7
+ - Fix configuration for older fluentd versions [#63](https://github.com/SumoLogic/fluentd-output-sumologic/pull/63)
8
+
5
9
  <a name="1.7.0"></a>
6
10
  # [1.7.0] (2020-04-23)
7
11
  - Add option for specifing custom fields for logs: [#56](https://github.com/SumoLogic/fluentd-output-sumologic/pull/56)
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = "fluent-plugin-sumologic_output"
7
- gem.version = "1.7.0"
7
+ gem.version = "1.7.1"
8
8
  gem.authors = ["Steven Adams", "Frank Reno"]
9
9
  gem.email = ["stevezau@gmail.com", "frank.reno@me.com"]
10
10
  gem.description = %q{Output plugin to SumoLogic HTTP Endpoint}
@@ -186,13 +186,19 @@ class Fluent::Plugin::Sumologic < Fluent::Plugin::Output
186
186
  end
187
187
 
188
188
  conf['custom_fields'] = validate_key_value_pairs(conf['custom_fields'])
189
+ if conf['custom_fields'].nil?
190
+ conf.delete 'custom_fields'
191
+ end
189
192
  unless conf['custom_fields']
190
- @log.info "Custom fields: #{conf['custom_fields']}"
193
+ @log.debug "Custom fields: #{conf['custom_fields']}"
191
194
  end
192
195
 
193
196
  conf['custom_dimensions'] = validate_key_value_pairs(conf['custom_dimensions'])
197
+ if conf['custom_dimensions'].nil?
198
+ conf.delete 'custom_dimensions'
199
+ end
194
200
  unless conf['custom_dimensions']
195
- @log.info "Custom dimensions: #{conf['custom_dimensions']}"
201
+ @log.debug "Custom dimensions: #{conf['custom_dimensions']}"
196
202
  end
197
203
 
198
204
  # For some reason default is set incorrectly in unit-tests
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-sumologic_output
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Adams
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-04-27 00:00:00.000000000 Z
12
+ date: 2020-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler