fluent-plugin-mongo 0.7.14 → 0.7.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog +5 -0
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/fluent/plugin/in_mongo_tail.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 16d0fc6f16dd1080f6c9e3ea1fa3ab9809143991
|
4
|
+
data.tar.gz: d2a17a8ec6510610ce7f99c1cf38156d94ff0af0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 36f81d3894f86d0d8f156d4f74d6001cfc63b7746efdebe1a9183c2f71b349a36d4b5f95045f001f133ce67bdc59d318b4e9121490d734110f7f208672d32bef
|
7
|
+
data.tar.gz: 87cd009a5fa147f9b15a24278a2ca75fd00bab75f9a0fe78308131d8a623aa6bf0f049507e19cd8c960668797ef65e20f525c9bf64b0e070b7bc9c779f81511e
|
data/ChangeLog
CHANGED
data/README.rdoc
CHANGED
@@ -138,6 +138,9 @@ Use _mongo_tail_ type in source.
|
|
138
138
|
|
139
139
|
# Convert 'time'(BSON's time) to fluent time(Unix time).
|
140
140
|
time_key time
|
141
|
+
|
142
|
+
# Convert ObjectId to string
|
143
|
+
object_id_keys ["id_key"]
|
141
144
|
</source>
|
142
145
|
|
143
146
|
You can also use _url_ to specify the database to connect.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.
|
1
|
+
0.7.15
|
@@ -18,6 +18,7 @@ module Fluent
|
|
18
18
|
config_param :tag_key, :string, :default => nil
|
19
19
|
config_param :time_key, :string, :default => nil
|
20
20
|
config_param :time_format, :string, :default => nil
|
21
|
+
config_param :object_id_keys, :array, :default => nil
|
21
22
|
|
22
23
|
# To store last ObjectID
|
23
24
|
config_param :id_store_file, :string, :default => nil
|
@@ -155,6 +156,12 @@ module Fluent
|
|
155
156
|
else
|
156
157
|
@tag
|
157
158
|
end
|
159
|
+
if @object_id_keys
|
160
|
+
@object_id_keys.each { |id_key|
|
161
|
+
doc[id_key] = doc[id_key].to_s
|
162
|
+
}
|
163
|
+
end
|
164
|
+
|
158
165
|
if id = doc.delete('_id')
|
159
166
|
@last_id = id.to_s
|
160
167
|
doc['_id_str'] = @last_id
|
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: 0.7.
|
4
|
+
version: 0.7.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Masahiro Nakagawa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|