fluent-plugin-mqtt-io 0.3.4 → 0.3.5

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: 37e8d6d8654a36f64c79820fbad23be5ae0ddebb
4
- data.tar.gz: e9948422c7a870dcc6fae0d823ffb11c7c57015e
3
+ metadata.gz: d276b49bf5d719468bf9290820334ee0069c9cd1
4
+ data.tar.gz: 3256a5038f1673bd6abbc50fde3c422de8f0705d
5
5
  SHA512:
6
- metadata.gz: 374d8bdcd8ac17ef363f68808211948071d8b8eaedb9e0c0d93ad878a44d358793b9ae95512bcf1ed64bf1acb421fb70740428c39ca66127383b9aad09a2bb45
7
- data.tar.gz: 2b0d5bddcf1184ffeeb1f630cd0c1caf5688d37b17187dd320d9104d03aa2b998b047dc5c1a1e45378d334120f327ea323e15a515c55536b5540a4e4c9bfa42d
6
+ metadata.gz: ae2fd591fb25d976fea2f83d46c08ff97ec96469aa4af041cc71c87a7f0852ec460e6c87b23c1e047c50c8c81305c9159498914f14d5117979c7c7d309c4b971
7
+ data.tar.gz: d1def163b352d5a05f0e34bbed980093c32c370e9d51c3494d4578e7050c69cd36c763bc2e2c2bab41309f6309e165fbdaf13596b7cb8572b2698dcc7ce5ecdc
data/README.md CHANGED
@@ -51,7 +51,9 @@ For fluent-plugin-mqtt-io ~> v0.3.0
51
51
  @type mqtt
52
52
  host 127.0.0.1
53
53
  port 1883
54
- format json
54
+ <parse>
55
+ @type json
56
+ </parse>
55
57
  </source>
56
58
 
57
59
  ```
@@ -65,8 +67,8 @@ The default MQTT topic is "#". Configurable options are the following:
65
67
  - In order to use xml format, you need to install [fluent-plugin-xml-parser](https://github.com/toyokazu/fluent-plugin-xml-parser).
66
68
  - Default time_key field for json format is 'time'
67
69
  - **topic**: Topic name to be subscribed
68
- - **bulk_trans**: Enable bulk transfer to support buffered output (mqtt_buf, Fluent::MqttBufferedOutput, defaut: true)
69
- - **bulk_trans_sep**: A message separator for bulk transfer. The default separator is "\t".
70
+ - **bulk_trans**: Enable bulk transfer to support buffered output (mqtt_buf, Fluent::MqttBufferedOutput, defaut: true) only for fluent-plugin-mqtt-io <= 0.2.3
71
+ - **bulk_trans_sep**: A message separator for bulk transfer. The default separator is "\t". only for fluent-plugin-mqtt-io <= 0.2.3
70
72
  - **username**: User name for authentication
71
73
  - **password**: Password for authentication
72
74
  - **keep_alive**: An interval of sending keep alive packet (default 15 sec)
@@ -78,6 +80,7 @@ The default MQTT topic is "#". Configurable options are the following:
78
80
  - **recv_time_key**: An attribute of recv_time
79
81
  - **initial_interval**: An initial value of retry interval (s) (default 1)
80
82
  - **retry_inc_ratio**: An increase ratio of retry interval per connection failure (default 2 (double)). It may be better to set the value to 1 in a mobile environment for eager reconnection.
83
+ - **max_retry_interval**: Maximum value of retry interval (default 300) only for fluent-plugin-mqtt-io ~> 0.3.0
81
84
 
82
85
  Input Plugin supports @label directive.
83
86
 
@@ -105,6 +108,10 @@ For fluent-plugin-mqtt-io ~> v0.3.0
105
108
  @type mqtt
106
109
  host 127.0.0.1
107
110
  port 1883
111
+ <format>
112
+ @type json
113
+ add_newline false
114
+ </format>
108
115
  </match>
109
116
 
110
117
  ```
@@ -145,6 +152,10 @@ For fluent-plugin-mqtt-io ~> v0.3.0
145
152
  @type mqtt
146
153
  host 127.0.0.1
147
154
  port 1883
155
+ <format>
156
+ @type json
157
+ add_newline false
158
+ </format>
148
159
  topic_rewrite_pattern '^([\w\/]+)$'
149
160
  topic_rewrite_replacement '\1/rewritten'
150
161
  </match>
@@ -176,6 +187,9 @@ For fluent-plugin-mqtt-io ~> v0.3.0
176
187
  @type mqtt
177
188
  host 127.0.0.1
178
189
  port 1883
190
+ <format>
191
+ @type json
192
+ </format>
179
193
  topic_rewrite_pattern '^([\w\/]+)$'
180
194
  topic_rewrite_replacement '\1/rewritten'
181
195
  # You can specify Buffer Plugin options
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "fluent-plugin-mqtt-io"
7
- spec.version = "0.3.4"
7
+ spec.version = "0.3.5"
8
8
  spec.authors = ["Toyokazu Akiyama"]
9
9
  spec.email = ["toyokazu@gmail.com"]
10
10
 
@@ -108,6 +108,7 @@ module Fluent::Plugin
108
108
  end
109
109
 
110
110
  def format(tag, time, record)
111
+ record = inject_values_to_record(tag, time, record)
111
112
  [tag, time, record].to_msgpack
112
113
  end
113
114
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-mqtt-io
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toyokazu Akiyama
8
8
  autorequire:
9
9
  bindir: []
10
10
  cert_chain: []
11
- date: 2017-08-24 00:00:00.000000000 Z
11
+ date: 2017-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd