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 +4 -4
- data/lib/fluent/plugin/filter_nais_merge_json.rb +19 -0
- data/lib/fluent/plugin/nais/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 440512cc17696984c1e1fee5ee592e094f97de85
|
4
|
+
data.tar.gz: 2c767c0447fb470b996ba2ef304b0687b0a736e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
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
|