9
0
Fork 0

Fix JSON message handling
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-11-15 23:22:53 +02:00
parent 3b0787e37f
commit ca854f60e5
1 changed files with 1 additions and 1 deletions

View File

@ -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: