logstash-output-cloudwatch 3.0.3 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/logstash/outputs/cloudwatch.rb +5 -5
- data/logstash-output-cloudwatch.gemspec +1 -1
- 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: 06ba2d836bb306142cd381fb4b2d0e7a820d573f
|
4
|
+
data.tar.gz: 616e1a673b73112bdd7892198111c43822945d6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdd220a70723b17954ea5015985734d05f729d45168f49d5a6764d50e306195a69f15b06385ad90e78e485f68ca46c59ef4a956cd4d96f19a5dc0fa4cf684a9e
|
7
|
+
data.tar.gz: e61785036233e12668ba4bb8e0f2e336d1248a501c755a71d1cad5c4e62c04b34ca4cb3d2e54ac8e1a1afc7e42553ac19fbe210f36bb32784078992b2bcb9869
|
data/CHANGELOG.md
CHANGED
@@ -281,7 +281,7 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
281
281
|
aggregates[namespace] = {}
|
282
282
|
end
|
283
283
|
|
284
|
-
dims = event
|
284
|
+
dims = event.get(@field_dimensions)
|
285
285
|
if (dims) # event provides dimensions
|
286
286
|
# validate the structure
|
287
287
|
if (!dims.is_a?(Array) || dims.length == 0 || (dims.length % 2) != 0)
|
@@ -333,13 +333,13 @@ class LogStash::Outputs::CloudWatch < LogStash::Outputs::Base
|
|
333
333
|
|
334
334
|
private
|
335
335
|
def field(event, fieldname)
|
336
|
-
if !event
|
336
|
+
if !event.get(fieldname)
|
337
337
|
return nil
|
338
338
|
else
|
339
|
-
if event
|
340
|
-
return event
|
339
|
+
if event.get(fieldname).is_a?(Array)
|
340
|
+
return event.get(fieldname).first
|
341
341
|
else
|
342
|
-
return event
|
342
|
+
return event.get(fieldname)
|
343
343
|
end
|
344
344
|
end
|
345
345
|
end # def field
|
@@ -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.
|
4
|
+
s.version = '3.0.4'
|
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.
|
4
|
+
version: 3.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elastic
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|