logstash-output-awslogs 0.1.12 → 0.1.13
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 +7 -3
- data/logstash-output-awslogs.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: 3bbaa5d8875a0a0c0953b8f621545f0a7fc6ab40
|
4
|
+
data.tar.gz: b0ed0c04c50f70dc5fbb9af910e05125f634d2a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9de2dbffa4ad46c0ad35af85bef3a2927ebdc3228e2ca95645acba67073c322568306214c99e78342312ca8a63adc619538abd375af130badf77ca6ad725a9fb
|
7
|
+
data.tar.gz: 975f7760655ca0c8096b3e9408adf1692a0263b4e8b0fea48c40c343e2066bae6fa508be853ef03231936c183131ddeb3c23d3b0ffdf85411dc16376db522962
|
@@ -99,9 +99,11 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
|
|
99
99
|
else
|
100
100
|
begin
|
101
101
|
@client.create_log_stream(ident_opts)
|
102
|
-
|
103
|
-
|
104
|
-
|
102
|
+
until sequence_tokens[event_log_group_name][event_log_stream_name] do
|
103
|
+
@client.describe_log_streams(log_group_name: event_log_group_name).each do |response|
|
104
|
+
response.log_streams.each do |log_stream_data|
|
105
|
+
sequence_tokens[event_log_group_name][log_stream_data.log_stream_name.to_s] = log_stream_data.upload_sequence_token.to_s
|
106
|
+
end
|
105
107
|
end
|
106
108
|
end
|
107
109
|
send_opts[:sequence_token] = sequence_tokens[event_log_group_name][event_log_stream_name]
|
@@ -150,6 +152,8 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
|
|
150
152
|
rescue Aws::CloudWatchLogs::Errors::ThrottlingException => e
|
151
153
|
@logger.info('Logs throttling, retry')
|
152
154
|
retry
|
155
|
+
rescue Exception => e
|
156
|
+
@logger.error("Err: #{e}; Opts: #{send_opts.each { |k,v| "#{k.to_s} : #{v.to_s}" }}")
|
153
157
|
end
|
154
158
|
@next_sequence_tokens.store(next_sequence_token_key, resp.next_sequence_token)
|
155
159
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: logstash-output-awslogs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Klyba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-06-
|
11
|
+
date: 2020-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstash-core-plugin-api
|