fluent-plugin-unomaly 0.1.8 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-unomaly.gemspec +1 -1
- data/lib/fluent/plugin/out_unomaly.rb +8 -3
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6dcfca94694f4e44ee89771cd78c859e1f55e3cbf2aeb2f283a7f60da3d7cf38
|
4
|
+
data.tar.gz: 8a0e3d8ef8f4603a0e4efa0ab1402685352f07ce6f5504a0b16ec9bc804be11d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3875845ab8f00c0cfbe0119e0d25b27bcb7cc57354516f1a165fe3a429c3d21cf628b7706ea13bc85b9cbb7c36bb2a14f41f79dfaa006a4b81a117a9c79e76fa
|
7
|
+
data.tar.gz: 62c3fe8bca6fd5b89c919a929b7fbefa71a26b51b128da3618a05563299fe3103942bdf707fad6e99995f4a3007cb21c1a237fd68933d2c3d2860f457c451576
|
@@ -20,9 +20,6 @@ module Fluent
|
|
20
20
|
# Key that will be used by Unomaly as the log message
|
21
21
|
config_param :message_key, :string, :default => "message"
|
22
22
|
|
23
|
-
# Key that will be used by Unomaly as the log message
|
24
|
-
config_param :date_key, :string, :default => nil
|
25
|
-
|
26
23
|
# Key that will be used by Unomaly as the system key
|
27
24
|
config_param :source_key, :string, :default => "host"
|
28
25
|
|
@@ -32,6 +29,7 @@ module Fluent
|
|
32
29
|
# Display debug logs
|
33
30
|
config_param :debug, :bool, :default => false
|
34
31
|
|
32
|
+
# Accept self signed certs
|
35
33
|
config_param :accept_self_signed_certs, :bool, :default => false
|
36
34
|
|
37
35
|
# This method is called before starting.
|
@@ -88,6 +86,11 @@ module Fluent
|
|
88
86
|
log.info "Event #{unomaly_event.to_json}"
|
89
87
|
end
|
90
88
|
documents.push(unomaly_event)
|
89
|
+
|
90
|
+
if documents.length >= @batch_size
|
91
|
+
send_batch(documents)
|
92
|
+
documents = []
|
93
|
+
end
|
91
94
|
end
|
92
95
|
send_batch(documents)
|
93
96
|
end
|
@@ -107,6 +110,8 @@ module Fluent
|
|
107
110
|
end
|
108
111
|
end
|
109
112
|
|
113
|
+
log.info "Sending #{events.length} events to unomaly at #{@host}#{@api_path} (batch_size=#{@batch_size})"
|
114
|
+
|
110
115
|
request = Net::HTTP::Post.new(uri.request_uri, header)
|
111
116
|
request.body = body
|
112
117
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-unomaly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Unomaly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -130,7 +130,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.7.7
|
134
135
|
signing_key:
|
135
136
|
specification_version: 4
|
136
137
|
summary: Fluentd output plugin for Unomaly
|