fluent-plugin-logzio 0.0.7 → 0.0.8

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: 6110b8315f040a911440239dc3d4cd6062921ecc
4
- data.tar.gz: d1800feea93fdeff384acf6accb843779372a79b
3
+ metadata.gz: dfd61339c53db2cd8ad1d05d0b289b6462066189
4
+ data.tar.gz: 818edc15d7341fc08518fc48ad779c9b1cf985b0
5
5
  SHA512:
6
- metadata.gz: d217bb944d74e355cddf48e579d13a6a48566d91229edca68d76965eb98119e20c1883235daf41d538b00fdd7f3482819bf98cb339f00917627973689780007d
7
- data.tar.gz: 5f20d50d2d47ab31332200c859066ac8f59cf52565570c2127cc3c91c431e485fa740daa4f053b93212c072338632e12ba5bcbc416503d13237279e65d600914
6
+ metadata.gz: 3836e94262b2f6f65e8ee0327caac16c3740fa4cacca846c5612edbb29a41912c7c041d41418729f926879d51feedbc0aeda431976dd866ca5aff627884b4ccc
7
+ data.tar.gz: 2757049cf63af0b3592b86a2f85b59b66a464664865ac7ad0a06b4de4a941e60bd91e698b5a541bcdcaf9da64c2402164d28b5a375d26cefbfee5583e04834e1
data/README.md CHANGED
@@ -16,6 +16,7 @@ With fluent-plugin-logzio you will be able to use [Logz.io](http://logz.io) as o
16
16
  endpoint_url https://listener.logz.io:8071?token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&type=my_type
17
17
  output_include_time true
18
18
  output_include_tags true
19
+ output_tags_fieldname @log_name
19
20
  buffer_type file
20
21
  buffer_path /path/to/buffer/file
21
22
  flush_interval 10s
@@ -34,5 +35,6 @@ If you absolutly must, use the non-buffered plugin (we really recommend using th
34
35
  ## Parameters
35
36
  * **endpoint_url** the url to Logz.io input where `xxx-xxxx...` is your Logz.io access token, and `my_type` is the type of your logs in logz.io
36
37
  * **output_include_time** should the appender add a timestamp to your logs on their process time. (recommended)
37
- * **output_include_tags** should the appender add the fluentd tag to the document, called "fluentd_tag"
38
+ * **output_include_tags** should the appender add the fluentd tag to the document, called "fluentd_tag" (which can be renamed, see next point)
39
+ * **output_tags_fieldname** set the tag's fieldname, defaults to "fluentd_tag"
38
40
  * **http_idle_timeout** timeout in seconds that the http persistent connection will stay open without traffic
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = 'fluent-plugin-logzio'
7
- s.version = '0.0.7'
7
+ s.version = '0.0.8'
8
8
  s.authors = ['Yury Kotov', 'Roi Rav-Hon']
9
9
  s.email = ['bairkan@gmail.com', 'roi@logz.io']
10
10
  s.homepage = 'https://github.com/logzio/fluent-plugin-logzio'
@@ -6,6 +6,7 @@ module Fluent
6
6
  config_param :output_include_tags, :bool, default: true
7
7
  config_param :retry_count, :integer, default: 3 # How many times to resend failed bulks. Undocumented because not suppose to be changed
8
8
  config_param :http_idle_timeout, :integer, default: 5
9
+ config_param :output_tags_fieldname, :string, default: 'fluentd_tags'
9
10
 
10
11
  unless method_defined?(:log)
11
12
  define_method('log') { $log }
@@ -40,7 +41,7 @@ module Fluent
40
41
 
41
42
  chunk.msgpack_each {|tag,time,record|
42
43
  record['@timestamp'] ||= Time.at(time).iso8601(3) if @output_include_time
43
- record['fluentd_tags'] ||= tag.to_s if @output_include_tags
44
+ record[@output_tags_fieldname] ||= tag.to_s if @output_include_tags
44
45
  records.push(Yajl.dump(record))
45
46
  }
46
47
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-logzio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Kotov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-21 00:00:00.000000000 Z
12
+ date: 2017-03-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: net-http-persistent