d0ng1ee / logdeep

log anomaly detection toolkit including DeepLog
MIT License
387 stars 115 forks source link

re.error: missing ), unterminated subpattern at position 21 #9

Open HankKung opened 4 years ago

HankKung commented 4 years ago

Traceback (most recent call last): File "structure_bgl.py", line 66, in eventmap = match(BGL) File "structure_bgl.py", line 41, in match if re.match(r''+item,log_event) and re.match(r''+item,log_event).span()[1] == len(log_event): File "/home/lepton00/opt/miniconda/lib/python3.7/re.py", line 173, in match return _compile(pattern, flags).match(string) File "/home/lepton00/opt/miniconda/lib/python3.7/re.py", line 286, in _compile p = sre_compile.compile(pattern, flags) File "/home/lepton00/opt/miniconda/lib/python3.7/sre_compile.py", line 764, in compile p = sre_parse.parse(p, flags) File "/home/lepton00/opt/miniconda/lib/python3.7/sre_parse.py", line 930, in parse p = _parse_sub(source, pattern, flags & SRE_FLAG_VERBOSE, 0) File "/home/lepton00/opt/miniconda/lib/python3.7/sre_parse.py", line 426, in _parse_sub not nested and not items)) File "/home/lepton00/opt/miniconda/lib/python3.7/sre_parse.py", line 819, in _parse source.tell() - start) re.error: missing ), unterminated subpattern at position 21

Hi does anyone have this problem? Some answers I found on Stack Overflow suggest adding r before the regex string which the owner has already done it.

Edit: I used Drain in logpai as the parser.

Zakaria-laktati commented 2 years ago

*Hi i have the same problem !