fluent-plugin-splunk-enterprise 0.10.1 → 0.10.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.hec.md +7 -1
- data/fluent-plugin-splunk-enterprise.gemspec +1 -1
- data/lib/fluent/plugin/out_splunk_hec.rb +9 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b133dbce75a04a351081c2b1c413988e31b24da331304fba40959ba5b2d097
|
4
|
+
data.tar.gz: a24114b98bcd868f1948e0b343147704eb4c6729cd62b367adb423769bbcfa4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfd4853f27e8f93ef5ae3d00860818f8643345e055458aa125f3ee54fa2ebb436394215a8590fc3a6356356da9e352b4c2ffa91828ac6ed2d9d9826ad29f9cf0
|
7
|
+
data.tar.gz: 8ce52e334fd728e12e8800de766ab2ac8b57d673f604045949247dbd20c9427b5f4ea937ed7053ea487b77482420ce9861ef426783134cac23181148b22a77e2
|
data/CHANGELOG.md
CHANGED
data/README.hec.md
CHANGED
@@ -22,6 +22,7 @@
|
|
22
22
|
* [time_as_integer](#time_as_integer)
|
23
23
|
* [use_ack](#use_ack)
|
24
24
|
* [channel](#channel)
|
25
|
+
* [auto_generate_channel](#auto_generate_channel)
|
25
26
|
* [ack_interval](#ack_interval)
|
26
27
|
* [ack_retry_limit](#ack_retry_limit)
|
27
28
|
* [raw](#raw)
|
@@ -151,6 +152,11 @@ Enable/Disable [Indexer acknowledgement](https://www.google.co.jp/search?q=splun
|
|
151
152
|
This is used as [channel identifier](http://dev.splunk.com/view/event-collector/SP-CAAAE8X#aboutchannels).
|
152
153
|
When you set `use_ack` or `raw`, this parameter is required.
|
153
154
|
|
155
|
+
### auto_generate_channel
|
156
|
+
The default: `false`
|
157
|
+
|
158
|
+
This is used as auto generate channel, channel param is ignored if this param is set to true.
|
159
|
+
|
154
160
|
### ack_interval
|
155
161
|
|
156
162
|
The default: `1`
|
@@ -216,4 +222,4 @@ The path of client key file
|
|
216
222
|
|
217
223
|
### client_key_pass
|
218
224
|
|
219
|
-
The passphrase of client key.
|
225
|
+
The passphrase of client key.
|
@@ -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.10.
|
7
|
+
spec.version = "0.10.2"
|
8
8
|
spec.authors = ["Yuki Ito", "Masahiro Nakagawa"]
|
9
9
|
spec.email = ["yito@treasure-data.com", "repeatedly@gmail.com"]
|
10
10
|
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'fluent/output'
|
2
2
|
require 'httpclient'
|
3
3
|
require 'json'
|
4
|
+
require 'securerandom'
|
4
5
|
|
5
6
|
# http://dev.splunk.com/view/event-collector/SP-CAAAE6P
|
6
7
|
|
@@ -31,6 +32,7 @@ module Fluent
|
|
31
32
|
# for Indexer acknowledgement
|
32
33
|
config_param :use_ack, :bool, default: false
|
33
34
|
config_param :channel, :string, default: nil
|
35
|
+
config_param :auto_generate_channel, :bool, default: false
|
34
36
|
config_param :ack_interval, :integer, default: 1
|
35
37
|
config_param :ack_retry_limit, :integer, default: 3
|
36
38
|
|
@@ -51,6 +53,13 @@ module Fluent
|
|
51
53
|
|
52
54
|
def configure(conf)
|
53
55
|
super
|
56
|
+
|
57
|
+
if @channel && @auto_generate_channel
|
58
|
+
log.warn "Both channel and auto_generate_channel are set.. ignoring channel param and auto generating channel instead"
|
59
|
+
end
|
60
|
+
|
61
|
+
@channel = SecureRandom.uuid if @auto_generate_channel
|
62
|
+
|
54
63
|
raise ConfigError, "'channel' parameter is required when 'use_ack' is true" if @use_ack && !@channel
|
55
64
|
raise ConfigError, "'ack_interval' parameter must be a non negative integer" if @use_ack && @ack_interval < 0
|
56
65
|
raise ConfigError, "'event_key' parameter is required when 'raw' is true" if @raw && !@event_key
|
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.10.
|
4
|
+
version: 0.10.2
|
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: 2020-03-
|
12
|
+
date: 2020-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|