def rule(event):
    if all(
        [
            event.deep_get("TargetFilename", default="").startswith(
                "C:\\Windows\\System32\\winevt\\Logs\\"
            ),
            event.deep_get("TargetFilename", default="").endswith(".evtx"),
        ]
    ):
        return True
    return False
