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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5c8b1bbfea21d0cfb5e2dead45ffcdec6ceb2ef4
4
- data.tar.gz: '089fe10867da708cd1f9f5e21bb6d566412b4e99'
3
+ metadata.gz: d59048368c8845d3adbbc57795b327f23c0d68be
4
+ data.tar.gz: f7273d9543538b719f3e53c1ed2cd3c4594f279b
5
5
  SHA512:
6
- metadata.gz: 0c5ed03576b7bdea6ddbae2fc08af3f0d3a95e07415e5401fdf106005871967fa99d6757734f9e7a689585156b76b19c9667047386bea76460a6b0d176f74bc8
7
- data.tar.gz: '009e6e30e4e613aa3967fadee16104d0d31f9f63491a9299ea2535acc157845bf59bd431f01316241835b5305bdd38a9a635c69ee297be9f18f618d0b8663c77'
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
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.25.0"
4
+ VERSION = "0.26.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.25.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-14 00:00:00.000000000 Z
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: