fluent-plugin-dynamic-logzio 0.0.5 → 0.0.6

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
  SHA256:
3
- metadata.gz: 80935f8ae15c9e465bca4f816c203a01a1db49871d70d52ba640b6ef7575a8e2
4
- data.tar.gz: 6ac015fdc28a8ab01ee8042f5dcaf46b49d21f80b899df7bc3a3f895ccef1b4a
3
+ metadata.gz: 1926fb8fc43be20950dfc065556cb9c61f71d46168e4669da0eccb9f2b3c8281
4
+ data.tar.gz: e7c772cb336885c2c3050fbd4e1b8370e5a71790f773a6afa4fdddd68d50543c
5
5
  SHA512:
6
- metadata.gz: 81af9d82a879a1571b2fecdad1bf6e42d0a3bdf79fd07e033f32a03f8b810e44efbf0f78ce04890529306846f6b228070d3d163d09e7d10540cad8125c526567
7
- data.tar.gz: f6a361824f6bb899a9cb1e4b9dc157eb31481d2fc971d4207d3ffae15fc1d7f074cd83ae01028479ceb3d064489e030a716c5cee847238149561aa4e6b91097c
6
+ metadata.gz: a4ebde772844e3d84321a09334fb7379857b73ef898353837f2c9e4df50a92345f4917ff4c8f2aa035b8b2ad059cd7a40a3c88585197260571453d6ddc7d3ae3
7
+ data.tar.gz: 168eaff851c146af96a2a4d1916ec48b1376640f2a82c72b89e743e3de890c55ef86155e715853e2494ad0b0fa0842b31d8672e3ea924d0583417f97dc3601ea
@@ -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-dynamic-logzio'
7
- s.version = '0.0.5'
7
+ s.version = '0.0.6'
8
8
  s.authors = ['Yury Kotov', 'Roi Rav-Hon', 'Arcadiy Ivanov', 'Stewart Powell']
9
9
  s.email = ['bairkan@gmail.com', 'roi@logz.io', 'arcadiy@ivanov.biz', 'stewart.powell@gmail.com']
10
10
  s.homepage = 'https://github.com/jwplayer'
@@ -11,6 +11,7 @@ module Fluent::Plugin
11
11
  config_param :logzio_url, :string, default: 'https://listener.logz.io:8071?'
12
12
  config_param :token, :string, default: nil
13
13
  config_param :log_type, :string, default: 'my_type'
14
+ config_param :log_type_key, :string, :default => nil
14
15
 
15
16
  config_param :output_include_time, :bool, default: true
16
17
  config_param :output_include_tags, :bool, default: true
@@ -44,6 +45,12 @@ module Fluent::Plugin
44
45
  super
45
46
  require 'net/http/persistent'
46
47
 
48
+ if @log_type_key
49
+ log_type = record[@log_type_key] || @log_type
50
+ else
51
+ index_prefix = @log_type
52
+ end
53
+
47
54
  @logzio_endpoint = "#{@logzio_url}?token=#{@token}&type=#{@log_type}"
48
55
 
49
56
  @uri = URI @logzio_endpoint
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-dynamic-logzio
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yury Kotov