How to implement complex logic in the Kibana

Hi,

I'm a fresh to Kibana. Currently I have stored all my data in the ElasticSearch, I want to calculate 'residual rate' for my website, the calculation should compare current day value with last day value for every day. Can I implement it in the Kibana (I think it maybe need several queries in ElasticSearch to implement)?

Thanks in advance!

That's not something that you can do in KB at the moment.
There are new aggs coming - pipeline aggs - that will be able to do some of this.

Thanks for reply. I will use elasticsearch java api to get data then display it using js.

Btw, Timelion plugin for Kibana was just released, which makes comparing series in different time frames trivial: https://www.elastic.co/blog/timelion-timeline

on Timelion the offset function can help in those type of measure i think.