# Query from Kibana and from Elastic search Filter

**URL:** <https://discuss.elastic.co/t/query-from-kibana-and-from-elastic-search-filter/133301>\
**Category:** Logstash\
**Created:** [May 25, 2018, 10:13am UTC](https://discuss.elastic.co/t/query-from-kibana-and-from-elastic-search-filter/133301 "2018-05-25T10:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![UdaySingh\_Ghadage](https://avatars.discourse-cdn.com/v4/letter/u/ecae2f/32.png) [@UdaySingh\_Ghadage](https://discuss.elastic.co/u/UdaySingh_Ghadage)\
**Post date:** [May 25, 2018, 10:13am UTC](https://discuss.elastic.co/t/query-from-kibana-and-from-elastic-search-filter/133301/1 "2018-05-25T10:13:54Z")

</div>

Hi,  
in logstash version 6.1.0 there is option of aggregation\_fields to read aggregation response in elasticSearch filter plugin.  
filter {  
elasticsearch {  
aggregation\_fields =\> {  
"my\_agg\_name" =\> "my\_ls\_field"  
}  
}  
}

While aggregation\_fields option not available in version 6.0.0. How to get/read agregation results in version 6.0.0. I am unable to get any aggregation response using query.json. I can see output as nil. However i can read simple query response without aggregation. Any help will be much appreciated.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 22, 2018, 10:13am UTC](https://discuss.elastic.co/t/query-from-kibana-and-from-elastic-search-filter/133301/2 "2018-06-22T10:13:56Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
