fluent-plugin-nais 0.10.1 → 0.10.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e622320fba1cc8eeb0e5826f1ee82667db83411d
|
4
|
+
data.tar.gz: 44a07f8b9b483b65daca37e92b1af59a377b74b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68ac8dafecedd3ccd145f0e87af4b55a1c603e013a78fc99857ceb77d7c9482ce5d065e47812279e645355d0dfd8f9a6eb9ef509c57021f3844660c46ff99a49
|
7
|
+
data.tar.gz: 600e22365e66ec6422d9de27439d82e2a2ae6023f0a3aeff2a85d55cecc684ffd715f5bf0c64164c4e40eae5a2695eb0d6fe49f46e0c389feb2aa06749be04ee
|
data/fluent-plugin-nais.gemspec
CHANGED
@@ -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.13.
|
24
|
+
spec.add_dependency 'nais-log-parser', '>= 0.13.1'
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.15"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -11,21 +11,21 @@ module Fluent::Plugin
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def filter(tag, time, record)
|
14
|
-
r = nil
|
15
14
|
if record['kubernetes'].is_a?(Hash) && record['kubernetes']['annotations'].is_a?(Hash)
|
16
15
|
transformers = record['kubernetes']['annotations']['nais_io/logtransform']
|
17
16
|
unless transformers.nil?
|
18
17
|
transformer.split(/ *, */).each { |t|
|
19
18
|
if t == 'dns_loglevel'
|
20
|
-
|
21
|
-
record['level'] =
|
19
|
+
level = ::Nais::Log::Parser.loglevel_from_dns_response(record['response_code'])
|
20
|
+
record['level'] = level unless level.nil?
|
22
21
|
elsif t == 'http_loglevel'
|
23
|
-
|
24
|
-
record['level'] =
|
22
|
+
level = ::Nais::Log::Parser.loglevel_from_http_response(record['response_code'])
|
23
|
+
record['level'] = level unless level.nil?
|
25
24
|
end
|
26
25
|
}
|
27
26
|
end
|
28
27
|
end
|
28
|
+
record
|
29
29
|
end
|
30
30
|
|
31
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-nais
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terje Sannum
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.13.
|
33
|
+
version: 0.13.1
|
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.13.
|
40
|
+
version: 0.13.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|