如何在kibana数据表中添加多个案例条件

时间:2018-06-05 10:37:13

标签: elasticsearch kibana-6

select name,date,offer_name ,channel,
       sum(case
             when status = '1' then
              1
             else
              0
           end) Active
       sum(case
             when t.status = '2' then
              1
             else
              0
           end) InActive
       count(offer_name) as count

  from table

我想在 kibana 数据表中实现上述查询以显示数据

0 个答案:

没有答案