logstash-output-awslogs 0.1.11 → 0.1.12
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 +6 -0
- data/logstash-output-awslogs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 777dc69291b2c3a307405c13583b5d3a2de1b2b9
|
4
|
+
data.tar.gz: 5829780c1044b8ed0461a6159cfaa1b3d3b987e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4502d60ae7e11290500e1c4ef7ef5557b819bfc9a494f0ec31fdc17b147102cfc90a6633566df3c3fcfb761db0b583b29a667674583d9b1476f1d46abcddc780
|
7
|
+
data.tar.gz: 736b23303a5673eded828ff4a70bde9eaa3191bea43e7dda6d505f357325baaac6bb05b5db38c4f148a54bf2dc48fd8f24f18080b530feb25d65458287cac6db
|
@@ -99,6 +99,12 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
|
|
99
99
|
else
|
100
100
|
begin
|
101
101
|
@client.create_log_stream(ident_opts)
|
102
|
+
@client.describe_log_streams(log_group_name: event_log_group_name).each do |response|
|
103
|
+
response.log_streams.each do |log_stream_data|
|
104
|
+
sequence_tokens[event_log_group_name][log_stream_data.log_stream_name.to_s] = log_stream_data.upload_sequence_token.to_s
|
105
|
+
end
|
106
|
+
end
|
107
|
+
send_opts[:sequence_token] = sequence_tokens[event_log_group_name][event_log_stream_name]
|
102
108
|
rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
|
103
109
|
@logger.info('Will create log group/stream and retry')
|
104
110
|
begin
|