fluent-plugin-sns 0.2.3 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/AUTHORS +1 -1
- data/README.rdoc +7 -3
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_sns.rb +12 -7
- metadata +41 -38
data/AUTHORS
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
Yuri Odagiri <ixixizko _at_ gmail.com>
|
data/README.rdoc
CHANGED
@@ -19,11 +19,13 @@ Send fluent-event as message to amazon SNS.
|
|
19
19
|
|
20
20
|
# following attibutes are required
|
21
21
|
|
22
|
+
sns_topic_name {sns_topic_name}
|
23
|
+
|
24
|
+
# following attibutes are required if you don't use IAM Role
|
25
|
+
|
22
26
|
aws_key_id {your_aws_key_id}
|
23
27
|
aws_sec_key {your_aws_secret_key}
|
24
28
|
|
25
|
-
sns_topic_name {sns_topic_name}
|
26
|
-
|
27
29
|
# following attibutes are optional
|
28
30
|
|
29
31
|
sns_endpoint {endpointURL}
|
@@ -40,6 +42,8 @@ Send fluent-event as message to amazon SNS.
|
|
40
42
|
sns_subject_key {sns_subject_key}
|
41
43
|
sns_subject {sns_subject} #constant subject
|
42
44
|
|
45
|
+
proxy http(s)://{url}:{port}
|
46
|
+
|
43
47
|
</match>
|
44
48
|
|
45
49
|
== TODO
|
@@ -54,5 +58,5 @@ Send fluent-event as message to amazon SNS.
|
|
54
58
|
|
55
59
|
== Copyright
|
56
60
|
|
57
|
-
Copyright:: Copyright (c) 2011-
|
61
|
+
Copyright:: Copyright (c) 2011- Yuri Odagiri
|
58
62
|
License:: Apache License, Version 2.0
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
1.0.0
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module Fluent
|
2
2
|
|
3
3
|
require 'aws-sdk'
|
4
|
-
|
4
|
+
|
5
5
|
class SNSOutput < Output
|
6
6
|
|
7
7
|
Fluent::Plugin.register_output('sns', self)
|
@@ -12,13 +12,14 @@ module Fluent
|
|
12
12
|
include SetTimeKeyMixin
|
13
13
|
config_set_default :include_time_key, true
|
14
14
|
|
15
|
-
config_param :aws_key_id, :string
|
16
|
-
config_param :aws_sec_key, :string
|
15
|
+
config_param :aws_key_id, :string, :default => nil
|
16
|
+
config_param :aws_sec_key, :string, :default => nil
|
17
17
|
|
18
18
|
config_param :sns_topic_name, :string
|
19
19
|
config_param :sns_subject_key, :string, :default => nil
|
20
20
|
config_param :sns_subject, :string, :default => nil
|
21
21
|
config_param :sns_endpoint, :string, :default => 'sns.ap-northeast-1.amazonaws.com'
|
22
|
+
config_param :proxy, :string, :default => ENV['HTTP_PROXY']
|
22
23
|
|
23
24
|
def configure(conf)
|
24
25
|
super
|
@@ -26,10 +27,14 @@ module Fluent
|
|
26
27
|
|
27
28
|
def start
|
28
29
|
super
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
options = {}
|
31
|
+
options[:sns_endpoint] = @sns_endpoint
|
32
|
+
options[:proxy_uri] = @proxy
|
33
|
+
if @aws_key_id && @aws_sec_key
|
34
|
+
options[:access_key_id] = @aws_key_id
|
35
|
+
options[:secret_access_key] = @aws_sec_key
|
36
|
+
end
|
37
|
+
AWS.config(options)
|
33
38
|
|
34
39
|
@sns = AWS::SNS.new
|
35
40
|
@topic = get_topic
|
metadata
CHANGED
@@ -1,48 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-sns
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.2.3
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Yudai Odagiri
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2014-01-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
16
15
|
name: fluentd
|
17
|
-
|
18
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 0.10.0
|
24
22
|
type: :runtime
|
25
|
-
version_requirements: *id001
|
26
|
-
- !ruby/object:Gem::Dependency
|
27
|
-
name: aws-sdk
|
28
23
|
prerelease: false
|
29
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.10.0
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: aws-sdk
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
30
33
|
none: false
|
31
|
-
requirements:
|
34
|
+
requirements:
|
32
35
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
36
|
+
- !ruby/object:Gem::Version
|
34
37
|
version: 1.3.2
|
35
38
|
type: :runtime
|
36
|
-
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ~>
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.3.2
|
37
46
|
description:
|
38
47
|
email: ixixizko@gmail.com
|
39
48
|
executables: []
|
40
|
-
|
41
49
|
extensions: []
|
42
|
-
|
43
|
-
extra_rdoc_files:
|
50
|
+
extra_rdoc_files:
|
44
51
|
- README.rdoc
|
45
|
-
files:
|
52
|
+
files:
|
46
53
|
- AUTHORS
|
47
54
|
- Rakefile
|
48
55
|
- VERSION
|
@@ -50,30 +57,26 @@ files:
|
|
50
57
|
- README.rdoc
|
51
58
|
homepage: https://github.com/ixixi/fluent-plugin-sns
|
52
59
|
licenses: []
|
53
|
-
|
54
60
|
post_install_message:
|
55
61
|
rdoc_options: []
|
56
|
-
|
57
|
-
require_paths:
|
62
|
+
require_paths:
|
58
63
|
- lib
|
59
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
64
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
60
65
|
none: false
|
61
|
-
requirements:
|
62
|
-
- -
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version:
|
65
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
71
|
none: false
|
67
|
-
requirements:
|
68
|
-
- -
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
version:
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
71
76
|
requirements: []
|
72
|
-
|
73
77
|
rubyforge_project:
|
74
78
|
rubygems_version: 1.8.23
|
75
79
|
signing_key:
|
76
80
|
specification_version: 3
|
77
81
|
summary: Amazon SNS output plugin for Fluent event collector
|
78
82
|
test_files: []
|
79
|
-
|