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 +4 -4
- data/CHANGELOG.md +7 -1
- data/README.hec.md +1 -1
- data/fluent-plugin-splunk-enterprise.gemspec +1 -1
- data/lib/fluent/plugin/out_splunk_hec.rb +3 -1
- data/lib/fluent/plugin/out_splunk_tcp.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eb85af7ba58cfc9f2d47a14ee2eb71d1239420d3
|
4
|
+
data.tar.gz: 52e51db9dbaedd9d38ddf439fe2279d8d689aff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b564799eaa55478c8e5eb6a5d69e0bef89c690efd804729bad983468da8d3150911893e52468077387e9816c6c6066dd0654b26c76741432fbea7018043d1517
|
7
|
+
data.tar.gz: a21e310b66a2c86dd9e9d3f1dbbb0989ba1a5bd80a6b681938b6864c99157a9054abf7c0941cc981d99725ade9aa3de67156d8253188045c1589eda07205227f
|
data/CHANGELOG.md
CHANGED
@@ -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`
|
data/README.hec.md
CHANGED
@@ -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.
|
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
|
|
@@ -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)
|
59
|
+
@formatter = lambda {|time, record| Yajl.dump(insert_time_to_front(time, record)) }
|
60
60
|
else
|
61
|
-
@formatter = lambda {|_time, record| record
|
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
|
-
|
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.
|
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-
|
12
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|