How can I do scripted aggregation in Kibana + Elasticsearch? -


let's have log of events of ad displays , ad clicks stored via logstash in elasticsearch , displayed in kibana 4. calculate simple metric ctr (click-through-rate) of events , :

ctr = #clicks/#displays.

first of all, know if it's possible in elasticsearch + kibana? don't see possibility in kibana. thinking doing in raw elasticsearch scripted aggregation. don't know how define such in kibana.

any ideas on how welcome! comments explaining it's impossible valuable.

kibana 4 includes support elasticsearch scripting. can go settings > indices (pick pattern) > scripted fields , add new scripted field computes ctr. take @ "scripted fields" @ elastic blog more info.


Comments

Popular posts from this blog

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

java - Could not locate OpenAL library -

sorting - opencl Bitonic sort with 64 bits keys -