logstash-output-awslogs 0.1.8 → 0.1.9

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: cf9d3bfff7bf14387d23842f9b02f53c3ab558ca
4
- data.tar.gz: 13d1412afb9220821f2b22964706075a4fe4a437
3
+ metadata.gz: 976089b21d8679e1a4a82a82e496257ad6085a26
4
+ data.tar.gz: e05ab955c846840ca2e91d89520db15dc9cff0d3
5
5
  SHA512:
6
- metadata.gz: 60cb4ae5ac77ad1c56ef81133659cf2b7d5046d96b78ba0f036ba048aa558e82ae46ac2fffecdec437a7bbe04a9258adff82be795a6346d4ba0bc5febd621c1f
7
- data.tar.gz: f7021983778d560315b7c6ec8397daa406861fe0b0393b44d104b2e103f41e187037eb990e0adf969de0b4a48fa2c6c1c4b5b6d171af15a15f877a4916a7f2e3
6
+ metadata.gz: 3fb50d9e90d952643b4002be3f252a3fa6aa1fd690384a160ece3f469223a0def2e34ead061f883df113bb882f7de10c2c0ad71cb33f35d64383c21359c4a1a7
7
+ data.tar.gz: '04870b92f6126ef8a297afa9a0bfef6f55b7ac630d5499d15fa67a9a06d62037dab5df10f32e4951690bba00190557ad6f7e45a545ca75eee3fbe0e212091964'
@@ -45,11 +45,11 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
45
45
  event_log_group_name = event_log_names[0]
46
46
  event_log_stream_name = event_log_names[1]
47
47
  unless sequence_tokens.keys.include? event_log_group_name
48
- sequence_tokens.store(event_log_group_name, [])
48
+ sequence_tokens.store(event_log_group_name, {})
49
49
  begin
50
50
  @client.describe_log_streams({log_group_name: event_log_group_name}).each do |response|
51
51
  response.log_streams.each do |log_stream_data|
52
- sequence_tokens[event_log_group_name].push({ "#{log_stream_data.log_stream_name}": "#{log_stream_data.upload_sequence_token}"})
52
+ sequence_tokens[event_log_group_name]["#{log_stream_data.log_stream_name}"] = "#{log_stream_data.upload_sequence_token}"
53
53
  end
54
54
  end
55
55
  rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.8'
3
+ s.version = '0.1.9'
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.8
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba