logstash-output-awslogs 0.1.18 → 0.1.19

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
  SHA256:
3
- metadata.gz: f3d5efa67caa9e211e21e71fede063e658c4b44c274d29a6838258b58b3c285f
4
- data.tar.gz: 6fd435720e928b70ccbd48679cc2d1dead030260f3c8d63eb86c563202820221
3
+ metadata.gz: f22136ec202151e2601a9c93299d84797c1f16930c9236a495feabaf81f6444a
4
+ data.tar.gz: 9f7c115e01fd43e940a510e026157b40d051d2d7d246e783ae4107a6fba73b0b
5
5
  SHA512:
6
- metadata.gz: aa5742ed53757059341e61f2522a227a9bfd980e3301a5d2b5fce7fb78da1b60fbe0d649d115cfc573ec1f0db57c1ccc9802a32d4ca1d70929e525add86a801c
7
- data.tar.gz: 02a4eda07a4c87c926947b07c568e3b7b8c2342aeec5a50a47d6edf34d389309437bc4f2e7561071cba858dc06ccf7188becc128db7fa8986e94b8dd83139054
6
+ metadata.gz: a30e56087c9ec65e1acb13dba932515e558e7fbccdc6b780d3963ee9b5ad79afcc31832fe57386402da6eef09e4cf4ac3647ba6524d16c6cdab216c7ecca93f2
7
+ data.tar.gz: 128aa9961f0ad5ec991243bc9442008ca05a1ee2b54466cc85edea0dafb75f5bb7db0646e0c36299766a875a607dd367429455c0787dbd992be1c20032d9fa39
@@ -52,7 +52,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
52
52
  begin
53
53
  @client.describe_log_streams({log_group_name: event_log_group_name}).each do |response|
54
54
  response.log_streams.each do |log_stream_data|
55
- unless log_stream_data.upload_sequence_token.empty?
55
+ unless log_stream_data.upload_sequence_token&.empty?
56
56
  sequence_tokens[event_log_group_name][log_stream_data.log_stream_name.to_s] = log_stream_data.upload_sequence_token.to_s
57
57
  end
58
58
  end
@@ -86,7 +86,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
86
86
 
87
87
  if @next_sequence_tokens.keys.include? next_sequence_token_key
88
88
  send_opts[:sequence_token] = @next_sequence_tokens[next_sequence_token_key]
89
- elsif sequence_tokens[event_log_group_name].keys.include? event_log_stream_name && !sequence_tokens[event_log_group_name][event_log_stream_name].empty?
89
+ elsif !sequence_tokens[event_log_group_name][event_log_stream_name]&.empty?
90
90
  send_opts[:sequence_token] = sequence_tokens[event_log_group_name][event_log_stream_name]
91
91
  else
92
92
  begin
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.18'
3
+ s.version = '0.1.19'
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.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba