fluent-plugin-nais 0.2.0 → 0.3.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: 4d33cd63e5d515fdf41ca73a24535f64345a01f5
|
4
|
+
data.tar.gz: 1423da3bba630ad9a393e1e45a70ee1c2e4d3a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a509aaeee9e556b7996ac940dbd72517b82205c9b80c21f8b1fb58c4f64cfa86361e2a2e472e38a25a2223ae880a47ddf13a0afd5ea390cf2cec95af93481bd4
|
7
|
+
data.tar.gz: e53fa6e55da50849b41ba1280c83a175d6c445c6bd9d223b56c986f48b96d6b2eb9d1b17314299687c47e1639845069c8a29778fe2b85130a609260a144e4f09
|
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.3'
|
25
25
|
|
26
26
|
spec.add_development_dependency "bundler", "~> 1.15"
|
27
27
|
spec.add_development_dependency "rake", "~> 10.0"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require "fluent/plugin/nais/version"
|
2
|
+
require 'fluent/plugin/filter'
|
3
|
+
require 'nais/log/parser'
|
4
|
+
|
5
|
+
module Fluent::Plugin
|
6
|
+
class NaisRemapElasticsearchFilter < Filter
|
7
|
+
Fluent::Plugin.register_filter('nais_remap_elasticsearch', self)
|
8
|
+
|
9
|
+
def configure(conf)
|
10
|
+
super
|
11
|
+
end
|
12
|
+
|
13
|
+
def filter(tag, time, record)
|
14
|
+
::Nais::Log::Parser.remap_elasticsearch_fields(record)
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
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.
|
4
|
+
version: 0.3.0
|
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.
|
33
|
+
version: '0.3'
|
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.3'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,6 +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_prefix_nonstandard.rb
|
103
|
+
- lib/fluent/plugin/filter_nais_remap_elasticsearch.rb
|
103
104
|
- lib/fluent/plugin/filter_nais_remap_java.rb
|
104
105
|
- lib/fluent/plugin/filter_nais_remap_kubernetes.rb
|
105
106
|
- lib/fluent/plugin/nais/version.rb
|