fluent-plugin-s3 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_s3.rb +7 -3
- metadata +6 -12
data/ChangeLog
CHANGED
data/README.rdoc
CHANGED
@@ -21,6 +21,7 @@ Simply use RubyGems:
|
|
21
21
|
aws_key_id YOUR_AWS_KEY_ID
|
22
22
|
aws_sec_key YOUR_AWS_SECRET/KEY
|
23
23
|
s3_bucket YOUR_S3_BUCKET_NAME
|
24
|
+
s3_endpoint s3-ap-northeast-1.amazonaws.com
|
24
25
|
path logs/
|
25
26
|
buffer_path /var/log/fluent/s3
|
26
27
|
|
@@ -35,6 +36,8 @@ Simply use RubyGems:
|
|
35
36
|
|
36
37
|
[s3_bucket (required)] S3 bucket name.
|
37
38
|
|
39
|
+
[s3_endpoint] s3 endpoint name. Example, Tokyo region is "s3-ap-northeast-1.amazonaws.com".
|
40
|
+
|
38
41
|
[path] path prefix of the files on S3. Default is "" (no prefix).
|
39
42
|
|
40
43
|
[buffer_path (required)] path prefix of the files to buffer logs.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.2
|
data/lib/fluent/plugin/out_s3.rb
CHANGED
@@ -18,6 +18,7 @@ class S3Output < Fluent::TimeSlicedOutput
|
|
18
18
|
config_param :aws_key_id, :string
|
19
19
|
config_param :aws_sec_key, :string
|
20
20
|
config_param :s3_bucket, :string
|
21
|
+
config_param :s3_endpoint, :string, :default => nil
|
21
22
|
|
22
23
|
def configure(conf)
|
23
24
|
super
|
@@ -27,9 +28,12 @@ class S3Output < Fluent::TimeSlicedOutput
|
|
27
28
|
|
28
29
|
def start
|
29
30
|
super
|
30
|
-
|
31
|
-
:access_key_id
|
32
|
-
:secret_access_key
|
31
|
+
options = {
|
32
|
+
:access_key_id => @aws_key_id,
|
33
|
+
:secret_access_key => @aws_sec_key
|
34
|
+
}
|
35
|
+
options[:s3_endpoint] = @s3_endpoint if @s3_endpoint
|
36
|
+
@s3 = AWS::S3.new(options)
|
33
37
|
@bucket = @s3.buckets[@s3_bucket]
|
34
38
|
end
|
35
39
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-
|
12
|
+
date: 2011-12-16 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &70265351398300 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.10.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70265351398300
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: aws-sdk
|
27
|
-
requirement: &
|
27
|
+
requirement: &70265351397440 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 1.1.3
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70265351397440
|
36
36
|
description: Amazon S3 output plugin for Fluent event collector
|
37
37
|
email: frsyuki@gmail.com
|
38
38
|
executables: []
|
@@ -60,18 +60,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
60
60
|
- - ! '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
|
-
segments:
|
64
|
-
- 0
|
65
|
-
hash: -2936927257322544690
|
66
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
64
|
none: false
|
68
65
|
requirements:
|
69
66
|
- - ! '>='
|
70
67
|
- !ruby/object:Gem::Version
|
71
68
|
version: '0'
|
72
|
-
segments:
|
73
|
-
- 0
|
74
|
-
hash: -2936927257322544690
|
75
69
|
requirements: []
|
76
70
|
rubyforge_project:
|
77
71
|
rubygems_version: 1.8.10
|