import re


def rule(event):
    if all(
        [
            re.match(r"[^/]{100,}$", event.deep_get("TargetFilename", default="")),
            not any(
                [
                    event.deep_get("TargetFilename", default="").startswith(
                        "/run/systemd/units/invocation:systemd-fsck@"
                    ),
                    event.deep_get("TargetFilename", default="").startswith("/sys/firmware/"),
                    event.deep_get("TargetFilename", default="").startswith("/var/log/journal/"),
                ]
            ),
        ]
    ):
        return True
    return False
