fluent-plugin-splunk-enterprise 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9f7860fa269758ff447858638a8f18ad6ca9e63
4
- data.tar.gz: deb978c15f15e0a0ab9ebcf4a464c7b26952b97a
3
+ metadata.gz: eb85af7ba58cfc9f2d47a14ee2eb71d1239420d3
4
+ data.tar.gz: 52e51db9dbaedd9d38ddf439fe2279d8d689aff1
5
5
  SHA512:
6
- metadata.gz: a8508a4814b1ec801c7869ba96e80f2ff33a1b9e55fbb17afe086c542d77428d97e43e6e0358bed93ad1dcdaac326b583363c37bef49aeafa8c24c509cf9dbd7
7
- data.tar.gz: 3589f5e56f7f368950eace44eaebeca01f654506aace6a95695d77a9572ba37fd9e58debb172181a448515a8fe8243d8c62fe8c522e5ab5471e204578ac483a6
6
+ metadata.gz: b564799eaa55478c8e5eb6a5d69e0bef89c690efd804729bad983468da8d3150911893e52468077387e9816c6c6066dd0654b26c76741432fbea7018043d1517
7
+ data.tar.gz: a21e310b66a2c86dd9e9d3f1dbbb0989ba1a5bd80a6b681938b6864c99157a9054abf7c0941cc981d99725ade9aa3de67156d8253188045c1589eda07205227f
@@ -1,5 +1,11 @@
1
+ # Release v0.9.1 - 2018/08/14
2
+
3
+ ## New Features
4
+
5
+ * Use `yajl` instead of `json` to avoid encoding error
6
+
1
7
  # Release v0.9.0 - 2018/05/03
2
8
 
3
9
  ## New Features
4
10
 
5
- * Open sourced from fluentd enterprise: out_splunk_tcp and out_splunk_hec
11
+ * Open sourced from fluentd enterprise: `out_splunk_tcp` and `out_splunk_hec`
@@ -52,7 +52,7 @@
52
52
  ca_file /path/to/ca.pem
53
53
 
54
54
  # buffered output parameter
55
- buffer 10s
55
+ flush_interval 10s
56
56
  </match>
57
57
  ```
58
58
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-splunk-enterprise"
7
- spec.version = "0.9.0"
7
+ spec.version = "0.9.1"
8
8
  spec.authors = ["Yuki Ito", "Masahiro Nakagawa"]
9
9
  spec.email = ["yito@treasure-data.com", "repeatedly@gmail.com"]
10
10
 
@@ -120,7 +120,9 @@ module Fluent
120
120
  msg['index'] = @default_index
121
121
  end
122
122
 
123
- msg.to_json + "\n"
123
+ res = Yajl.dump(msg)
124
+ res << @line_breaker
125
+ res
124
126
  end
125
127
 
126
128
  def format_event_raw(record)
@@ -56,9 +56,9 @@ module Fluent
56
56
  case @format
57
57
  when 'json'
58
58
  if @use_fluentd_time
59
- @formatter = lambda {|time, record| insert_time_to_front(time, record).to_json }
59
+ @formatter = lambda {|time, record| Yajl.dump(insert_time_to_front(time, record)) }
60
60
  else
61
- @formatter = lambda {|_time, record| record.to_json }
61
+ @formatter = lambda {|_time, record| Yajl.dump(record) }
62
62
  end
63
63
  when 'kv'
64
64
  if @use_fluentd_time
@@ -90,7 +90,10 @@ module Fluent
90
90
  payload = ''
91
91
  chunk.msgpack_each do |time, record|
92
92
  event = @formatter.call(time, record)
93
- payload << (event + @line_breaker) unless event.empty?
93
+ unless event.empty?
94
+ payload << event
95
+ payload << @line_breaker
96
+ end
94
97
  end
95
98
 
96
99
  unless payload.empty?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-splunk-enterprise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki Ito
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-05-03 00:00:00.000000000 Z
12
+ date: 2018-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd