fluent-plugin-cloudwatch-logs 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4515d3ff1d51227199dd771c142b25f543c04ef0
|
|
4
|
+
data.tar.gz: 784e81df02faae8bad44ddafca8397464c95b967
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 189047028dc9a27bba67e2aa6603064a0fd0be5f25aece8e347e8838a905460ca0ae4428f1c640c382cae42801d70defa7f54112e06f8757744c60a28bc8e0cd
|
|
7
|
+
data.tar.gz: ea197c9342d43a29c218baeb772dd9da217726cf90f35eed7d8c03e37878be5c50905369cb24c4c5a59904d62614c0fd2629e0c06dd239645d70f5de09377671
|
data/README.md
CHANGED
|
@@ -68,6 +68,8 @@ Fetch sample log from CloudWatch Logs:
|
|
|
68
68
|
log_stream_name log-stream-name
|
|
69
69
|
sequence_token_file /var/lib/fluent/group_stream.out.seq
|
|
70
70
|
auto_create_stream true
|
|
71
|
+
#message_keys key1,key2,key3,...
|
|
72
|
+
#max_message_length 32768
|
|
71
73
|
</match>
|
|
72
74
|
```
|
|
73
75
|
|
|
@@ -75,6 +77,8 @@ Fetch sample log from CloudWatch Logs:
|
|
|
75
77
|
* `log_stream_name`: name of log stream to store logs
|
|
76
78
|
* `sequence_token_file`: file to store next sequence token
|
|
77
79
|
* `auto_create_stream`: to create log group and stream automatically
|
|
80
|
+
* `message_keys`: keys to send messages as events
|
|
81
|
+
* `max_message_length`: maximum length of the message
|
|
78
82
|
|
|
79
83
|
### in_cloudwatch_logs
|
|
80
84
|
|
|
@@ -21,7 +21,7 @@ module Fluent
|
|
|
21
21
|
options = {}
|
|
22
22
|
options[:credentials] = Aws::Credentials.new(@aws_key_id, @aws_sec_key) if @aws_key_id && @aws_sec_key
|
|
23
23
|
options[:region] = @region if @region
|
|
24
|
-
@logs = Aws::CloudWatchLogs.new(options)
|
|
24
|
+
@logs = Aws::CloudWatchLogs::Client.new(options)
|
|
25
25
|
|
|
26
26
|
@finished = false
|
|
27
27
|
@thread = Thread.new(&method(:run))
|
|
@@ -28,7 +28,7 @@ module Fluent
|
|
|
28
28
|
options = {}
|
|
29
29
|
options[:credentials] = Aws::Credentials.new(@aws_key_id, @aws_sec_key) if @aws_key_id && @aws_sec_key
|
|
30
30
|
options[:region] = @region if @region
|
|
31
|
-
@logs = Aws::CloudWatchLogs.new(options)
|
|
31
|
+
@logs = Aws::CloudWatchLogs::Client.new(options)
|
|
32
32
|
|
|
33
33
|
create_stream if @auto_create_stream
|
|
34
34
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-cloudwatch-logs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ryota Arai
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-08-
|
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|