logstash-output-cloudwatch 3.0.2 → 3.0.3

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: 7564d858eeb062d2aad68c636ef5d88170e10140
4
- data.tar.gz: afbb5319c1ba6a6f9c186c2caa7eacb740a6aed1
3
+ metadata.gz: 238bdf434ae08b2eb5090a823ce3103cf916ea75
4
+ data.tar.gz: ae4ee47f2363905090a3a7ced0d85d2d55c41371
5
5
  SHA512:
6
- metadata.gz: 4d18db88b795238a1bdb7dfb9be66d74ece421f94965694555679ef8074ff44563c8c53416ec6e2f6f3b8c059cb299495576ce6f9fca133e1de369c8b3933ac3
7
- data.tar.gz: 946d72a0bf0fa45fc25ed4b160e7d7bcc2bb8368aafd7eb0f58b91a11cce762cc02b139b3daab43b893280eb388b4cfb8856218b91fb0c36502101b4f7ae1d68
6
+ metadata.gz: 2462076296356db64d9ac75251166ca47b24ccdb95ff720d08620583ca1e76632b386529e553854a405777743573334d69e13f94fc7929b73c25965b7219cea0
7
+ data.tar.gz: 8e3fdc2cedd7563be1a2d7c15245ec9e72eefb3422f567f9d777a1573d50f312e0c5edae3d84e6a40b70027f3e3e483dcc14cb14e6d4f4d7d95b26e023dec7a9
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 3.0.3
2
+ - Move some log messages from info to debug to avoid noise
3
+
1
4
  ## 3.0.2
2
5
  - Relax constraint on logstash-core-plugin-api to >= 1.60 <= 2.99
3
6
 
@@ -165,7 +165,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
165
165
  @event_queue = SizedQueue.new(@queue_size)
166
166
  @scheduler = Rufus::Scheduler.new
167
167
  @job = @scheduler.every @timeframe do
168
- @logger.info("Scheduler Activated")
168
+ @logger.debug("Scheduler Activated")
169
169
  publish(aggregate({}))
170
170
  end
171
171
  end # def register
@@ -188,14 +188,14 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
188
188
  @logger.warn("Posted to AWS CloudWatch ahead of schedule. If you see this often, consider increasing the cloudwatch queue_size option.")
189
189
  end
190
190
 
191
- @logger.info("Queueing event", :event => event)
191
+ @logger.debug("Queueing event", :event => event)
192
192
  @event_queue << event
193
193
  end # def receive
194
194
 
195
195
  private
196
196
  def publish(aggregates)
197
197
  aggregates.each do |namespace, data|
198
- @logger.info("Namespace, data: ", :namespace => namespace, :data => data)
198
+ @logger.debug("Namespace, data: ", :namespace => namespace, :data => data)
199
199
  metric_data = []
200
200
  data.each do |aggregate_key, stats|
201
201
  new_data = {
@@ -227,7 +227,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
227
227
  :namespace => namespace,
228
228
  :metric_data => batch
229
229
  )
230
- @logger.info("Sent data to AWS CloudWatch OK", :namespace => namespace, :metric_data => batch)
230
+ @logger.debug("Sent data to AWS CloudWatch OK", :namespace => namespace, :metric_data => batch)
231
231
  rescue Exception => e
232
232
  @logger.warn("Failed to send to AWS CloudWatch", :exception => e, :namespace => namespace, :metric_data => batch)
233
233
  break
@@ -239,7 +239,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
239
239
 
240
240
  private
241
241
  def aggregate(aggregates)
242
- @logger.info("QUEUE SIZE ", :queuesize => @event_queue.size)
242
+ @logger.debug("QUEUE SIZE ", :queuesize => @event_queue.size)
243
243
  while !@event_queue.empty? do
244
244
  begin
245
245
  count(aggregates, @event_queue.pop(true))
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'logstash-output-cloudwatch'
4
- s.version = '3.0.2'
4
+ s.version = '3.0.3'
5
5
  s.licenses = ['Apache License (2.0)']
6
6
  s.summary = "This output lets you aggregate and send metric data to AWS CloudWatch"
7
7
  s.description = "This gem is a Logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/logstash-plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elastic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-14 00:00:00.000000000 Z
11
+ date: 2016-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  version: '0'
110
110
  requirements: []
111
111
  rubyforge_project:
112
- rubygems_version: 2.6.3
112
+ rubygems_version: 2.4.8
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: This output lets you aggregate and send metric data to AWS CloudWatch