Fix JSON message handling
continuous-integration/drone Build is passing
Details
continuous-integration/drone Build is passing
Details
This commit is contained in:
parent
3b0787e37f
commit
ca854f60e5
|
@ -381,7 +381,7 @@ class LogFile(object):
|
|||
if args.parse_json and o["message"].startswith("{\""):
|
||||
# TODO: Follow Filebeat hints
|
||||
try:
|
||||
j = ujson.loads(message)
|
||||
j = ujson.loads(o["message"])
|
||||
except ujson.JSONDecodeError:
|
||||
counter_heuristic_failures.labels("invalid-json").inc()
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue