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 +4 -4
- data/lib/logstash/outputs/awslogs.rb +3 -3
- data/logstash-output-awslogs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af5368bbf48b36f76d7efd64b8e45ded1ab26ab9f78c3a1ea49dcd624a7d7b8c
|
4
|
+
data.tar.gz: 4c24673badededf455e7fb09f3751e61fb30e8ad057855f345f4f3475803dfba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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')
|
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:
|
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:
|
49
|
+
message: encoded
|
50
50
|
)
|
51
51
|
end
|
52
52
|
end
|