fluent-plugin-mongo 0.7.14 → 0.7.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 22690c2544f0e98342bf5eb9cd3920af87e91c87
4
- data.tar.gz: 19c10a52cbd9666c39fe3aa493fb6517a60afb04
3
+ metadata.gz: 16d0fc6f16dd1080f6c9e3ea1fa3ab9809143991
4
+ data.tar.gz: d2a17a8ec6510610ce7f99c1cf38156d94ff0af0
5
5
  SHA512:
6
- metadata.gz: e0c0585287f0f2e971ab3ef1b0e8992adf2c71e00b3b33fa76d4d108cab4b26ba259393985b08158cf4455358db53482080620735af192c4a8990b37b0c6000e
7
- data.tar.gz: 7a5d22c7aeb8eaad234b4ed3428a5a05258891010729b4ee8ee2e1f1bb6c9e8cfb11fd0bc6a24a266b05cee478cb2e6415066ba1ed9c9fbdd6713853ca542f1f
6
+ metadata.gz: 36f81d3894f86d0d8f156d4f74d6001cfc63b7746efdebe1a9183c2f71b349a36d4b5f95045f001f133ce67bdc59d318b4e9121490d734110f7f208672d32bef
7
+ data.tar.gz: 87cd009a5fa147f9b15a24278a2ca75fd00bab75f9a0fe78308131d8a623aa6bf0f049507e19cd8c960668797ef65e20f525c9bf64b0e070b7bc9c779f81511e
data/ChangeLog CHANGED
@@ -1,3 +1,8 @@
1
+ Release 0.7.15 - 2016/08/16
2
+
3
+ * in_mongo_tail: Add object_id_keys parameter to convert ObjectId object into string
4
+
5
+
1
6
  Release 0.7.14 - 2016/08/06
2
7
 
3
8
  * Fix unexpected value generation with replace_xxx parameters
@@ -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.14
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.14
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-05 00:00:00.000000000 Z
11
+ date: 2016-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd