fluent-plugin-nais 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fluent/plugin/nais/version.rb +1 -1
- metadata +1 -2
- data/lib/fluent/plugin/filter_nais_environment.rb +0 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e06342043ba2dabd9075c17f573cbc70e89ad023
|
4
|
+
data.tar.gz: 9f6a74e2532be490ce4d59f693b5b89333c61565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40d57b4f8cb6b395173b86fcfd33ba0449f15b56cce4fcbec86138d7cc6e92b6515726ff0762a2d98c574cd3d7571e52a86d9cc4b3f11c013656773f567f22c3
|
7
|
+
data.tar.gz: 0cb509e6164f9a07cc824b32618639989738968165d90b67347b2759c139caf77fdb7a681f5a40cfa58627fbe3160f1be952f016e457048a0d88abaaa05d87cd
|
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.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Terje Sannum
|
@@ -97,7 +97,6 @@ files:
|
|
97
97
|
- bin/console
|
98
98
|
- bin/setup
|
99
99
|
- fluent-plugin-nais.gemspec
|
100
|
-
- lib/fluent/plugin/filter_nais_environment.rb
|
101
100
|
- lib/fluent/plugin/filter_nais_exceptions.rb
|
102
101
|
- lib/fluent/plugin/filter_nais_flatten_record.rb
|
103
102
|
- lib/fluent/plugin/filter_nais_prefix_nonstandard.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
require "fluent/plugin/nais/version"
|
2
|
-
require 'fluent/plugin/filter'
|
3
|
-
require 'nais/log/parser'
|
4
|
-
|
5
|
-
module Fluent::Plugin
|
6
|
-
class NaisEnvironmentFilter < Filter
|
7
|
-
Fluent::Plugin.register_filter('nais_environment', self)
|
8
|
-
|
9
|
-
def configure(conf)
|
10
|
-
super
|
11
|
-
end
|
12
|
-
|
13
|
-
def filter(tag, time, record)
|
14
|
-
record["cluster"] = "#{ENV['CLUSTER_NAME']}"
|
15
|
-
record["envclass"] = "#{ENV['CLUSTER_ENVCLASS']}"
|
16
|
-
record
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|