def rule(event):
    if all(
        [
            "\\inetpub\\logs\\LogFiles\\" in event.deep_get("TargetFilename", default=""),
            event.deep_get("TargetFilename", default="").endswith(".log"),
        ]
    ):
        return True
    return False
