logpai / logparser

A machine learning toolkit for log parsing [ICSE'19, DSN'16]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

There are too many log templates, and the encoding is abnormal.

charleswu52 opened this issue · comments

Traceback (most recent call last):
File "LenMa_Mydemo.py", line 14, in
parser.parse(log_file)
File "../logparser/LenMa/LenMa.py", line 40, in parse
self.dump_results()
File "../logparser/LenMa/LenMa.py", line 52, in dump_results
eventid = hashlib.md5(' '.join(template).encode('utf-8')).hexdigest()[0:8]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 50: ordinal not in range(128)