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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7e7913d5155ad17f7f7847328870577b6e066f1
4
- data.tar.gz: 78ec8c4bfe9b9644e288d6a39a6c6390ba606f35
3
+ metadata.gz: 777dc69291b2c3a307405c13583b5d3a2de1b2b9
4
+ data.tar.gz: 5829780c1044b8ed0461a6159cfaa1b3d3b987e9
5
5
  SHA512:
6
- metadata.gz: 6d513aa414dc6cb74f1fccd41aceed4292453aee645195bb8bcbc39436ba20f78d944913be4149303b9e671bfc571b6623da5b3da2c96dfd6c01240141ff4a30
7
- data.tar.gz: 4b932c235143fb4588619226455ec9f1d69856c896a030991c42e7df13ea5cb56e1829a9f4ee1f1e0f3a343036d3ee72e5fe8f1dc247070cae358bab6f760d20
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.11'
3
+ s.version = '0.1.12'
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba