pattern = (
    """(\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}).*?succ. statistics\\s+\\|\\s+(\\d+)\\s+(\\d+)"""
    )
regex = re.compile(pattern, flags=re.MULTILINE | re.DOTALL)
for match in regex.finditer(data):
    pass
Python - single vs multiline REGEX