fluent-plugin-couch 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -2
- data/VERSION +1 -1
- data/lib/fluent/plugin/out_couch.rb +15 -4
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -9,7 +9,7 @@
|
|
9
9
|
|
10
10
|
Store fluent-event as CouchDB Document to CouchDB database.
|
11
11
|
|
12
|
-
==
|
12
|
+
== Configuration
|
13
13
|
|
14
14
|
=== CouchOutput
|
15
15
|
|
@@ -25,9 +25,12 @@ Store fluent-event as CouchDB Document to CouchDB database.
|
|
25
25
|
</match>
|
26
26
|
|
27
27
|
== TODO
|
28
|
-
|
29
28
|
=== More configuration
|
29
|
+
==== Configuration option "regenerating_views_on_update [true(default)/false]"
|
30
|
+
* http://wiki.apache.org/couchdb/Regenerating_views_on_update
|
30
31
|
|
32
|
+
== Feature
|
33
|
+
* update document ( can be used to handle events such as updating the status of the server.)
|
31
34
|
|
32
35
|
== Tool
|
33
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -14,6 +14,9 @@ module Fluent
|
|
14
14
|
config_param :port, :string, :default => '5984'
|
15
15
|
|
16
16
|
config_param :refresh_view_index , :string, :default => nil
|
17
|
+
|
18
|
+
config_param :user, :string, :default => nil
|
19
|
+
config_param :password, :string, :default => nil
|
17
20
|
|
18
21
|
def initialize
|
19
22
|
super
|
@@ -28,11 +31,19 @@ module Fluent
|
|
28
31
|
|
29
32
|
def start
|
30
33
|
super
|
31
|
-
@
|
34
|
+
if @user && @password
|
35
|
+
@db = CouchRest.database!("http://#{@user}:#{@password}@#{@host}:#{@port}/#{@database}")
|
36
|
+
else
|
37
|
+
@db = CouchRest.database!("http://#{@host}:#{@port}/#{@database}")
|
38
|
+
end
|
32
39
|
@views = []
|
33
|
-
|
34
|
-
|
35
|
-
@
|
40
|
+
if @refresh_view_index
|
41
|
+
begin
|
42
|
+
@db.get("_design/#{@refresh_view_index}")['views'].each do |view_name,func|
|
43
|
+
@views.push([@refresh_view_index,view_name])
|
44
|
+
end
|
45
|
+
rescue
|
46
|
+
puts 'design document not found!'
|
36
47
|
end
|
37
48
|
end
|
38
49
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-couch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-02-01 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: fluentd
|
16
|
-
requirement: &
|
16
|
+
requirement: &70327036174100 !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: *70327036174100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: couchrest
|
27
|
-
requirement: &
|
27
|
+
requirement: &70327036173180 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 1.1.2
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70327036173180
|
36
36
|
description:
|
37
37
|
email: ixixizko@gmail.com
|
38
38
|
executables: []
|