I have a search using the predict function
index=core eventtype="Device" DeviceName=Device1 earliest=-10d@d latest=+10d@d | timechart span=d max(ThrputMbps) as ThrputMbps | predict ThrputMbps as predict1 future_timespan=10 holdback=1 | eval LicLimit=410 | fields - upper* lower* | eval lic_hit=if(predic1>=LicLimit,0,500)
What I want to do is somehow capture where the licenc is being hit.
I was thinking of doing something like:
eval lic_hit=if(predic1>=LicLimit,0,500) -- 0 until it is hit and 500 there after
but I cant get this to work. I'm thinking I need a where but I am not sure of the syntax to do this, something like
where predict is >= to Liclimit, create a field called lic_hit from that point, else the field called lic_hit will be zero
PIC:
... View more