fluent-plugin-viaq_data_model 0.0.19 → 0.0.20
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf1d5470d55d205da4f4509713986c34ac7e10ca6f8b6fda68bdf2d810a34f06
|
4
|
+
data.tar.gz: 3e09f85cacd9c778b92dced23fa27115b44c4695454f730022e13751e07987f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40cb5a22fc967944b0c1127caa757396c813a5da47e90184c723c322c1c682bf0f96cdb250daa4ada4cdc7195a66c59119a3194d928cd3d35c969b92d6d6deaf
|
7
|
+
data.tar.gz: 74aae5ecb6cf4128daf3cca879a93a1d6e7d6bf7417e6a1017fd7e67e92c8301b2e9d05add95aec7b5315e9bbe9cf4e81c8259d18e39b69dcba0731dbc9843d2
|
@@ -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-viaq_data_model"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.20"
|
8
8
|
gem.authors = ["Rich Megginson"]
|
9
9
|
gem.email = ["rmeggins@redhat.com"]
|
10
10
|
gem.description = %q{Filter plugin to ensure data is in the ViaQ common data model}
|
@@ -203,7 +203,12 @@ module Fluent
|
|
203
203
|
@docker_hostname = nil
|
204
204
|
end
|
205
205
|
@ipaddr4 = ENV['IPADDR4'] || '127.0.0.1'
|
206
|
-
@ipaddr6 =
|
206
|
+
@ipaddr6 = nil
|
207
|
+
|
208
|
+
if ENV['IPADDR6'] && ENV['IPADDR6'].length > 0
|
209
|
+
@ipaddr6 = ENV['IPADDR6']
|
210
|
+
end
|
211
|
+
|
207
212
|
@pipeline_version = (ENV['FLUENTD_VERSION'] || 'unknown fluentd version') + ' ' + (ENV['DATA_VERSION'] || 'unknown data version')
|
208
213
|
# create the elasticsearch index name tag matchers
|
209
214
|
unless @elasticsearch_index_names.empty?
|
@@ -367,7 +372,9 @@ module Fluent
|
|
367
372
|
# this will catch the case where pipeline_type doesn't exist, or is not a Hash
|
368
373
|
record['pipeline_metadata'][pipeline_type] = {} unless record['pipeline_metadata'][pipeline_type].respond_to?(:fetch)
|
369
374
|
record['pipeline_metadata'][pipeline_type]['ipaddr4'] = @ipaddr4
|
370
|
-
|
375
|
+
if @ipaddr6
|
376
|
+
record['pipeline_metadata'][pipeline_type]['ipaddr6'] = @ipaddr6
|
377
|
+
end
|
371
378
|
record['pipeline_metadata'][pipeline_type]['inputname'] = 'fluent-plugin-systemd'
|
372
379
|
record['pipeline_metadata'][pipeline_type]['name'] = 'fluentd'
|
373
380
|
record['pipeline_metadata'][pipeline_type]['received_at'] = Time.now.utc.to_datetime.rfc3339(6)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-viaq_data_model
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rich Megginson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|