fluent-plugin-vmware-loginsight 0.1.7 → 0.1.9
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1bc7b0e4ab42c94e162d0e1aaad16442cd49a98bd2421518a8450861879798e
|
4
|
+
data.tar.gz: 5cacc45db33adcf330c26a55006aa99abaa777542436edb44906679ee9f86dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21882e6d44c50af2a0d10042bb0e5f1f5bc6d98afaccad294c1885d91ea217a385320769d26c6ba9c3f5e9216780e6501f3a6892cc8657c0ae9706a1f5de3066
|
7
|
+
data.tar.gz: 8dec2e9718a79dc7691598662c70586781ea530cfc0114b5a10e25df6ddf61b35f012484ad23b874132e97baca013a978c71714907dddf8cae0e28572ded89f6
|
@@ -14,7 +14,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
14
14
|
|
15
15
|
Gem::Specification.new do |spec|
|
16
16
|
spec.name = "fluent-plugin-vmware-loginsight"
|
17
|
-
spec.version = "0.1.
|
17
|
+
spec.version = "0.1.9"
|
18
18
|
spec.authors = ["Vishal Mohite", "Chris Todd"]
|
19
19
|
spec.email = ["vmohite@vmware.com", "toddc@vmware.com"]
|
20
20
|
|
@@ -71,6 +71,29 @@ module Fluent
|
|
71
71
|
# Seperator to use for joining flattened keys
|
72
72
|
config_param :flatten_hashes_separator, :string, :default => "_"
|
73
73
|
|
74
|
+
# Keys from log event to rewrite
|
75
|
+
# for instance from 'kubernetes_namespace' to 'k8s_namespace'
|
76
|
+
# tags will be rewritten with substring substitution
|
77
|
+
# and applied in the order present in the hash
|
78
|
+
# (Hashes enumerate their values in the order that the
|
79
|
+
# corresponding keys were inserted
|
80
|
+
# see https://ruby-doc.org/core-2.2.2/Hash.html)
|
81
|
+
# example config:
|
82
|
+
# shorten_keys {
|
83
|
+
# "__":"_",
|
84
|
+
# "container_":"",
|
85
|
+
# "kubernetes_":"k8s_",
|
86
|
+
# "labels_":"",
|
87
|
+
# }
|
88
|
+
config_param :shorten_keys, :hash, value_type: :string, default:
|
89
|
+
{
|
90
|
+
'kubernetes_':'k8s_',
|
91
|
+
'namespace':'ns',
|
92
|
+
'labels_':'',
|
93
|
+
'_name':'',
|
94
|
+
'_hash':'',
|
95
|
+
'container_':''
|
96
|
+
}
|
74
97
|
|
75
98
|
def initialize
|
76
99
|
super
|
@@ -119,13 +142,10 @@ module Fluent
|
|
119
142
|
# LI doesn't allow some characters in field 'name'
|
120
143
|
# like '/', '-', '\', '.', etc. so replace them with @flatten_hashes_separator
|
121
144
|
key = key.gsub(/[\/\.\-\\]/,@flatten_hashes_separator).downcase
|
122
|
-
# shorten field names
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
key = key.gsub(/_name/,'')
|
127
|
-
key = key.gsub(/_hash/,'')
|
128
|
-
key = key.gsub(/container_/,'')
|
145
|
+
# shorten field names using provided shorten_keys parameters
|
146
|
+
@shorten_keys.each do | match, replace |
|
147
|
+
key = key.gsub(match.to_s,replace)
|
148
|
+
end
|
129
149
|
key
|
130
150
|
end
|
131
151
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-vmware-loginsight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vishal Mohite
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-05-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -115,8 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
- !ruby/object:Gem::Version
|
116
116
|
version: '0'
|
117
117
|
requirements: []
|
118
|
-
|
119
|
-
rubygems_version: 2.7.7
|
118
|
+
rubygems_version: 3.0.3
|
120
119
|
signing_key:
|
121
120
|
specification_version: 4
|
122
121
|
summary: Fluend output plugin to forward logs to VMware Log Insight
|