- Server operating system version
- Ubuntu 22.04.3 LTS
- Plesk version and microupdate number
- 18.0.56
When entering this option we do not see any records, even though we have configured the tool to launch automatically daily at 06:25 every 60 minutes.
When trying to launch the manual check, the following error appears:
logparser failed: ERROR: Failed to construct 'audit-modsec-with-ts' step
[2023-08-17 13:24:14,718] logparser INFO: This exception happened at:
Traceback (most recent call last):
File "pipeline.py", line 184, in _build_from_config
self.steps[step_name] = Step(step_name, step_config)
File "pipeline.py", line 35, in __init__
step_impl = step_class(name=name, **config)
File "steps/grok.py", line 66, in __init__
self.grok = Grok(grok, custom_patterns=custom_patterns or {}, type_caster=_type_caster)
File "pygrok/pygrok.py", line 63, in __init__
self.regex_obj = re.compile(py_regex_pattern)
File "/usr/lib/python3.10/re.py", line 251, in compile
return _compile(pattern, flags)
File "/usr/lib/python3.10/re.py", line 303, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.10/sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.10/sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 841, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 841, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 830, in _parse
raise source.error("unknown extension ?" + char,
re.error: unknown extension ?> at position 250
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "logparser.py", line 114, in <module>
File "logparser.py", line 101, in main
File "pipeline.py", line 163, in __init__
self._build_from_config(config)
File "pipeline.py", line 186, in _build_from_config
raise RuntimeError("Failed to construct %r step" % step_name) from ex
RuntimeError: Failed to construct 'audit-modsec-with-ts' step
Previously we had Ubuntu 18 with python 3.6, and the tool worked correctly.
any suggestions?
P.D.: Attached screenshot with the error, although in Spanish, sorry
When trying to launch the manual check, the following error appears:
logparser failed: ERROR: Failed to construct 'audit-modsec-with-ts' step
[2023-08-17 13:24:14,718] logparser INFO: This exception happened at:
Traceback (most recent call last):
File "pipeline.py", line 184, in _build_from_config
self.steps[step_name] = Step(step_name, step_config)
File "pipeline.py", line 35, in __init__
step_impl = step_class(name=name, **config)
File "steps/grok.py", line 66, in __init__
self.grok = Grok(grok, custom_patterns=custom_patterns or {}, type_caster=_type_caster)
File "pygrok/pygrok.py", line 63, in __init__
self.regex_obj = re.compile(py_regex_pattern)
File "/usr/lib/python3.10/re.py", line 251, in compile
return _compile(pattern, flags)
File "/usr/lib/python3.10/re.py", line 303, in _compile
p = sre_compile.compile(pattern, flags)
File "/usr/lib/python3.10/sre_compile.py", line 788, in compile
p = sre_parse.parse(p, flags)
File "/usr/lib/python3.10/sre_parse.py", line 955, in parse
p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 841, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 841, in _parse
p = _parse_sub(source, state, sub_verbose, nested + 1)
File "/usr/lib/python3.10/sre_parse.py", line 444, in _parse_sub
itemsappend(_parse(source, state, verbose, nested + 1,
File "/usr/lib/python3.10/sre_parse.py", line 830, in _parse
raise source.error("unknown extension ?" + char,
re.error: unknown extension ?> at position 250
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "logparser.py", line 114, in <module>
File "logparser.py", line 101, in main
File "pipeline.py", line 163, in __init__
self._build_from_config(config)
File "pipeline.py", line 186, in _build_from_config
raise RuntimeError("Failed to construct %r step" % step_name) from ex
RuntimeError: Failed to construct 'audit-modsec-with-ts' step
Previously we had Ubuntu 18 with python 3.6, and the tool worked correctly.
any suggestions?
P.D.: Attached screenshot with the error, although in Spanish, sorry