I am trying to get the servers which did not report for more than 24 hours in ATP and running the following, but getting incorrect data:
DeviceInfo
| where isnotnull(OSBuild)
| summarize last_seen = max(Timestamp) by DeviceId, DeviceName, OSPlatform, OSBuild
| project last_seen, DeviceId, DeviceName, OSPlatform, OSBuild
| where OSPlatform contains "server" //added this line to filter for servers only
| where last_seen > ago(24h)
| sort by last_seen asc
Result of query shows not only devices with yesterday's timestamp, but today as well... Running the query in advanced hunting of Defender ATP.