Terms Aggregations in multiple fields Kibana

Sma*_*ell 0 elasticsearch kibana

I have several fields in ES like:

tank1
tank2
tank3
Run Code Online (Sandbox Code Playgroud)

Every tankID can be in different fields depending on user choice. I wonder if I can count terms from multiple fields(tank1, tank2, tank3) and create graph in kibana 5?

小智 5

您可以将“计数”用作指标聚合,将“过滤器”用作存储桶聚合,然后在多个字段的过滤器中使用 OR。