fluent-plugin-nais 0.20.0 → 0.21.0

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: ce64cd7d9ef75681c4a88fe93e7ee1a4dc70b8a7
4
- data.tar.gz: 4eca50f4aafee5fc912dde0695519881239741e0
3
+ metadata.gz: 440512cc17696984c1e1fee5ee592e094f97de85
4
+ data.tar.gz: 2c767c0447fb470b996ba2ef304b0687b0a736e2
5
5
  SHA512:
6
- metadata.gz: 6d7b44a3b8340426c0e82b31acc779619e640bfc55d5338c72fce4e8e158a6fedd806f570f67ae78e6800d3c9d16754084619a338561fad4f52e204ef38742ea
7
- data.tar.gz: 3d34ca163176c7cbf03cf43c2574f96ea53a3c31c5abf76a66bb00b2736c9d3e24b1aef08e886bef61a46f782db40feb14e91040fc10c0822f34ab5fc3bfb1ab
6
+ metadata.gz: fb6a8d1ee5aa7aaaad96757c83efae2893646541fe4a9a506e700fcc4860d465588eddc13689dd7de61317d6335190754a5b2bb2554ab160828eb7e9caead18d
7
+ data.tar.gz: 7d44389b479e33b2416cf6cbc2d96fb09566db398d5c266fb04169ab7c216df950f6e2bf15260896450db796475da6265aeb93f2a745977c941787462bb058be
@@ -0,0 +1,19 @@
1
+ require "fluent/plugin/nais/version"
2
+ require 'fluent/plugin/filter'
3
+ require 'nais/log/parser'
4
+
5
+ module Fluent::Plugin
6
+ class NaisMergeJsonFilter < Filter
7
+ Fluent::Plugin.register_filter('nais_merge_json', self)
8
+ config_param :field, :string
9
+
10
+ def configure(conf)
11
+ super
12
+ end
13
+
14
+ def filter(tag, time, record)
15
+ ::Nais::Log::Parser.merge_json_field(record, @field)
16
+ end
17
+
18
+ end
19
+ end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.20.0"
4
+ VERSION = "0.21.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-nais
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Terje Sannum
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-02-13 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -102,6 +102,7 @@ files:
102
102
  - lib/fluent/plugin/filter_nais_kubewatch.rb
103
103
  - lib/fluent/plugin/filter_nais_logformat.rb
104
104
  - lib/fluent/plugin/filter_nais_logtransform.rb
105
+ - lib/fluent/plugin/filter_nais_merge_json.rb
105
106
  - lib/fluent/plugin/filter_nais_prefix_fields.rb
106
107
  - lib/fluent/plugin/filter_nais_remap_elasticsearch.rb
107
108
  - lib/fluent/plugin/filter_nais_remap_java.rb