I'm new to Kusto and trying to create a new custom detection rule with two different events.
For example, the first one above detects creating a new scheduled task. Second one detects successful login.
DeviceProcessEvents | where FolderPath endswith "schtasks.exe" and ProcessCommandLine has "/create"
DeviceLogonEvents | where ActionType == "LogonSuccess"
I want to create a rule that detects creating a scheduled task 10 minutes after successful login to same device. (not a specific device, any device)