logstash-output-awslogs 0.1.11 → 0.1.16

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: c577058c259721be2a675d37b9eb6e037a36dae7
4
+ data.tar.gz: f62c2a74881102405d25040918d01e39c070afa4
5
5
  SHA512:
6
- metadata.gz: 6d513aa414dc6cb74f1fccd41aceed4292453aee645195bb8bcbc39436ba20f78d944913be4149303b9e671bfc571b6623da5b3da2c96dfd6c01240141ff4a30
7
- data.tar.gz: 4b932c235143fb4588619226455ec9f1d69856c896a030991c42e7df13ea5cb56e1829a9f4ee1f1e0f3a343036d3ee72e5fe8f1dc247070cae358bab6f760d20
6
+ metadata.gz: ec0c812db998e77cf5b3a10c4e7f3fb8bd25b2e164b31cab55c2deaca192056c9649ff6ce506f26a776b8654d8a2f13caf628743fe00d5efa2f639fb13eda0bb
7
+ data.tar.gz: 202ef2989f32eb07307c15403e191ce4c922a16f4b0e51190f80677a708763e6a04f4658c7669afa987262b758d5abcac9a5e97a1ec0a244d8e0649116f18ebc
@@ -46,7 +46,6 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
46
46
 
47
47
  to_send.each do |event_log_names, _events|
48
48
  event_log_group_name = event_log_names[0]
49
- event_log_stream_name = event_log_names[1]
50
49
  next if sequence_tokens.keys.include? event_log_group_name
51
50
 
52
51
  sequence_tokens.store(event_log_group_name, {})
@@ -65,13 +64,6 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
65
64
  rescue Exception => e
66
65
  @logger.error(e)
67
66
  end
68
- begin
69
- @client.create_log_stream(log_group_name: event_log_group_name, log_stream_name: event_log_stream_name)
70
- rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => e
71
- @logger.info("Log stream #{event_log_stream_name} already exists")
72
- rescue Exception => e
73
- @logger.error(e)
74
- end
75
67
  retry
76
68
  rescue Aws::CloudWatchLogs::Errors::ThrottlingException => e
77
69
  @logger.info('Logs throttling, retry')
@@ -123,6 +115,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
123
115
  end
124
116
  begin
125
117
  resp = @client.put_log_events(send_opts)
118
+ @next_sequence_tokens.store(next_sequence_token_key, resp.next_sequence_token)
126
119
  rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
127
120
  @logger.info('Will create log group/stream and retry')
128
121
  begin
@@ -144,8 +137,9 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
144
137
  rescue Aws::CloudWatchLogs::Errors::ThrottlingException => e
145
138
  @logger.info('Logs throttling, retry')
146
139
  retry
140
+ rescue Exception => e
141
+ @logger.error(e)
147
142
  end
148
- @next_sequence_tokens.store(next_sequence_token_key, resp.next_sequence_token)
149
143
  end
150
144
  end # def multi_receive_encoded
151
145
  end # class LogStash::Outputs::Awslogs
@@ -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.16'
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.11
4
+ version: 0.1.16
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