index=proxy earliest=-1month@month latest=@month|fields host month | eval month=strftime(_time, "%m") | stats count by host| rename count as curr_count | table curr_count host
|appendcols [search index=proxy earliest=-2month@month latest=-1month@month|fields host month | eval month=strftime(_time, "%m") | stats count by host|rename count as old_count | table old_count host]
| fillnull value=1
| eval ratio=curr_count-old_count, "up/down"=if (curr_count > old_count, "down", "up")
| table host old_count curr_count ratio "up/down"
| rename old_count AS "-2month" curr_count AS "-1month" ratio AS "deviation"
It works but it is really really slow
How can I make it faster?
Best regards and thank you.
... View more