fluent-plugin-documentdb 0.2.0 → 0.2.1

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: edf79934c835555db5a5718d55a4246307dd8f94
4
- data.tar.gz: 323dc8a0a1b394e509fef89d7caba6895e4087f9
3
+ metadata.gz: 97025a6f27e146af8c1b936eaa6ca59fff93b54e
4
+ data.tar.gz: c2395499cc0f3b150fd3121491a3dd54aa531d2d
5
5
  SHA512:
6
- metadata.gz: ffc08ce92a70407e91124eb2a8e5178c257e5de657be392e734e7bb0e51e6caa7b0f95f3b0fb81da80284cc34beb316079b44a09eefe5db95f67588f96dd5db3
7
- data.tar.gz: aacbf0fad60603916af0e56da8e0c7e41f6965a45dad7e31b99c851ec162ce8bd5c4fc95733c2dfcd4196ca4a1635d7127fba36ec50037a2557f55e3149be569
6
+ metadata.gz: 2f96f26a898d09456c825c7af941c3ae43df1d6d10ba751af2529fc84f4a2b0ae026b42ae228c951e4d5c8ab280511894ed2f1da68d00df3df0472a329113e6a
7
+ data.tar.gz: 1514d17a07fe7d1fd80903b51bec094ad1459e56de7f50c0a82999173f2b0ce66a2d60d4415069249ab4c12289c304f667c630150e13b067c7c00affdcf63497
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Release 0.2.1 - 2016/08/28
2
+
3
+ * Fixup bug on Single-Collection mode
4
+
1
5
  Release 0.2.0 - 2016/08/17
2
6
 
3
7
  * Support Partitioned Collection mode
data/README.md CHANGED
@@ -116,7 +116,6 @@ fluent-plugin-documentdb will add **id** attribute which is UUID format and any
116
116
  partitioned_collection true
117
117
  partition_key host
118
118
  offer_throughput 10100
119
- auto_create_database
120
119
  localtime true
121
120
  time_format %Y%m%d-%H:%M:%S
122
121
  add_time_field true
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.0
1
+ 0.2.1
@@ -0,0 +1,24 @@
1
+ <source>
2
+ @type tail # input plugin
3
+ path /var/log/apache2/access.log # monitoring file
4
+ pos_file /tmp/fluentd_pos_file # position file
5
+ format apache # format
6
+ tag documentdb.access # tag
7
+ </source>
8
+
9
+ <match documentdb.*>
10
+ @type documentdb
11
+ docdb_endpoint https://yoichikademo1.documents.azure.com:443/
12
+ docdb_account_key EMwUa3EzsAtJ1qYfzwo9nQ3KudofsXNm3xLh1SLffKkUHMFl80OZRZIVu4lxdKRKxkgVAj0c2mv9BZSyMN7tdg==
13
+ docdb_database mydb
14
+ docdb_collection mycollection
15
+ auto_create_database true
16
+ auto_create_collection true
17
+ localtime true
18
+ time_format %Y%m%d-%H:%M:%S
19
+ add_time_field true
20
+ time_field_name time
21
+ add_tag_field true
22
+ tag_field_name tag
23
+ </match>
24
+
@@ -28,7 +28,7 @@ module Fluent
28
28
  config_param :partition_key, :string, :default => nil
29
29
  config_param :offer_throughput, :integer, :default => AzureDocumentDB::PARTITIONED_COLL_MIN_THROUGHPUT
30
30
  config_param :time_format, :string, :default => nil
31
- config_param :localtime, :bool, default: false
31
+ config_param :localtime, :bool, :default => false
32
32
  config_param :add_time_field, :bool, :default => true
33
33
  config_param :time_field_name, :string, :default => 'time'
34
34
  config_param :add_tag_field, :bool, :default => false
@@ -122,7 +122,7 @@ module Fluent
122
122
  if @partitioned_collection
123
123
  @client.create_document(@coll_resource, unique_doc_identifier, record, @partition_key)
124
124
  else
125
- @client.create_document(@coll_resource, unique_doc_identifier, record, @partition_key)
125
+ @client.create_document(@coll_resource, unique_doc_identifier, record)
126
126
  end
127
127
  rescue RestClient::ExceptionWithResponse => rcex
128
128
  exdict = JSON.parse(rcex.response)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-documentdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yoichi Kawasaki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-18 00:00:00.000000000 Z
11
+ date: 2016-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -100,7 +100,8 @@ files:
100
100
  - README.md
101
101
  - Rakefile
102
102
  - VERSION
103
- - conf/fluent-sample.conf
103
+ - conf/fluent-sample-partioned-collection.conf
104
+ - conf/fluent-sample-single-collection.conf
104
105
  - fluent-plugin-documentdb.gemspec
105
106
  - img/fluentd-azure-documentdb-collection.png
106
107
  - lib/fluent/plugin/documentdb/client.rb