How can I do scripted aggregation in Kibana + Elasticsearch?

后端 未结 2 1958
眼角桃花
眼角桃花 2020-12-30 04:52

Let\'s say I have a log of events of ad displays and ad clicks stored via Logstash in Elasticsearch and displayed in Kibana 4. I would like to calculate a simple metric like

2条回答
  •  無奈伤痛
    2020-12-30 05:19

    Kibana 4 includes support for Elasticsearch scripting. You can go to Settings > Indices (pick your pattern) > Scripted Fields and add a new scripted field that computes your CTR. Take a look at "Scripted Fields" at elastic blog for more info.

提交回复
热议问题