logstash-output-awslogs 0.1.28 → 1.0.2

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: 4fb080097b3946429995c6e7e7f937a4f05bd416c9c21060186af4237cfd8f5a
4
- data.tar.gz: 6c0d9183dc2e0aa601f74c7202033160f2fe9ed29f616342c09db2b82c7a3b42
3
+ metadata.gz: e8884e873777e5a8c0f36c20c915a18ddb96783b261c276b965ffa9bba22c47b
4
+ data.tar.gz: 238363381dccc469df307ec89bab385ed7695c20b9f84917464bee7e4f6db0f3
5
5
  SHA512:
6
- metadata.gz: 780c474b5299be93ed86071830ed410deb327d118c0d10c2952d350c31fd771fe88d1f9a7fffe36206134fdf9811076984b96617eb3e056826e38a5f63cf46d3
7
- data.tar.gz: 3dbe092d6b64511a997879d595d56d6221b8d106e4c8b97e92fe08545364825b4feca4b8a48f0e75bbb6e0db8b5c545c1421dfc151d1369f8f8ee43d48c6329c
6
+ metadata.gz: 3641fd15b67ff098f8af358d5c4ea3fc3cb090560db31356f651209fdf813b8c45cbaeec76f875f467dbc351a52f6d39508c64777e16c25f11f59612f70300aa
7
+ data.tar.gz: 62fc9d818ef1251ed308bbe29f0b4f32cf5b27cf59d818c306663a5f048f83e007e71ec5e899b7f4dc5f30a72be168389f279c1207859f3636cc0584799664cb
data/CHANGELOG.md CHANGED
File without changes
data/CONTRIBUTORS CHANGED
File without changes
data/DEVELOPER.md CHANGED
File without changes
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
1
  source 'https://rubygems.org'
2
- gemspec
2
+ gemspec
data/LICENSE CHANGED
File without changes
data/README.md CHANGED
File without changes
@@ -28,6 +28,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
28
28
 
29
29
  def multi_receive_encoded(events_and_encoded)
30
30
  to_send = {}
31
+ sequence_tokens = {}
31
32
 
32
33
  events_and_encoded.each do |event, encoded|
33
34
  event_log_stream_name = event.sprintf(log_stream_name)
@@ -50,6 +51,7 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
50
51
  end
51
52
  end
52
53
 
54
+
53
55
  to_send.each do |event_log_names, log_events|
54
56
  event_log_group_name = event_log_names[0]
55
57
  event_log_stream_name = event_log_names[1]
@@ -65,27 +67,26 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
65
67
 
66
68
  if @next_sequence_tokens.keys.include? next_sequence_token_key
67
69
  send_opts[:sequence_token] = @next_sequence_tokens[next_sequence_token_key]
68
- else
69
70
  begin
70
71
  resp = @client.put_log_events(send_opts)
71
72
  @next_sequence_tokens.store(next_sequence_token_key, resp.next_sequence_token)
72
- rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => _e
73
+ rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
73
74
  @logger.info('Will create log group/stream and retry')
74
75
  begin
75
76
  @client.create_log_group({log_group_name: send_opts[:log_group_name]})
76
- rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => _e
77
+ rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => e
77
78
  @logger.info("Log group #{send_opts[:log_group_name]} already exists")
78
79
  end
79
80
  begin
80
81
  @client.create_log_stream({log_group_name: send_opts[:log_group_name], log_stream_name: send_opts[:log_stream_name]})
81
- rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => _e
82
+ rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => e
82
83
  @logger.info("Log stream #{send_opts[:log_stream_name]} already exists")
83
84
  end
84
85
  retry
85
86
  rescue Aws::CloudWatchLogs::Errors::InvalidSequenceTokenException => e
86
87
  send_opts[:sequence_token] = e.expected_sequence_token
87
88
  retry
88
- rescue Aws::CloudWatchLogs::Errors::LimitExceededException => e
89
+ rescue Aws::CloudWatchLogs::Errors::ThrottlingException => e
89
90
  @logger.info('Logs throttling, retry')
90
91
  retry
91
92
  end
@@ -1,9 +1,9 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'logstash-output-awslogs'
3
- s.version = '0.1.28'
3
+ s.version = '1.0.2'
4
4
  s.licenses = ['Apache-2.0']
5
5
  s.summary = 'Writes events to AWS CloudWatch logs.'
