fluent-plugin-kubernetes_metadata_filter 2.1.4 → 2.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 375c81d10e8289931076d5897cc16a5469ab46c4
|
|
4
|
+
data.tar.gz: 820c9cd521aeb1bc0732fd26b1ad0bf1a2f596bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 405b343bfd0db4636663b87a46841786f2c369f9f3d2847e722b867a36b6698c5662bb2815b732547e09b79368864ad27c8c49fcad91af691f05b46eded95d10
|
|
7
|
+
data.tar.gz: d3e25d492f9e2ba6311f03d0e83a12e96da0ee487075c079dc09eee75b11326a2497cccf7c5f9a3c2fd84346d4fedc3ed43d3b0684a16547bfcba36346b60063
|
data/README.md
CHANGED
|
@@ -74,7 +74,7 @@ lookup the metdata
|
|
|
74
74
|
Reading from the JSON formatted log files with `in_tail` and wildcard filenames:
|
|
75
75
|
```
|
|
76
76
|
<source>
|
|
77
|
-
type tail
|
|
77
|
+
@type tail
|
|
78
78
|
path /var/log/containers/*.log
|
|
79
79
|
pos_file fluentd-docker.pos
|
|
80
80
|
time_format %Y-%m-%dT%H:%M:%S
|
|
@@ -84,18 +84,18 @@ Reading from the JSON formatted log files with `in_tail` and wildcard filenames:
|
|
|
84
84
|
</source>
|
|
85
85
|
|
|
86
86
|
<filter kubernetes.var.log.containers.**.log>
|
|
87
|
-
type kubernetes_metadata
|
|
87
|
+
@type kubernetes_metadata
|
|
88
88
|
</filter>
|
|
89
89
|
|
|
90
90
|
<match **>
|
|
91
|
-
type stdout
|
|
91
|
+
@type stdout
|
|
92
92
|
</match>
|
|
93
93
|
```
|
|
94
94
|
|
|
95
95
|
Reading from the systemd journal (requires the fluentd `fluent-plugin-systemd` and `systemd-journal` plugins, and requires docker to use the `--log-driver=journald` log driver):
|
|
96
96
|
```
|
|
97
97
|
<source>
|
|
98
|
-
type systemd
|
|
98
|
+
@type systemd
|
|
99
99
|
path /run/log/journal
|
|
100
100
|
pos_file journal.pos
|
|
101
101
|
tag journal
|
|
@@ -111,12 +111,12 @@ Reading from the systemd journal (requires the fluentd `fluent-plugin-systemd` a
|
|
|
111
111
|
</match>
|
|
112
112
|
|
|
113
113
|
<filter kubernetes.**>
|
|
114
|
-
type kubernetes_metadata
|
|
114
|
+
@type kubernetes_metadata
|
|
115
115
|
use_journal true
|
|
116
116
|
</filter>
|
|
117
117
|
|
|
118
118
|
<match **>
|
|
119
|
-
type stdout
|
|
119
|
+
@type stdout
|
|
120
120
|
</match>
|
|
121
121
|
```
|
|
122
122
|
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |gem|
|
|
6
6
|
gem.name = "fluent-plugin-kubernetes_metadata_filter"
|
|
7
|
-
gem.version = "2.1.
|
|
7
|
+
gem.version = "2.1.5"
|
|
8
8
|
gem.authors = ["Jimmi Dyson"]
|
|
9
9
|
gem.email = ["jimmidyson@gmail.com"]
|
|
10
10
|
gem.description = %q{Filter plugin to add Kubernetes metadata}
|
|
@@ -287,7 +287,8 @@ module Fluent::Plugin
|
|
|
287
287
|
time_key = @time_fields.detect{ |ii| record.has_key?(ii) }
|
|
288
288
|
time = record[time_key]
|
|
289
289
|
if time.nil? || time.chop.empty?
|
|
290
|
-
|
|
290
|
+
# `internal_time` is a Fluent::EventTime, it can't compare with Time.
|
|
291
|
+
return Time.at(internal_time.to_f)
|
|
291
292
|
end
|
|
292
293
|
if ['_SOURCE_REALTIME_TIMESTAMP', '__REALTIME_TIMESTAMP'].include?(time_key)
|
|
293
294
|
timei= time.to_i
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-kubernetes_metadata_filter
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jimmi Dyson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: fluentd
|
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
256
256
|
version: '0'
|
|
257
257
|
requirements: []
|
|
258
258
|
rubyforge_project:
|
|
259
|
-
rubygems_version: 2.
|
|
259
|
+
rubygems_version: 2.6.12
|
|
260
260
|
signing_key:
|
|
261
261
|
specification_version: 4
|
|
262
262
|
summary: Fluentd filter plugin to add Kubernetes metadata
|