--- a/instance.py Fri Jan 19 16:00:36 2018 +0000 +++ b/instance.py Fri Jan 19 16:53:13 2018 +0000 @@ -49,7 +49,10 @@ return None try: - return json.loads(line) + res=json.loads(line) + if 'type' not in res: + res['type']='UNKNOWN' + return res except: logging.warning('JSON parse failed on: "%s"' % line)