How to pull events for a computer device from the DAS database via hostname with a SQL Query
select ev.ReceivedTimestamp, ev.Timestamp, ev.Severity, ev.Type, ev.Subtype, ev.Description, c.Computer as 'Source', ev.IP_Address, ev.User_Name, ev.File_Name, fc.Sha256 as 'File Hash', ev.Process, ev.Rule_Name, ev.Ban_Name from bit9_public.ExEvents ev join bit9_public.ExComputers c on ev.Computer_Id = c.Computer_Id join bit9_public.ExFileCatalog fc on ev.File_Catalog_Id = fc.File_Catalog_Id where c.Computer like '%hostname%'
where c.Computer like '%hostname%' and (ev.ReceivedTimestamp >= dateadd(day,datediff(day,1,GETDATE()),0) and ev.ReceivedTimestamp < dateadd(day,datediff(day,0,GETDATE()),0))