fluent-plugin-sqs 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +10 -2
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_sqs.rb +9 -3
- metadata +3 -3
data/README.rdoc
CHANGED
@@ -21,14 +21,22 @@ Store fluent-event as queue message to amazon SQS.
|
|
21
21
|
|
22
22
|
aws_key_id {your_aws_key_id}
|
23
23
|
aws_sec_key {your_aws_secret_key}
|
24
|
-
|
24
|
+
queue_name {queue_instance_key}
|
25
25
|
|
26
26
|
# following attibutes are optional
|
27
|
+
|
28
|
+
sqs_endpoint {endpointURL}
|
29
|
+
|
30
|
+
###endpoint list###
|
31
|
+
#Tokyo(Default) : sqs.ap-northeast-1.amazonaws.com
|
32
|
+
#Singapore : sqs.ap-southeast-1.amazonaws.com
|
33
|
+
#US-East : sqs.us-east-1.amazonaws.com
|
34
|
+
#US-West : sqs.us-west-1.amazonaws.com
|
35
|
+
#EU-West : sqs.eu-west-1.amazonaws.com
|
27
36
|
|
28
37
|
</match>
|
29
38
|
|
30
39
|
== TODO
|
31
|
-
- implement!
|
32
40
|
|
33
41
|
=== More configuration
|
34
42
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
@@ -15,6 +15,7 @@ module Fluent
|
|
15
15
|
config_param :aws_key_id, :string
|
16
16
|
config_param :aws_sec_key, :string
|
17
17
|
config_param :queue_name, :string
|
18
|
+
config_param :sqs_endpoint, :string, :default => 'sqs.ap-northeast-1.amazonaws.com'
|
18
19
|
|
19
20
|
|
20
21
|
def configure(conf)
|
@@ -23,10 +24,15 @@ module Fluent
|
|
23
24
|
|
24
25
|
def start
|
25
26
|
super
|
26
|
-
@
|
27
|
+
p @sqs_endpoint
|
28
|
+
AWS.config(
|
27
29
|
:access_key_id => @aws_key_id,
|
28
|
-
:secret_access_key => @aws_sec_key
|
29
|
-
|
30
|
+
:secret_access_key => @aws_sec_key,
|
31
|
+
:sqs_endpoint => @sqs_endpoint )
|
32
|
+
|
33
|
+
@sqs = AWS::SQS.new
|
34
|
+
@queue = @sqs.queues.create(@queue_name)
|
35
|
+
|
30
36
|
end
|
31
37
|
|
32
38
|
def shutdown
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-sqs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-10-17 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &70232190821720 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 0.10.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70232190821720
|
25
25
|
description:
|
26
26
|
email: ixixizko@gmail.com
|
27
27
|
executables: []
|