fluent-plugin-splunk-ex-logentries 1.0.1.logentries.4 → 1.0.1.logentries.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-splunk-ex.gemspec +1 -1
- data/lib/fluent/plugin/out_splunk_ex.rb +18 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bae34fe898a416183b62086c3918c1c711788484ae9183c16b051799ced765fa
|
4
|
+
data.tar.gz: 9c56f3049fa4f3cbd7d3c3c2513a17dd5283b87d5c7b1923c935a0a5efa6ad37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc58443d789d0fd0718e815645d5ba370d41148b22f92c2c1a3aa90c880eec22da15322567861c59628cacf449124ec7eaf5dfc05a7c7c08bbf0b802dd89df25
|
7
|
+
data.tar.gz: dc4c1a525423e34e65953d0f954fa3abac821f7e47da1480c62ac4dda994d049add55ceb1fb3492e2f4d8fbd98a3dc60a26cb992a39233c860fb46c7d8f74538
|
@@ -95,9 +95,24 @@ class Fluent::SplunkExOutput < Fluent::Output
|
|
95
95
|
end
|
96
96
|
|
97
97
|
def self.format_logentries(record)
|
98
|
-
|
99
|
-
|
100
|
-
|
98
|
+
if record["kubernetes"] && record["kubernetes"]["labels"] && record["kubernetes"]["labels"]["logentries"]
|
99
|
+
label = record["kubernetes"]["labels"]["logentries"]
|
100
|
+
else
|
101
|
+
label = nil
|
102
|
+
end
|
103
|
+
|
104
|
+
if record["kubernetes"] && record["kubernetes"]["host"]
|
105
|
+
host = record["kubernetes"]["host"]
|
106
|
+
else
|
107
|
+
host = nil
|
108
|
+
end
|
109
|
+
|
110
|
+
if record["message"]
|
111
|
+
message = record["message"]
|
112
|
+
else
|
113
|
+
message = nil
|
114
|
+
end
|
115
|
+
|
101
116
|
le_out_str = "\"" + label.to_s + "\" " + host.to_s + " " + message.to_s
|
102
117
|
end
|
103
118
|
|