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 +4 -4
- data/lib/logstash/outputs/awslogs.rb +3 -9
- data/logstash-output-awslogs.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c577058c259721be2a675d37b9eb6e037a36dae7
|
4
|
+
data.tar.gz: f62c2a74881102405d25040918d01e39c070afa4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|