fluent-plugin-mongo 1.0.0.rc2 → 1.0.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0374d7478e773ffdeba70eba9f7ba7df050ee22a
4
- data.tar.gz: a6c4e10042582db77666352673e1a7ee7a812f74
3
+ metadata.gz: 7b2758a03cd5e9730ba128b2b6ab0aed4d6f21bf
4
+ data.tar.gz: c8e1e867a8a0e4685a1e69163acc83e5d2d36dd4
5
5
  SHA512:
6
- metadata.gz: 8d0877102caad677c07d60a9df53585c8ce1693f6de16fc96764305fa47caad39bdfbefd6d56d40a183bf76bebcd9e771595347870f1de1e8dcda1e138be02fc
7
- data.tar.gz: 29061649d0edf590b18ad8192141e14980517dc07a80fa5544504a1bff02d64a33a9feeb435791797142f79d47fe9f28befa3dd2f06766bf8e70aaa93d228471
6
+ metadata.gz: 1de5b0982cb2a8988fd0f863e482a1b5b07804896f24c3e4df9857ee013fea9ee30daaa7d2af408a838639aa96ef93892be11482f50aadbc81b2a588b0fde4c1
7
+ data.tar.gz: 754da99a8c970e838c22eb0d903c0d14f9f9d40ddb77bc93681b857e3ef61f5e333674707a96873c0ba9593ea21de031d2ec96ffb0b56ccbb1cb46b6c2fba4aa
data/README.rdoc CHANGED
@@ -30,25 +30,34 @@ Store Fluentd event to MongoDB database.
30
30
  Use _mongo_ type in match.
31
31
 
32
32
  <match mongo.**>
33
- type mongo
34
- database fluent
35
- collection test
33
+ @type mongo
36
34
 
37
- # Following attibutes are optional
35
+ # You can choose two approaches, connection_string or each parameter
36
+ # 1. connection_string for MongoDB URI
37
+ connection_string mongodb://fluenter:10000/fluent
38
+
39
+ # 2. specify each parameter
40
+ database fluent
38
41
  host fluenter
39
42
  port 10000
40
43
 
41
- # Set 'capped' if you want to use capped collection
42
- capped
43
- capped_size 100m
44
+ # collection name to insert
45
+ collection test
44
46
 
45
- # Set 'user' and 'password' for authentication
47
+ # Set 'user' and 'password' for authentication.
48
+ # These options are not used when use connection_string parameter.
46
49
  user handa
47
50
  password shinobu
48
51
 
52
+ # Set 'capped' if you want to use capped collection
53
+ capped
54
+ capped_size 100m
55
+
49
56
  # Other buffer configurations here
50
57
  </match>
51
58
 
59
+ For _connection_string_ parameter, see https://docs.mongodb.com/manual/reference/connection-string/ article for more detail.
60
+
52
61
  === mongo(tag mapped mode)
53
62
 
54
63
  Tag mapped to MongoDB collection automatically.
@@ -60,7 +69,7 @@ Use _tag_mapped_ parameter in match of _mongo_ type.
60
69
  If tag name is "foo.bar", auto create collection "foo.bar" and insert data.
61
70
 
62
71
  <match forward.*>
63
- type mongo
72
+ @type mongo
64
73
  database fluent
65
74
 
66
75
  # Set 'tag_mapped' if you want to use tag mapped mode.
@@ -85,12 +94,11 @@ Replica Set version of mongo.
85
94
  ===== v0.8 or later
86
95
 
87
96
  <match mongo.**>
88
- type mongo_replset
97
+ @type mongo_replset
89
98
  database fluent
90
99
  collection logs
91
100
 
92
- host localhost
93
- port 27017
101
+ nodes localhost:27017,localhost:27018
94
102
 
95
103
  # The replica set name
96
104
  replica_set myapp
@@ -110,7 +118,7 @@ Replica Set version of mongo.
110
118
  Use _mongo_replset_ type in match.
111
119
 
112
120
  <match mongo.**>
113
- type mongo_replset
121
+ @type mongo_replset
114
122
  database fluent
115
123
  collection logs
116
124
 
@@ -136,7 +144,7 @@ Tail capped collection to input data.
136
144
  Use _mongo_tail_ type in source.
137
145
 
138
146
  <source>
139
- type mongo_tail
147
+ @type mongo_tail
140
148
  database fluent
141
149
  collection capped_log
142
150
 
@@ -155,7 +163,7 @@ Use _mongo_tail_ type in source.
155
163
  You can also use _url_ to specify the database to connect.
156
164
 
157
165
  <source>
158
- type mongo_tail
166
+ @type mongo_tail
159
167
  url mongodb://user:password@192.168.0.13:10249,192.168.0.14:10249/database
160
168
  collection capped_log
161
169
  ...
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0.rc2
1
+ 1.0.0.rc3
@@ -93,6 +93,17 @@ module Fluent::Plugin
93
93
  conf['buffer_chunk_limit'] = '8m'
94
94
  end
95
95
  end
96
+ # 'config_set_default :include_time_key, true' is ignored in compat_parameters_convert so need manual setting
97
+ if conf.elements('inject').empty?
98
+ if conf.has_key?('include_time_key')
99
+ if Fluent::Config.bool_value(conf['include_time_key']) && !conf.has_key?('time_key')
100
+ conf['time_key'] = 'time'
101
+ end
102
+ else
103
+ conf['time_key'] = 'time'
104
+ end
105
+ end
106
+
96
107
  compat_parameters_convert(conf, :inject)
97
108
 
98
109
  super
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mongo
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masahiro Nakagawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-03-22 00:00:00.000000000 Z
11
+ date: 2017-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: 1.3.1
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.5.2
163
+ rubygems_version: 2.6.13
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: MongoDB plugin for Fluentd