Forum Discussion

Todd Harrison's avatar
Todd Harrison
Brass Contributor
Aug 07, 2018
Solved

Filter null results

Hi,   I am working on a super simple query to pull MachineName and OSBuild versions. I would like the query to only return machines where the value of OSBuild is not null. Here is what I have tri...
  • TravisRoberts's avatar
    Aug 07, 2018

    Try this

    MachineInfo

    | where isnotnull (OSBuild)

    | summarize by ComputerName, OSBuild

     

    I can’t test on the demo site, but using the same with the heartbeat schema gives the results you may be looking for.  There is another command, isempty or isnotempty that does similar for string data.

Resources