fluent-plugin-sumologic-radiant 0.1.2 → 0.1.3
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: df87a5e95372ce2cc19104f2d9eca6d948b4bb9b84c9f8e3884f31a409eec53b
|
|
4
|
+
data.tar.gz: 7d7aa1add88a589a4bbf81120af69f229f9dea381a1877a61639c87d4598addb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a6e8b34facf0d9fbfa14197a190f34155355d8c2794a08970f02ed055f30838cf72e59d0f92b7a1209b17f35b39c2505e2992e0df89f02a16e1d0a5448f1e109
|
|
7
|
+
data.tar.gz: eec162663af30d156dafa70e0e9d479ce161ffcd3bfe65c2374148e3c05f810b44a8b033573cdb21c9734db586ff24a57415053dd7a802b051e03c18f85784bd
|
|
@@ -313,17 +313,14 @@ module Fluent
|
|
|
313
313
|
record
|
|
314
314
|
end
|
|
315
315
|
|
|
316
|
-
# Strip sumo_metadata and dump to
|
|
316
|
+
# Strip sumo_metadata and dump to JSON.
|
|
317
|
+
#
|
|
318
|
+
# NOTE: Unlike earlier versions, this method no longer attempts to JSON-parse
|
|
319
|
+
# the value of @log_key. This makes behavior closer to the original
|
|
320
|
+
# fluent-plugin-sumologic_output, where plain-text log lines are accepted
|
|
321
|
+
# without raising parsing errors when only `endpoint` is configured.
|
|
317
322
|
def dump_log(log_record)
|
|
318
323
|
log_record.delete("_sumo_metadata")
|
|
319
|
-
begin
|
|
320
|
-
if log_record.key?(@log_key)
|
|
321
|
-
hash = Oj.load(log_record[@log_key])
|
|
322
|
-
log_record[@log_key] = hash
|
|
323
|
-
end
|
|
324
|
-
rescue Oj::ParseError
|
|
325
|
-
# Keep original if parsing fails
|
|
326
|
-
end
|
|
327
324
|
Oj.dump(log_record)
|
|
328
325
|
end
|
|
329
326
|
|