logstash-output-awslogs 0.1.9 → 0.1.10
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 -3
- data/logstash-output-awslogs.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19a24fc8ec53b6f1aa7c2a42d2a1caa9e283960b
|
4
|
+
data.tar.gz: 972c27ef7ca2dfd7f7d6f84c710a9fdd6fd20a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44676bc3a7ae7491843cc0440ea52c72d9f97a8d1689a99b4410dec7adc99188e27eddb021290c3411af34394a60ebb545cdefe16455cb522757ef590a4f58bf
|
7
|
+
data.tar.gz: b79b2661c24cf73751aa3cae1034002f3a1f6815b2f9cd20a10c2f85ed4c767ada1c03199b126553dd16e173c5e3406846d5418885f9e7020c1742b7dc1a0ddf
|
@@ -55,14 +55,14 @@ class LogStash::Outputs::Awslogs < LogStash::Outputs::Base
|
|
55
55
|
rescue Aws::CloudWatchLogs::Errors::ResourceNotFoundException => e
|
56
56
|
@logger.info("Will create log group/stream and retry")
|
57
57
|
begin
|
58
|
-
@client.create_log_group(:log_group_name =>
|
58
|
+
@client.create_log_group(:log_group_name => event_log_group_name)
|
59
59
|
rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => e
|
60
|
-
@logger.info("Log group #{
|
60
|
+
@logger.info("Log group #{event_log_group_name} already exists")
|
61
61
|
rescue Exception => e
|
62
62
|
@logger.error(e)
|
63
63
|
end
|
64
64
|
begin
|
65
|
-
@client.create_log_stream(:log_group_name =>
|
65
|
+
@client.create_log_stream(:log_group_name => event_log_group_name, :log_stream_name => event_log_stream_name)
|
66
66
|
rescue Aws::CloudWatchLogs::Errors::ResourceAlreadyExistsException => e
|
67
67
|
@logger.info("Log stream #{send_opts[:log_stream_name]} already exists")
|
68
68
|
rescue Exception => e
|