fluent-plugin-logentries-simple-config 0.2.14w → 0.2.14x
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 108ada4aa7aaa9eb056075f08fe0cd31a2ade92c
|
|
4
|
+
data.tar.gz: 5caf33b967e2aef2f26bb402279a0a9728cca191
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e824aa657ea889e4eac4f1c40c7a18a25ad7e92d10b101a255ed9378a6f1f089cb23dd4edb08f70582b3b1ce9debe4d633e9ea8e7702af9acfdbe41b7c26f5c1
|
|
7
|
+
data.tar.gz: da0bdbb31a6cab465c2a56eb49a98e3abb3476c681e7778cd23860b42f0c9db1020a117c2a4c7ec5c963df16a4b1af263d1d914dcccb96720548baefab303cd2
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "fluent-plugin-logentries-simple-config"
|
|
7
|
-
spec.version = "0.2.
|
|
7
|
+
spec.version = "0.2.14x"
|
|
8
8
|
spec.authors = ["notmaxx"]
|
|
9
9
|
spec.email = ["notmaxx@gmail.com"]
|
|
10
10
|
spec.summary = "Logentries output plugin for Fluent event"
|
|
@@ -93,7 +93,6 @@ class Fluent::LogentriesOutput < Fluent::BufferedOutput
|
|
|
93
93
|
record.to_json
|
|
94
94
|
else
|
|
95
95
|
r = record.dup
|
|
96
|
-
r.merge!({ "tag" => tag }) if tag.present?
|
|
97
96
|
# main message
|
|
98
97
|
msg = (r.delete('message')&.to_s&.rstrip || '')
|
|
99
98
|
# time
|
|
@@ -113,6 +112,8 @@ class Fluent::LogentriesOutput < Fluent::BufferedOutput
|
|
|
113
112
|
# custom prefix built from application and role
|
|
114
113
|
prefix = if app.present? && role.present? && t.present?
|
|
115
114
|
le_app_token = @app_tokens[app]
|
|
115
|
+
r.delete('time')
|
|
116
|
+
r.delete('kubernetes_pod')
|
|
116
117
|
"#{t} #{app} #{role} "
|
|
117
118
|
else
|
|
118
119
|
""
|
|
@@ -120,7 +121,7 @@ class Fluent::LogentriesOutput < Fluent::BufferedOutput
|
|
|
120
121
|
# extra tags
|
|
121
122
|
tags = r.map{ |k,v| "#{k}: #{v}" }.join(', ')
|
|
122
123
|
# final message
|
|
123
|
-
prefix + msg + (tags.present? && msg.present? ? ",
|
|
124
|
+
prefix + msg + (tags.present? && msg.present? ? ", " + tags : tags)
|
|
124
125
|
end
|
|
125
126
|
|
|
126
127
|
send_logentries(le_app_token || @token, message)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-logentries-simple-config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.14x
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- notmaxx
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-09-
|
|
11
|
+
date: 2017-09-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|