fluent-plugin-nais 0.25.0 → 0.26.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_remap_traefik.rb +17 -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: d59048368c8845d3adbbc57795b327f23c0d68be
|
4
|
+
data.tar.gz: f7273d9543538b719f3e53c1ed2cd3c4594f279b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8348f12309dfbc0962de88b3edde90879428534eecd310b05bc7f9941ba9d03136537515fe0eceba3c9335837ef05b7028c2a9b69d28886deeca984277e9a7e4
|
7
|
+
data.tar.gz: 4f53672a3d6d62ab23eb316f6d7c7963bbfca2989f8ede9a17efbee25bc2698d5a8c4c856f0061ba4491db53106174e0caf6905b4d8adf33a253052e8f377222
|
@@ -0,0 +1,17 @@
|
|
1
|
+
require "fluent/plugin/nais/version"
|
2
|
+
require 'fluent/plugin/filter'
|
3
|
+
require 'nais/log/parser'
|
4
|
+
|
5
|
+
module Fluent
|
6
|
+
module Plugin
|
7
|
+
class NaisRemapTraefikFilter < Fluent::Plugin::Filter
|
8
|
+
Fluent::Plugin.register_filter('nais_remap_traefik', self)
|
9
|
+
|
10
|
+
def filter(tag, time, record)
|
11
|
+
record['message'] = record.delete('RequestLine') if record.has_key?('RequestLine')
|
12
|
+
record.delete('msg') if record['msg'] == ""
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
end
|
17
|
+
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.26.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-06-
|
11
|
+
date: 2018-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|
@@ -108,6 +108,7 @@ files:
|
|
108
108
|
- lib/fluent/plugin/filter_nais_remap_elasticsearch.rb
|
109
109
|
- lib/fluent/plugin/filter_nais_remap_java.rb
|
110
110
|
- lib/fluent/plugin/filter_nais_remap_kubernetes.rb
|
111
|
+
- lib/fluent/plugin/filter_nais_remap_traefik.rb
|
111
112
|
- lib/fluent/plugin/nais/version.rb
|
112
113
|
homepage: https://github.com/nais/fluent-plugin-nais
|
113
114
|
licenses:
|