fluent-plugin-td 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +5 -0
- data/VERSION +1 -1
- data/fluent-plugin-td.gemspec +1 -1
- data/lib/fluent/plugin/out_tdlog.rb +13 -13
- metadata +11 -16
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.3
|
data/fluent-plugin-td.gemspec
CHANGED
@@ -4,18 +4,6 @@ module Fluent
|
|
4
4
|
class TreasureDataLogOutput < BufferedOutput
|
5
5
|
Plugin.register_output('tdlog', self)
|
6
6
|
|
7
|
-
host = 'api.treasure-data.com'
|
8
|
-
port = 80
|
9
|
-
if e = ENV['TD_API_SERVER']
|
10
|
-
host, port_ = e.split(':',2)
|
11
|
-
port_ = port_.to_i
|
12
|
-
port = port_ if port_ != 0
|
13
|
-
end
|
14
|
-
|
15
|
-
HOST = host
|
16
|
-
PORT = port
|
17
|
-
USE_SSL = false
|
18
|
-
BASE_URL = ''
|
19
7
|
IMPORT_SIZE_LIMIT = 32*1024*1024
|
20
8
|
|
21
9
|
def initialize
|
@@ -35,6 +23,7 @@ class TreasureDataLogOutput < BufferedOutput
|
|
35
23
|
@record_size_limit = 32*1024*1024 # TODO
|
36
24
|
@table_list = []
|
37
25
|
@auto_create_table = true
|
26
|
+
@use_ssl = false
|
38
27
|
@buffer_type = 'file' # overwrite default buffer_type
|
39
28
|
@flush_interval = 300 # overwrite default flush_interval to 5mins
|
40
29
|
end
|
@@ -70,6 +59,17 @@ class TreasureDataLogOutput < BufferedOutput
|
|
70
59
|
end
|
71
60
|
end
|
72
61
|
|
62
|
+
if use_ssl = conf['use_ssl']
|
63
|
+
if use_ssl.empty?
|
64
|
+
@use_ssl = true
|
65
|
+
else
|
66
|
+
@use_ssl = Config.bool_value(use_ssl)
|
67
|
+
if @use_ssl == nil
|
68
|
+
raise ConfigError, "'true' or 'false' is required for use_ssl option on tdlog output"
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
73
|
unless @auto_create_table
|
74
74
|
database = conf['database']
|
75
75
|
table = conf['table']
|
@@ -93,7 +93,7 @@ class TreasureDataLogOutput < BufferedOutput
|
|
93
93
|
|
94
94
|
def start
|
95
95
|
super
|
96
|
-
@client = TreasureData::Client.new(@apikey)
|
96
|
+
@client = TreasureData::Client.new(@apikey, :ssl=>@use_ssl)
|
97
97
|
unless @auto_create_table
|
98
98
|
check_table_exists(@key)
|
99
99
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-td
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
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:
|
12
|
+
date: 2012-02-02 00:00:00.000000000Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &70353352558660 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,21 +21,21 @@ dependencies:
|
|
21
21
|
version: 0.10.6
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70353352558660
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: td-client
|
27
|
-
requirement: &
|
27
|
+
requirement: &70353352555300 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 0.8.
|
32
|
+
version: 0.8.7
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70353352555300
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70353352553920 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 0.9.2
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70353352553920
|
47
47
|
description: Treasure Data output plugin for Fluent event collector
|
48
48
|
email:
|
49
49
|
executables: []
|
@@ -73,23 +73,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- - ! '>='
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: '0'
|
76
|
-
segments:
|
77
|
-
- 0
|
78
|
-
hash: -1430733870951102127
|
79
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
77
|
none: false
|
81
78
|
requirements:
|
82
79
|
- - ! '>='
|
83
80
|
- !ruby/object:Gem::Version
|
84
81
|
version: '0'
|
85
|
-
segments:
|
86
|
-
- 0
|
87
|
-
hash: -1430733870951102127
|
88
82
|
requirements: []
|
89
83
|
rubyforge_project:
|
90
|
-
rubygems_version: 1.8.
|
84
|
+
rubygems_version: 1.8.12
|
91
85
|
signing_key:
|
92
86
|
specification_version: 3
|
93
87
|
summary: Treasure Data output plugin for Fluent event collector
|
94
88
|
test_files:
|
95
89
|
- test/out_tdlog.rb
|
90
|
+
has_rdoc: false
|