logstash-output-awslogs 0.1.24 → 0.1.25

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: 6c79c590f6a8db8e37f39e91dfabe4f17697bd02d29aaa1a36148d4780eafe0b
4
- data.tar.gz: f646423c73d78e6ed3861af4fb27952c5c12e626fc0f4b35060b2ce0a5661d94
3
+ metadata.gz: af5368bbf48b36f76d7efd64b8e45ded1ab26ab9f78c3a1ea49dcd624a7d7b8c
4
+ data.tar.gz: 4c24673badededf455e7fb09f3751e61fb30e8ad057855f345f4f3475803dfba
5
5
  SHA512:
6
- metadata.gz: 07d4fc8717742ceb35b20d1ed6be7e9a0f6ae058b19c7fbf9384ffa2be91565e3007e01a39d6aebd3f2c16ee7095f61b6e0b24343e2ff86e9c4211d8daac8480
7
- data.tar.gz: 4097286d38c5bc9ef062a3974012d36e54e8b3444471fcd82db0d91400c9fb2a8c4f2c6277896c1fae3cdb1d8b4e4eac30824d426b7288b889fdc552f36d99dc
6
+ metadata.gz: 4656350c7598bbf7834fff235c6b9a1cfcb8ebb526a24bf6660b8044fe3e5f958b452707dc37114f735b9ebcebd0ea51364deecb20d7b69a35a4ae102b889d84
7
+ data.tar.gz: 8fd394e3b07729b16daaa3bafaa9626c2c184c5644b68587141a805b73c5d31182ee0a4b138a2e419e192c6e992bb8d5fd6094e80822baf1ed3a59a969ba6971
@@ -38,15 +38,15 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
38
38
  unless to_send.keys.include? next_sequence_token_key
39
39
  to_send.store(next_sequence_token_key, [])
40
40
  end
41
- if event.get('message')&.empty?
41
+ if event.get('message') && !event.get('message').empty?
42
42
  to_send[next_sequence_token_key].push(
43
43
  timestamp: (event.timestamp.time.to_f * 1000).to_int,
44
- message: encoded
44
+ message: event.get('message')
45
45
  )
46
46
  else
47
47
  to_send[next_sequence_token_key].push(
48
48
  timestamp: (event.timestamp.time.to_f * 1000).to_int,
49
- message: event.get('message')
49
+ message: encoded
50
50
  )
51
51
  end
52
52
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.24'
3
+ s.version = '0.1.25'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Writes events to AWS CloudWatch logs.'
6
6
  s.homepage = 'https://github.com/rickycook/logstash-output-awslogs'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-awslogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba