Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20019

Re: SWQL Report need help with date filtering

$
0
0

Try this (just un-comment the section you want to use < Line 6 or 8 >):


SELECT NodeName, T1.DownTime AS HoursDown
FROM (SELECT COUNT(EventTime) AS DownTime, NetObjectID, NetworkNode
FROM Orion.Events
WHERE (EventType=1)
--1 day
--AND EventTime > DATEADD(day,-1,GETDATE())
-- 1 hour
--AND EventTime > DATEADD(hh,-1,GETDATE())
GROUP BY NetObjectID, NetworkNode) AS T1 INNER JOIN
Orion.Nodes ON T1.NetworkNode = Nodes.NodeID

 

 

-ZackM

Loop1 Systems: SolarWinds Training and Professional Services


Viewing all articles
Browse latest Browse all 20019

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>