fluent-plugin-mongo 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -9,13 +9,13 @@ Store fluent-event as MongoDB Document to MongoDB database.
9
9
  MongoOutput set 'time' field to a document by default.
10
10
  You set -false- to 'include_time_key' parameter if you disable this behaivor.
11
11
 
12
- === MongoBackupOutput
12
+ === MongoOutputTagCollection
13
13
 
14
- Store fluent-event to local capped collection for backup.
14
+ Tag mapping to MongoDB collection automatically.
15
15
 
16
- === MongoTagOutputCollection
16
+ === MongoBackupOutput
17
17
 
18
- Tag mapping to MongoDB collection automatically.
18
+ Store fluent-event to local capped collection for backup.
19
19
 
20
20
  === MongoTailInput
21
21
 
@@ -52,22 +52,7 @@ So, MongoDB's output plugins reset :buffer_chunk_limit if configurated value is
52
52
  - Before v1.8, max of :buffer_chunk_limit is 2MB
53
53
  - After v1.8, max of :buffer_chunk_limit is 10MB
54
54
 
55
- === MongoBackupOutput
56
-
57
- Use mongo_backup type in match. mongo_backup alwalys use capped collection.
58
-
59
- <match ...>
60
- type mongo_backup
61
- capped_size 100m
62
-
63
- <store>
64
- type tcp
65
- host 192.168.0.13
66
- ...
67
- </store>
68
- </match>
69
-
70
- === MongoTagOutputCollection
55
+ === MongoOutputTagCollection
71
56
 
72
57
  Use mongo_tag_collection type in match.
73
58
 
@@ -85,6 +70,21 @@ If tag name is "foo.bar", auto create collection "foo.bar" and insert data.
85
70
  remove_prefix_collection forward.
86
71
  </match>
87
72
 
73
+ === MongoBackupOutput
74
+
75
+ Use mongo_backup type in match. mongo_backup alwalys use capped collection.
76
+
77
+ <match ...>
78
+ type mongo_backup
79
+ capped_size 100m
80
+
81
+ <store>
82
+ type tcp
83
+ host 192.168.0.13
84
+ ...
85
+ </store>
86
+ </match>
87
+
88
88
  === Tail capped collection
89
89
 
90
90
  Use mongo_tail type in source.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -3,8 +3,8 @@ $:.push File.expand_path('../lib', __FILE__)
3
3
 
4
4
  Gem::Specification.new do |gem|
5
5
  gem.name = "fluent-plugin-mongo"
6
- gem.description = "MongoDB output plugin for Fluent event collector"
7
- gem.homepage = "http://fluentd.org/"
6
+ gem.description = "MongoDB plugin for Fluent event collector"
7
+ gem.homepage = "https://github.com/fluent/fluent-plugin-mongo"
8
8
  gem.summary = gem.description
9
9
  gem.version = File.read("VERSION").strip
10
10
  gem.authors = ["Masahiro Nakagawa"]
@@ -26,7 +26,7 @@ class MongoTailInput < Input
26
26
  def configure(conf)
27
27
  super
28
28
 
29
- if !@tag && !@tag_key
29
+ if !@tag and !@tag_key
30
30
  raise ConfigError, "'tag' or 'tag_key' option is required on mongo_tail input"
31
31
  end
32
32
 
@@ -18,11 +18,11 @@ class MongoOutput < BufferedOutput
18
18
  attr_reader :argument
19
19
 
20
20
  def initialize
21
- @clients = {}
22
21
  super
23
22
  require 'mongo'
24
23
  require 'msgpack'
25
24
 
25
+ @clients = {}
26
26
  @argument = {:capped => false}
27
27
  end
28
28
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
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-11-25 00:00:00.000000000Z
12
+ date: 2011-11-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: fluentd
16
- requirement: &2152820220 !ruby/object:Gem::Requirement
16
+ requirement: &2153153060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.10.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2152820220
24
+ version_requirements: *2153153060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: mongo
27
- requirement: &2152819600 !ruby/object:Gem::Requirement
27
+ requirement: &2153152440 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.4.0
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2152819600
35
+ version_requirements: *2153152440
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &2152819040 !ruby/object:Gem::Requirement
38
+ requirement: &2153151800 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.2
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2152819040
46
+ version_requirements: *2153151800
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: simplecov
49
- requirement: &2152818480 !ruby/object:Gem::Requirement
49
+ requirement: &2153146760 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 0.5.4
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2152818480
57
+ version_requirements: *2153146760
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rr
60
- requirement: &2152817940 !ruby/object:Gem::Requirement
60
+ requirement: &2153146020 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,8 +65,8 @@ dependencies:
65
65
  version: 1.0.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *2152817940
69
- description: MongoDB output plugin for Fluent event collector
68
+ version_requirements: *2153146020
69
+ description: MongoDB plugin for Fluent event collector
70
70
  email: repeatedly@gmail.com
71
71
  executables:
72
72
  - mongo-tail
@@ -91,7 +91,7 @@ files:
91
91
  - test/plugin/out_mongo.rb
92
92
  - test/plugin/out_mongo_tag_collection.rb
93
93
  - test/test_helper.rb
94
- homepage: http://fluentd.org/
94
+ homepage: https://github.com/fluent/fluent-plugin-mongo
95
95
  licenses: []
96
96
  post_install_message:
97
97
  rdoc_options: []
@@ -105,7 +105,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
105
105
  version: '0'
106
106
  segments:
107
107
  - 0
108
- hash: -3018735046089263817
108
+ hash: 3878005871405973235
109
109
  required_rubygems_version: !ruby/object:Gem::Requirement
110
110
  none: false
111
111
  requirements:
@@ -114,13 +114,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  version: '0'
115
115
  segments:
116
116
  - 0
117
- hash: -3018735046089263817
117
+ hash: 3878005871405973235
118
118
  requirements: []
119
119
  rubyforge_project:
120
120
  rubygems_version: 1.8.10
121
121
  signing_key:
122
122
  specification_version: 3
123
- summary: MongoDB output plugin for Fluent event collector
123
+ summary: MongoDB plugin for Fluent event collector
124
124
  test_files:
125
125
  - test/plugin/in_mongo_tail.rb
126
126
  - test/plugin/out_mongo.rb