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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 777dc69291b2c3a307405c13583b5d3a2de1b2b9
4
- data.tar.gz: 5829780c1044b8ed0461a6159cfaa1b3d3b987e9
3
+ metadata.gz: 3bbaa5d8875a0a0c0953b8f621545f0a7fc6ab40
4
+ data.tar.gz: b0ed0c04c50f70dc5fbb9af910e05125f634d2a2
5
5
  SHA512:
6
- metadata.gz: 4502d60ae7e11290500e1c4ef7ef5557b819bfc9a494f0ec31fdc17b147102cfc90a6633566df3c3fcfb761db0b583b29a667674583d9b1476f1d46abcddc780
7
- data.tar.gz: 736b23303a5673eded828ff4a70bde9eaa3191bea43e7dda6d505f357325baaac6bb05b5db38c4f148a54bf2dc48fd8f24f18080b530feb25d65458287cac6db
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
- @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
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.12'
3
+ s.version = '0.1.13'
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,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.12
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-16 00:00:00.000000000 Z
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