def rule(event):
    if any(
        [
            any(
                [
                    event.deep_get("TargetFilename", default="").endswith(
                        "\\TeamViewer\\RemotePrinting\\tvprint.db"
                    ),
                    event.deep_get("TargetFilename", default="").endswith(
                        "\\TeamViewer\\TVNetwork.log"
                    ),
                ]
            ),
            all(
                [
                    "\\TeamViewer" in event.deep_get("TargetFilename", default=""),
                    "_Logfile.log" in event.deep_get("TargetFilename", default=""),
                ]
            ),
        ]
    ):
        return True
    return False
