title: Kibana-Group by a field
body: <p>I have a field like <code>HW-OS Version</code>,<code>HW-RiskRatio</code>,<code>Device_HW_Count</code> and there are some <code>HW_Version</code> say <code>A,B,C,A</code> and their risk ratio as <code>200,300,100,400</code>.Now using Kibana if i try to show the count and the risk ratio i get the output in the above format whereas I want the output as grouping by the <code>HW_version</code> field,which Kibana is not able to do.I read in the documentation that for such cases we need to write Json query which could do the grouping like a SQL query.Can someone please explain me this with the above example.I am not able to proceed forward</p>