Hi
I haven't tested this, but could you use something like
index=testindex (host=server1 OR host=server2) sourcetype=WinEventLog:Application |
eval not_available=if(EventCode=700 OR EventCode=702,1,0) |
eval available=if(EventCode!=700 OR EventCode!=702,1,0) |
timechart span=1d sum(available) as available sum(not_available) as not_available
You can also use eval functions within stats/chart/timechart commands, as shown in the Search Manual.
index=testindex (host=server1 OR host=server2) sourcetype=WinEventLog:Application |
timechart span=1d sum(eval(if(EventCode!=700 OR EventCode!=702,1,0))) as available sum(eval(if(EventCode=700 OR EventCode=702,1,0))) as not_available
Dave
... View more