fluent-plugin-nais 0.8.0 → 0.9.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: 58474d2fb2550a09d15ab184d1f0f9ff6bb8a632
4
- data.tar.gz: 47764571495654e2dc2ec3fe5da323fbe212f160
3
+ metadata.gz: 52ee1dfd02d686dec82f927d90333c1a52cff76c
4
+ data.tar.gz: 5c160f964bf12372b7a80b48591e28771bf114ac
5
5
  SHA512:
6
- metadata.gz: 3c2fb5596f0e33ef7679a7e235f5eebd2045d02ba0f1f2eb3ec96850f467532b266ddc49886d8dd1fd5c9f0f70920f9392600ec103780e76239dd31a57fcd895
7
- data.tar.gz: c53694aa048ea1fa955e3ffb02ba9648dad4ff929c34309fbef135ff81c5cc8e1e8d5152b217ef7c18a5bdd4f4823ec2fba981de14922f489501e7e233508498
6
+ metadata.gz: 19f4110b62c360d3f1ccf608cca8620746920c70c94042d5ecaefc0f6a8b85cdd44428c7e27f74248f3c1905c6891104c452117d0bee12986621d57ad8e63eed
7
+ data.tar.gz: b6c72c7af749da8fb0ebc1a2165bee1c072c16ac421055b3f7d0066e67b49e991df8c3ca11cdd730007a6091814d4a34ccddbef1403a68a425716a067f6488ee
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ["lib"]
22
22
 
23
23
  spec.add_dependency 'fluentd', '~> 0.14'
24
- spec.add_dependency 'nais-log-parser', '>= 0.11.0'
24
+ spec.add_dependency 'nais-log-parser', '>= 0.12.0'
25
25
 
26
26
  spec.add_development_dependency "bundler", "~> 1.15"
27
27
  spec.add_development_dependency "rake", "~> 10.0"
@@ -4,14 +4,18 @@ require 'nais/log/parser'
4
4
 
5
5
  module Fluent::Plugin
6
6
  class NaisPrefixFilter < Filter
7
- Fluent::Plugin.register_filter('nais_prefix_nonstandard', self)
8
-
7
+ Fluent::Plugin.register_filter('nais_prefix_fields', self)
8
+ config_param :prefix, :string
9
+ config_param :regex, :string
10
+
11
+
9
12
  def configure(conf)
10
13
  super
14
+ @re = Regexp.new(@regex)
11
15
  end
12
16
 
13
17
  def filter(tag, time, record)
14
- ::Nais::Log::Parser.prefix_nonstandard_fields(record)
18
+ ::Nais::Log::Parser.prefix_fields(record, @prefix, @re)
15
19
  end
16
20
 
17
21
  end
@@ -1,7 +1,7 @@
1
1
  module Fluent
2
2
  module Plugin
3
3
  module Nais
4
- VERSION = "0.8.0"
4
+ VERSION = "0.9.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.8.0
4
+ version: 0.9.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: 2017-10-02 00:00:00.000000000 Z
11
+ date: 2017-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.11.0
33
+ version: 0.12.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 0.11.0
40
+ version: 0.12.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,7 +100,7 @@ files:
100
100
  - lib/fluent/plugin/filter_nais_exceptions.rb
101
101
  - lib/fluent/plugin/filter_nais_flatten_record.rb
102
102
  - lib/fluent/plugin/filter_nais_logformat.rb
103
- - lib/fluent/plugin/filter_nais_prefix_nonstandard.rb
103
+ - lib/fluent/plugin/filter_nais_prefix_fields.rb
104
104
  - lib/fluent/plugin/filter_nais_remap_elasticsearch.rb
105
105
  - lib/fluent/plugin/filter_nais_remap_java.rb
106
106
  - lib/fluent/plugin/filter_nais_remap_kubernetes.rb