fluent-plugin-nais 0.10.5 → 0.11.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b9e1201483827187da8dd5bea131086a4a0fd75
|
4
|
+
data.tar.gz: c484d519e98a1bdf9db7d11e8896116dd0284c3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62e41b5fac586ad0ff813150dc4aa0783c76198d1462f763786c62f85c3b0b63fd5f563556301fef1d10b4ce7ad0114ec56c49e398cf0b5346a8714c3a72fa63
|
7
|
+
data.tar.gz: b4960488c01c52145aa63cd7e715158200b4eea6f3c1d3589b2871dc13f91fe118894546b16ff6fd6dda3d3cd0ca4a631ff4fad544d0197b7366160757a2e1c7
|
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.
|
24
|
+
spec.add_dependency 'nais-log-parser', '>= 0.14.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.15"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -39,17 +39,10 @@ module Fluent::Plugin
|
|
39
39
|
elsif fmt == 'influxdb'
|
40
40
|
r = ::Nais::Log::Parser.parse_influxdb(record['log'])
|
41
41
|
unless r.nil?
|
42
|
+
r['log'] = r.delete('message')
|
42
43
|
if r['component'] == 'httpd'
|
43
|
-
r['log'] = r.delete('request') unless r['request'].nil?
|
44
|
-
r['request'] = r.delete('request_id') unless r['request_id'].nil?
|
45
44
|
level = ::Nais::Log::Parser.loglevel_from_http_response(r['response_code'])
|
46
45
|
r['level'] = level unless level.nil?
|
47
|
-
else
|
48
|
-
if r.has_key?('timestamp')
|
49
|
-
r['log'] = record['log'].sub(/^\S+ \S+ \S+ /, '')
|
50
|
-
else
|
51
|
-
r['log'] = record['log'].sub(/^\S+ /, '')
|
52
|
-
end
|
53
46
|
end
|
54
47
|
end
|
55
48
|
elsif fmt == 'log15'
|
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.11.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-
|
11
|
+
date: 2017-10-06 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.
|
33
|
+
version: 0.14.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.
|
40
|
+
version: 0.14.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|