6
- s.homepage = 'https://github.com/rickycook/logstash-output-awslogs'
6
+ s.homepage = 'https://github.com/Anarhyst266/logstash-output-awslogs'
7
7
  s.authors = ['Anton Klyba']
8
8
  s.email = 'anarhyst266+gems@gmail.com'
9
9
  s.require_paths = ['lib']
@@ -19,7 +19,7 @@ Gem::Specification.new do |s|
19
19
  # Gem dependencies
20
20
  s.add_runtime_dependency "logstash-core-plugin-api", "~> 2.0"
21
21
  s.add_runtime_dependency "logstash-codec-plain"
22
- s.add_runtime_dependency 'logstash-mixin-aws', '>= 4.3.0'
23
- s.add_runtime_dependency 'aws-sdk-cloudwatchlogs'
22
+ s.add_runtime_dependency 'logstash-mixin-aws', '~> 5.1'
23
+ s.add_runtime_dependency "aws-sdk-cloudwatchlogs", '~> 1'
24
24
  s.add_development_dependency "logstash-devutils"
25
25
  end
metadata CHANGED
@@ -1,86 +1,86 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logstash-output-awslogs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.28
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Klyba
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2022-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
+ name: logstash-core-plugin-api
14
15
  requirement: !ruby/object:Gem::Requirement
15
16
  requirements:
16
17
  - - "~>"
17
18
  - !ruby/object:Gem::Version
18
19
  version: '2.0'
19
- name: logstash-core-plugin-api
20
- prerelease: false
21
20
  type: :runtime
21
+ prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '2.0'
27
27
  - !ruby/object:Gem::Dependency
28
+ name: logstash-codec-plain
28
29
  requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
31
  - - ">="
31
32
  - !ruby/object:Gem::Version
32
33
  version: '0'
33
- name: logstash-codec-plain
34
- prerelease: false
35
34
  type: :runtime
35
+ prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
+ name: logstash-mixin-aws
42
43
  requirement: !ruby/object:Gem::Requirement
43
44
  requirements:
44
- - - ">="
45
+ - - "~>"
45
46
  - !ruby/object:Gem::Version
46
- version: 4.3.0
47
- name: logstash-mixin-aws
48
- prerelease: false
47
+ version: '5.1'
49
48
  type: :runtime
49
+ prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 4.3.0
54
+ version: '5.1'
55
55
  - !ruby/object:Gem::Dependency
56
+ name: aws-sdk-cloudwatchlogs
56
57
  requirement: !ruby/object:Gem::Requirement
57
58
  requirements:
58
- - - ">="
59
+ - - "~>"
59
60
  - !ruby/object:Gem::Version
60
- version: '0'
61
- name: aws-sdk-cloudwatchlogs
62
- prerelease: false
61
+ version: '1'
63
62
  type: :runtime
63
+ prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '1'
69
69
  - !ruby/object:Gem::Dependency
70
+ name: logstash-devutils
70
71
  requirement: !ruby/object:Gem::Requirement
71
72
  requirements:
72
73
  - - ">="
73
74
  - !ruby/object:Gem::Version
74
75
  version: '0'
75
- name: logstash-devutils
76
- prerelease: false
77
76
  type: :development
77
+ prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description:
83
+ description:
84
84
  email: anarhyst266+gems@gmail.com
85
85
  executables: []
86
86
  extensions: []
@@ -94,13 +94,13 @@ files:
94
94
  - README.md
95
95
  - lib/logstash/outputs/awslogs.rb
96
96
  - logstash-output-awslogs.gemspec
97
- homepage: https://github.com/rickycook/logstash-output-awslogs
97
+ homepage: https://github.com/Anarhyst266/logstash-output-awslogs
98
98
  licenses:
99
99
  - Apache-2.0
100
100
  metadata:
101
101
  logstash_plugin: 'true'
102
102
  logstash_group: output
103
- post_install_message:
103
+ post_install_message:
104
104
  rdoc_options: []
105
105
  require_paths:
106
106
  - lib
@@ -115,9 +115,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  - !ruby/object:Gem::Version
116
116
  version: '0'
117
117
  requirements: []
118
- rubyforge_project:
119
- rubygems_version: 2.6.11
120
- signing_key:
118
+ rubygems_version: 3.0.3.1
119
+ signing_key:
121
120
  specification_version: 4
122
121
  summary: Writes events to AWS CloudWatch logs.
123
122
  test_files: []