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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ed32fb2e3018462ea41bdaa1f619cf058de6f53a123060d7df4c60b3cb26a615
4
- data.tar.gz: be1a612a4800ab3caeefb1be22f78a8f3bc651bba3ec60cd79b6aefe3040b9bd
3
+ metadata.gz: 6dcfca94694f4e44ee89771cd78c859e1f55e3cbf2aeb2f283a7f60da3d7cf38
4
+ data.tar.gz: 8a0e3d8ef8f4603a0e4efa0ab1402685352f07ce6f5504a0b16ec9bc804be11d
5
5
  SHA512:
6
- metadata.gz: 47542089e32319586b4a365119ff3ba02d87e2a82bc804b6c3683bae4c277628579b2782ba363dd0371ed10f2ed66b2ea409c626e4e1f635b64f0d26244a5635
7
- data.tar.gz: 177605c232f34eb28e9990a234ca042cb3a199f6b2eaf8bcc553b71d4dfdaf218d6a80329fd5ff8c7eed81f190d91b7b950bdae56d816ca1d7e45fe801ee7fa6
6
+ metadata.gz: 3875845ab8f00c0cfbe0119e0d25b27bcb7cc57354516f1a165fe3a429c3d21cf628b7706ea13bc85b9cbb7c36bb2a14f41f79dfaa006a4b81a117a9c79e76fa
7
+ data.tar.gz: 62c3fe8bca6fd5b89c919a929b7fbefa71a26b51b128da3618a05563299fe3103942bdf707fad6e99995f4a3007cb21c1a237fd68933d2c3d2860f457c451576
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'fluent-plugin-unomaly'
3
- spec.version = '0.1.8'
3
+ spec.version = '0.1.10'
4
4
 
5
5
  spec.summary = "Fluentd output plugin for Unomaly"
6
6
  spec.description = "Fluentd output plugin for Unomaly"
@@ -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.8
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-06-04 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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