logstash-input-cloudwatch 1.0.3 → 1.0.4

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: 714fb9324b667cc5e6318beea884232eec399de7
4
- data.tar.gz: eb9fcaced10b0ff797bdb956aef90f1d4f622538
3
+ metadata.gz: 1e27e4cb4953e22e6bad0470efcb63c55b88a3f1
4
+ data.tar.gz: 2787278c3e1faa5bae2b2b01493c67a8aea50484
5
5
  SHA512:
6
- metadata.gz: b0979483d18a9c984d9705557ab534f8d0fc382aed2f5b6ccd83bf2884b84e3dc72bba7bc4f5f1188e08c5dfaa7727ee584c135132c9e9597ce6417adcf008b7
7
- data.tar.gz: 37fd5c701c206fa282a547f07517b599e77f20584394243983893acfe8669aa12cf8ea3ac9ef82f68e39b7297e2e1e72ef63b419fe1409aebb726d061c9c5f82
6
+ metadata.gz: cccdadc721acc8d8991eab38e69d3636ddf8ec644a7e2ffdc16a65cd4c11c058f4eefe62ef074a49f0824e22739618f83abfb962286bf3093fa99be65c512b47
7
+ data.tar.gz: 319dcd2c086a52fd456230a607382669ec0b6582f36f80fbd01361d61a10b3935898cc511a2f6a85f51ace2559adf38ece4e5f992841295a0296d31727005f3b
@@ -243,11 +243,11 @@ class LogStash::Inputs::CloudWatch < LogStash::Inputs::Base
243
243
  private
244
244
  def aws_filters
245
245
  @filters.collect do |key, value|
246
- if ['AWS/EC2', 'AWS/EBS'].include?(@namespace)
246
+ if @combined
247
+ { name: key, value: value }
248
+ else
247
249
  value = [value] unless value.is_a? Array
248
250
  { name: key, values: value }
249
- else
250
- { name: key, value: value }
251
251
  end
252
252
  end
253
253
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-input-cloudwatch'
3
- s.version = '1.0.3'
3
+ s.version = '1.0.4'
4
4
  s.licenses = ['Apache License (2.0)']
5
5
  s.summary = "Retrieve stats from AWS CloudWatch."
6
6
  s.description = "This gem is a logstash plugin required to be installed on top of the Logstash core pipeline using $LS_HOME/bin/plugin install gemname. This gem is not a stand-alone program"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-input-cloudwatch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jurgens du Toit